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:11
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

Proto:int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
char *buf
intset
793  event = NULL , sub = NULL
796  If Not tr Then Return -ENOENT
810  match = strsep - Split a string into tokens*@s: The string to be searched*@ct: The characters to search for* strsep() updates @s to point after the token, ready for the next call.* It returns empty tokens, too, behaving exactly like the libc function
811  If buf Then
812  sub = match
813  event = buf
814  match = NULL
816  If Not strlen - Find the length of a string*@s: The string to be sized || strcmp(sub, "*") == 0 Then sub = NULL
818  If Not strlen - Find the length of a string*@s: The string to be sized || strcmp(event, "*") == 0 Then event = NULL
822  ret = __ftrace_set_clr_event(tr, match, sub, event, set)
825  If buf Then *(buf - 1) = ':'
828  Return ret
Caller
NameDescribe
ftrace_event_write
early_enable_events