函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_trigger.c Create Date:2022-07-27 13:34:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_trigger_filter - Generic event_command @set_filter implementation*@filter_str: The filter string for the trigger, NULL to remove filter*@trigger_data: Trigger-specific data*@file: The trace_event_file associated with the event* Common implementation

函数原型:int set_trigger_filter(char *filter_str, struct event_trigger_data *trigger_data, struct trace_event_file *file)

返回类型:int

参数:

类型参数名称
char *filter_str
struct event_trigger_data *trigger_data
struct trace_event_file *file
730  data等于trigger_data
731  filter等于NULL
732  ret等于负EINVAL
735  如果非filter_str则转到:assign
738  s等于分割字符串
740  如果非strlen - Find the length of a string*@s: The string to be sized字符串比较不等于0则转到:out
743  如果非filter_str则转到:out
747  ret等于create_event_filter(tr, event_call, filter_str, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., & filter)
753  assign :
754  tmp等于cu_access_pointer() - fetch RCU pointer with no dereferencing*@p: The pointer to read* Return the value of the specified RCU-protected pointer, but omit the* lockdep checks for being in an RCU read-side critical section(filter)
756  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(filter, filter)
758  如果tmp
760  tracepoint_synchronize_unregister()
761  free_event_filter(tmp)
764  kfree(filter_str)
765  filter_str = NULL
767  如果filter_str
768  filter_str等于kstrdup(filter_str, GFP_KERNEL)
769  如果非filter_str
771  filter = NULL
772  ret等于负ENOMEM
775  out :
776  返回:ret