Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static u64 perf_ustack_task_size(struct pt_regs *regs)

Type:u64

Parameter:

TypeParameterName
struct pt_regs *regs
6183  addr = perf_user_stack_pointer(regs)
6185  If Not addr || addr >= TASK_SIZE Then Return 0
6188  Return TASK_SIZE - addr
Caller
NameDescribe
perf_sample_ustack_size