Function report |
Source Code:kernel\trace\trace_events_filter.c |
Create Date:2022-07-28 12:25:34 |
Last Modify:2022-05-22 20:19:57 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aller must hold event_mutex
Proto:int apply_event_filter(struct trace_event_file *file, char *filter_string)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct trace_event_file * | file | |
char * | filter_string |
1799 | call = event_call |
1800 | struct event_filter * filter = NULL |
1803 | If Not strcmp(strstrip(filter_string), "0") Then |
1804 | filter_disable(file) |
1805 | filter = event_filter(file) |
1807 | If Not filter Then Return 0 |
1810 | event_clear_filter(file) |
1814 | __free_filter(filter) |
1816 | Return 0 |
1827 | If filter Then |
1830 | tmp = event_filter(file) |
1831 | If Not err Then event_set_filtered_flag(file) |
1833 | Else filter_disable(file) |
1836 | event_set_filter(file, filter) |
1838 | If tmp Then |
1841 | __free_filter(tmp) |
1845 | Return err |
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 |