Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_event_perf.c Create Date:2022-07-28 12:23:14
Last Modify:2020-03-17 20:20:33 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:perf_trace_event_perm

Proto:static int perf_trace_event_perm(struct trace_event_call *tp_event, struct perf_event *p_event)

Type:int

Parameter:

TypeParameterName
struct trace_event_call *tp_event
struct perf_event *p_event
32  If perf_perm Then
33  ret = perf_perm(tp_event, p_event)
34  If ret Then Return ret
42  If parent Then Return 0
51  If ftrace_event_is_function(tp_event) Then
52  ret = perf_allow_tracepoint( & attr)
53  If ret Then Return ret
56  If Not is_sampling_event(p_event) Then Return 0
64  If Not exclude_callchain_user Then Return -EINVAL
71  If sample_type & PERF_SAMPLE_STACK_USER Then Return -EINVAL
76  If Not (sample_type & PERF_SAMPLE_RAW) Then Return 0
80  If attach_state == PERF_ATTACH_TASK Then
81  If static flags of different events & TRACE_EVENT_FL_CAP_ANY Then Return 0
89  ret = perf_allow_tracepoint( & attr)
90  If ret Then Return ret
93  Return 0
Caller
NameDescribe
perf_trace_event_init