Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events.c Create Date:2022-07-28 12:19:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__ftrace_set_clr_event(NULL, NULL, NULL, set) will set/unset all events.

Proto:static int __ftrace_set_clr_event_nolock(struct trace_array *tr, const char *match, const char *sub, const char *event, int set)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
const char *match
const char *sub
const char *event
intset
738  ret = -EINVAL
739  eret = 0
743  call = event_call
744  name = trace_event_name(call)
746  If Not name || Not class || Not reg Then Continue
749  If static flags of different events & TRACE_EVENT_FL_IGNORE_ENABLE Then Continue
752  If match && strcmp(match, name) != 0 && strcmp(match, system) != 0 Then Continue
757  If sub && strcmp(sub, system) != 0 Then Continue
760  If event && strcmp(event, name) != 0 Then Continue
763  ret = ftrace_event_enable_disable(file, set)
770  If ret && Not eret Then eret = ret
773  ret = eret
776  Return ret
Caller
NameDescribe
__ftrace_set_clr_event
event_trace_del_tracerMust be called with event_mutex held