函数逻辑报告 |
Source Code:kernel\trace\trace_event_perf.c |
Create Date:2022-07-27 13:30:40 |
| Last Modify:2020-03-17 20:20:33 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_trace_event_perm
函数原型:static int perf_trace_event_perm(struct trace_event_call *tp_event, struct perf_event *p_event)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct trace_event_call * | tp_event | |
| struct perf_event * | p_event |
| 32 | 如果perf_perm则 |
| 42 | 如果parent则返回:0 |
| 51 | 如果ftrace_event_is_function(tp_event)则 |
| 52 | ret等于perf_allow_tracepoint( & attr) |
| 56 | 如果非is_sampling_event(p_event)则返回:0 |
| 64 | 如果非exclude_callchain_user则返回:负EINVAL |
| 71 | 如果sample_type按位与PERF_SAMPLE_STACK_USER则返回:负EINVAL |
| 76 | 如果非sample_type按位与PERF_SAMPLE_RAW的值则返回:0 |
| 80 | 如果attach_state恒等于PERF_ATTACH_TASK则 |
| 81 | 如果 static flags of different events 按位与TRACE_EVENT_FL_CAP_ANY则返回:0 |
| 89 | ret等于perf_allow_tracepoint( & attr) |
| 93 | 返回:0 |
| 名称 | 描述 |
|---|---|
| perf_trace_event_init |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |