函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int create_filter(struct trace_array *tr, struct trace_event_call *call, char *filter_string, bool set_str, struct event_filter **filterp)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
struct trace_event_call *call
char *filter_string
boolset_str
struct event_filter **filterp
1737  struct filter_parse_error * pe = NULL
1741  如果WARN_ON( * filterp)则 * filterp = NULL
1744  err等于create_filter_start(filter_string, set_str, & pe, filterp)
1745  如果err则返回:err
1748  err等于process_preds(call, filter_string, * filterp, pe)
1749  如果errset_strappend_filter_err(tr, pe, * filterp)
1751  create_filter_finish(pe)
1753  返回:err
调用者
名称描述
create_event_filter
apply_event_filteraller must hold event_mutex