函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:process_preds

函数原型:static int process_preds(struct trace_event_call *call, const char *filter_string, struct event_filter *filter, struct filter_parse_error *pe)

返回类型:int

参数:

类型参数名称
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  如果ret小于0则
1519  :ret恒等于MISSING_QUOTE
1521  退出
1522  :ret恒等于TOO_MANY_OPEN
1524  退出
1525  默认
1528  返回:ret
1531  如果非nr_preds则返回:负EINVAL
1534  prog等于Without going into a formal proof, this explains the method that is used in* parsing the logical expressions
1536  如果是错误则返回:错误
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  返回:0
调用者
名称描述
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