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:19
Last Modify:2022-05-22 20:19:57 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:process_preds

Proto:static int process_preds(struct trace_event_call *call, const char *filter_string, struct event_filter *filter, struct filter_parse_error *pe)

Type:int

Parameter:

TypeParameterName
struct trace_event_call *call
const char *filter_string
struct event_filter *filter
struct filter_parse_error *pe
1516  ret = Read the filter string once to calculate the number of predicates* as well as how deep the parentheses go.* Returns:* 0 - everything is fine (err is undefined)* -1 - too many ')'* -2 - too many '('* -3 - No matching quote
1517  If ret < 0 Then
1519  Case ret == MISSING_QUOTE
1521  Break
1522  Case ret == TOO_MANY_OPEN
1524  Break
1525  Default
1528  Return ret
1531  If Not nr_preds Then Return -EINVAL
1534  prog = Without going into a formal proof, this explains the method that is used in* parsing the logical expressions
1536  If IS_ERR(prog) Then Return PTR_ERR(prog)
1539  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(prog, prog)
1540  Return 0
Caller
NameDescribe
process_system_preds
create_filterreate_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