Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\internal.h Create Date:2022-07-28 13:30:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__output_copy

Proto:static inline unsigned long __output_copy(struct perf_output_handle *handle, const void *buf, unsigned long len)

Type:unsigned long

Parameter:

TypeParameterName
struct perf_output_handle *handle
const void *buf
unsigned longlen
178  Do
178  size = __builtin_choose_expr(((!!( size of 1 == 1 )) && ((sizeof(int) == size of *If 8 Then size * 0l Else 8 ) && (sizeof(int) == size of *If 8 Then len * 0l Else 8 ))), ((size) < (len) ? (size) : (len)), ({typeof(size)__UNIQUE_ID___x = (size);typeof(len)__UNIQUE_ID___y = (len);((__UNIQUE_ID___x) < (__UNIQUE_ID___y) ? (__UNIQUE_ID___x) : (__UNIQUE_ID___y));}))
178  written = memcpy_common(addr, buf, size)
178  written = size - written
178  len -= written
178  addr += written
178  If (true) Then buf += written
178  size -= written
178  If Not size Then
178  rb = rb
178  page++
178  addr = data_pages[page]
178  size = 1UL << 12 << page_order(rb)
178  When len && written == size cycle
178  Return len
Caller
NameDescribe
perf_output_read_one
perf_output_read_group
perf_output_sample
perf_event_comm_output
perf_event_mmap_output
perf_event_ksymbol_output
perf_output_copy