函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gister_trigger - Generic event_command @reg implementation*@glob: The raw string used to register the trigger*@ops: The trigger ops associated with the trigger*@data: Trigger-specific data to associate with the trigger*@file: The trace_event_file

函数原型:static int register_trigger(char *glob, struct event_trigger_ops *ops, struct event_trigger_data *data, struct trace_event_file *file)

返回类型:int

参数:

类型参数名称
char *glob
struct event_trigger_ops *ops
struct event_trigger_data *data
struct trace_event_file *file
540  ret等于0
542  lockdep_assert_held( & event_mutex)
545  如果trigger_type恒等于trigger_type
546  ret等于负EEXIST
547  转到:out
551  如果init
552  ret等于init(ops, data)
553  如果ret小于0则转到:out
557  添加RCU保护项
558  ret自加
560  pdate_cond_flag - Set or reset the TRIGGER_COND bit*@file: The trace_event_file associated with the event* If an event has triggers and any of those triggers has a filter or* a post_trigger, trigger invocation needs to be deferred until after* the current
561  如果trace_event_trigger_enable_disable(file, 1)小于0则
562  删除不需要重新初始化的列表项
563  pdate_cond_flag - Set or reset the TRIGGER_COND bit*@file: The trace_event_file associated with the event* If an event has triggers and any of those triggers has a filter or* a post_trigger, trigger invocation needs to be deferred until after* the current
564  ret自减
566  out :
567  返回:ret