Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:perf_output_sample_ustack

Proto:static void perf_output_sample_ustack(struct perf_output_handle *handle, u64 dump_size, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct perf_output_handle *handle
u64dump_size
struct pt_regs *regs
6235  If Not regs Then
6236  size = 0
6237  perf_output_put(handle, size)
6238  Else
6256  perf_output_put(handle, dump_size)
6259  sp = perf_user_stack_pointer(regs)
6260  fs = get_fs()
6261  set_fs(USER_DS)
6262  rem = __output_copy_user(handle, (void * )sp, dump_size)
6263  set_fs(fs)
6264  dyn_size = dump_size - rem
6266  perf_output_skip(handle, rem)
6269  perf_output_put(handle, dyn_size)
Caller
NameDescribe
perf_output_sample