函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vent_triggers_call - Call triggers associated with a trace event*@file: The trace_event_file associated with the event*@rec: The trace entry for the event, NULL for unconditional invocation* For each trigger associated with an event, invoke the trigger

函数原型:enum event_trigger_type event_triggers_call(struct trace_event_file *file, void *rec, struct ring_buffer_event *event)

返回类型:enum event_trigger_type

参数:

类型参数名称
struct trace_event_file *file
void *rec
struct ring_buffer_event *event
60  tt等于ETT_NONE
63  如果链表为空则返回:tt
67  如果paused则继续下一循环
69  如果非rec
70  func(data, rec, event)
71  继续下一循环
73  filter等于cu_dereference_sched() - fetch RCU-sched-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* Makes rcu_dereference_check() do the dirty work.(filter)
74  如果filter且非rn 1 if event matches, 0 otherwise (discard) 则继续下一循环
76  如果event_command_post_trigger(cmd_ops)则
77  tt或等于trigger_type
78  继续下一循环
80  func(data, rec, event)
82  返回:tt
调用者
名称描述
tracing_mark_write
trace_trigger_soft_disabledrace_trigger_soft_disabled - do triggers and test if soft disabled*@file: The file pointer of the event to test* If any triggers without filters are attached to this event, they* will be called here