函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_filter.c Create Date:2022-07-27 13:33:54
Last Modify:2022-05-22 20:19:57 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:aller must hold event_mutex

函数原型:int apply_event_filter(struct trace_event_file *file, char *filter_string)

返回类型:int

参数:

类型参数名称
struct trace_event_file *file
char *filter_string
1799  call等于event_call
1800  struct event_filter * filter = NULL
1803  如果非字符串比较
1804  filter_disable(file)
1805  filter等于event_filter(file)
1807  如果非filter则返回:0
1810  event_clear_filter(file)
1813  tracepoint_synchronize_unregister()
1814  __free_filter(filter)
1816  返回:0
1819  err等于reate_filter - create a filter for a trace_event_call*@call: trace_event_call to create a filter for*@filter_str: filter string*@set_str: remember @filter_str and enable detailed error in filter*@filterp: out param for created filter (always updated on
1827  如果filter
1830  tmp等于event_filter(file)
1831  如果非errevent_set_filtered_flag(file)
1833  否则filter_disable(file)
1836  event_set_filter(file, filter)
1838  如果tmp
1841  __free_filter(tmp)
1845  返回:err
调用者
名称描述
event_filter_write