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

Name:create_filter_start

Proto:static int create_filter_start(char *filter_string, bool set_str, struct filter_parse_error **pse, struct event_filter **filterp)

Type:int

Parameter:

TypeParameterName
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  If WARN_ON_ONCE( * pse || * filterp) Then Return -EINVAL
1688  filter = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1689  If filter && set_str Then
1690  filter_string = kstrdup(filter_string, GFP_KERNEL)
1691  If Not filter_string Then err = -ENOMEM
1695  pe = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
1697  If Not filter || Not pe || err Then
1698  kfree(pe)
1699  __free_filter(filter)
1700  Return -ENOMEM
1704  filterp = filter
1705  pse = pe
1707  Return 0
Caller
NameDescribe
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