Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_filter.c Create Date:2022-07-28 12:25:30
Last Modify:2022-05-22 20:19:57 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int create_filter(struct trace_array *tr, struct trace_event_call *call, char *filter_string, bool set_str, struct event_filter **filterp)

Type:int

Parameter:

TypeParameterName
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  If WARN_ON( * filterp) Then * filterp = NULL
1744  err = create_filter_start(filter_string, set_str, & pe, filterp)
1745  If err Then Return err
1748  err = process_preds(call, filter_string, * filterp, pe)
1749  If err && set_str Then append_filter_err(tr, pe, * filterp)
1751  create_filter_finish(pe)
1753  Return err
Caller
NameDescribe
create_event_filter
apply_event_filteraller must hold event_mutex