Function report | 
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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| struct trace_event_call * | tp_event | |
| struct perf_event * | p_event | 
| 32 | If perf_perm Then | 
| 42 | If parent Then Return 0 | 
| 51 | If ftrace_event_is_function(tp_event) Then | 
| 52 | ret = perf_allow_tracepoint( & attr) | 
| 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) | 
| 93 | Return 0 | 
| Name | Describe | 
|---|---|
| perf_trace_event_init | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |