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

Name:aller must hold event_mutex

Proto:int apply_event_filter(struct trace_event_file *file, char *filter_string)

Type:int

Parameter:

TypeParameterName
struct trace_event_file *file
char *filter_string
1799  call = event_call
1800  struct event_filter * filter = NULL
1803  If Not strcmp(strstrip(filter_string), "0") Then
1804  filter_disable(file)
1805  filter = event_filter(file)
1807  If Not filter Then Return 0
1810  event_clear_filter(file)
1813  tracepoint_synchronize_unregister()
1814  __free_filter(filter)
1816  Return 0
1819  err = 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
1827  If filter Then
1830  tmp = event_filter(file)
1831  If Not err Then event_set_filtered_flag(file)
1833  Else filter_disable(file)
1836  event_set_filter(file, filter)
1838  If tmp Then
1841  __free_filter(tmp)
1845  Return err