Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__output_copy_user

Proto:static inline unsigned long __output_copy_user(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
204  Do
204  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));}))
204  written = We rely on the nested NMI work to allow atomic faults from the NMI path; the* nested NMI paths are careful to preserve CR2.
204  written = size - written
204  len -= written
204  addr += written
204  If (true) Then buf += written
204  size -= written
204  If Not size Then
204  rb = rb
204  page++
204  addr = data_pages[page]
204  size = 1UL << 12 << page_order(rb)
204  When len && written == size cycle
204  Return len
Caller
NameDescribe
perf_output_sample_ustack