函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_filter_start

函数原型:static int create_filter_start(char *filter_string, bool set_str, struct filter_parse_error **pse, struct event_filter **filterp)

返回类型:int

参数:

类型参数名称
char *filter_string
boolset_str
struct filter_parse_error **pse
struct event_filter **filterp
1682  struct filter_parse_error * pe = NULL
1683  err等于0
1685  如果WARN_ON_ONCE( * pse || * filterp)则返回:负EINVAL
1688  filter等于分配内存并置零
1689  如果filterset_str
1690  filter_string等于kstrdup(filter_string, GFP_KERNEL)
1691  如果非filter_stringerr等于负ENOMEM
1695  pe等于分配内存并置零
1697  如果非filter或非peerr
1698  kfree(pe)
1699  __free_filter(filter)
1700  返回:负ENOMEM
1704  filterp等于filter
1705  pse等于pe
1707  返回:0
调用者
名称描述
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
create_system_filterreate_system_filter - create a filter for an event_subsystem*@system: event_subsystem to create a filter for*@filter_str: filter string*@filterp: out param for created filter (always updated on return)* Identical to create_filter() except that it creates