Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\bpf_trace.c Create Date:2022-07-28 12:37:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_bpf_raw_tp_regs

Proto:static struct pt_regs *get_bpf_raw_tp_regs(void)

Type:struct pt_regs

Parameter:Nothing

1042  tp_regs = this_cpu_ptr( & bpf_raw_tp_regs)
1043  nest_level = this_cpu_inc_return(bpf_raw_tp_nest_level)
1045  If WARN_ON_ONCE(nest_level > ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(regs)) Then
1046  this_cpu_dec(bpf_raw_tp_nest_level)
1047  Return ERR_PTR( - EBUSY)
1050  Return regs[nest_level - 1]
Caller
NameDescribe
____bpf_perf_event_output_raw_tp
____bpf_get_stackid_raw_tp
____bpf_get_stack_raw_tp