Function report |
Source Code:kernel\events\core.c |
Create Date:2022-07-28 13:38:18 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:perf_event_switch_output
Proto:static void perf_event_switch_output(struct perf_event *event, void *data)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct perf_event * | event | |
void * | data |
8017 | If Not perf_event_switch_match(event) Then Return |
8021 | If task Then |
8022 | type = PERF_RECORD_SWITCH |
8024 | Else |
8025 | type = PERF_RECORD_SWITCH_CPU_WIDE |
8027 | next_prev_pid = perf_event_pid(event, next_prev) |
8029 | next_prev_tid = perf_event_tid(event, next_prev) |
8033 | perf_event_header__init_id( & header, & sample, event) |
8035 | ret = perf_output_begin( & handle, event, size) |
8036 | If ret Then Return |
8039 | If task Then perf_output_put( & handle, header) |
8041 | Else perf_output_put( & handle, event_id) |
8044 | perf_event__output_id_sample(event, & handle, & sample) |
8046 | perf_output_end( & handle) |
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 |