函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__ftrace_set_clr_event

函数原型:static int __ftrace_set_clr_event(struct trace_array *tr, const char *match, const char *sub, const char *event, int set)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
const char *match
const char *sub
const char *event
intset
784  mutex_lock( & event_mutex)
785  ret等于__ftrace_set_clr_event(NULL, NULL, NULL, set) will set/unset all events.
786  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.
788  返回:ret
调用者
名称描述
ftrace_set_clr_event
trace_set_clr_eventrace_set_clr_event - enable or disable an event*@system: system name to match (NULL for any system)*@event: event name to match (NULL for all events, within system)*@set: 1 to enable, 0 to disable* This is a way for other parts of the kernel to enable or
trace_array_set_clr_eventrace_array_set_clr_event - enable or disable an event for a trace array
system_enable_write