函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apply_subsystem_event_filter

函数原型:int apply_subsystem_event_filter(struct trace_subsystem_dir *dir, char *filter_string)

返回类型:int

参数:

类型参数名称
struct trace_subsystem_dir *dir
char *filter_string
1851  system等于subsystem
1852  tr等于tr
1853  struct event_filter * filter = NULL
1854  err等于0
1856  mutex_lock( & event_mutex)
1859  如果非nr_events
1860  err等于负ENODEV
1861  转到:out_unlock
1864  如果非字符串比较
1865  filter_free_subsystem_preds(dir, tr)
1866  remove_filter_string(filter)
1867  filter等于filter
1868  filter = NULL
1870  tracepoint_synchronize_unregister()
1871  filter_free_subsystem_filters(dir, tr)
1872  __free_filter(filter)
1873  转到:out_unlock
1876  err等于reate_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
1877  如果filter
1882  __free_filter(filter)
1883  filter等于filter
1885  out_unlock :
1886  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1888  返回:err
调用者
名称描述
subsystem_filter_write