Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:36:18
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_sample_ustack_size

Proto:static u16 perf_sample_ustack_size(u16 stack_size, u16 header_size, struct pt_regs *regs)

Type:u16

Parameter:

TypeParameterName
u16stack_size
u16header_size
struct pt_regs *regs
6198  If Not regs Then Return 0
6211  task_size = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value((u64)USHRT_MAX, Get remaining task size from user stack pointer.* It'd be better to take stack vma map and limit this more* precisely, but there's no way to get it safely under interrupt,* so using TASK_SIZE as limit.)
6212  stack_size = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(stack_size, (u16)task_size)
6215  header_size += 2 * sizeof(u64)
6218  If header_size + stack_size < header_size Then
6223  stack_size = USHRT_MAX - header_size - sizeof(u64)
6224  stack_size = und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(stack_size, sizeof(u64))
6227  Return stack_size
Caller
NameDescribe
perf_prepare_sample