函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The global tracer (top) should be the first trace array added,* but we check the flag anyway.

函数原型:static inline struct trace_array *top_trace_array(void)

返回类型:struct trace_array

参数:

363  如果链表为空则返回:NULL
366  tr等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(链表前项, typeof( * tr), list)
368  WARN_ON(!(flags & TRACE_ARRAY_FL_GLOBAL))
369  返回:tr
调用者
名称描述
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
event_trace_enable
event_trace_enable_againvent_trace_enable() is called from trace_event_init() first to* initialize events and perhaps start any events that are on the* command line. Unfortunately, there are some events that will not* start this early, like the system call tracepoints that need
event_trace_init
enable_boot_kprobe_events