Function report |
Source Code:kernel\trace\trace_event_perf.c |
Create Date:2022-07-28 12:23:25 |
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_add
Proto:int perf_trace_add(struct perf_event *p_event, int flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | p_event | |
int | flags |
359 | If Not (flags & start the counter when adding ) Then state = PERF_HES_STOPPED |
367 | If Not reg(tp_event, TRACE_REG_PERF_ADD, p_event) Then |
371 | pcpu_list = perf_events |
372 | If WARN_ON_ONCE(!pcpu_list) Then Return -EINVAL |
375 | list = this_cpu_ptr(pcpu_list) |
379 | Return 0 |
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 |