函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_event_trigger_enable_disable

函数原型:int trace_event_trigger_enable_disable(struct trace_event_file *file, int trigger_enable)

返回类型:int

参数:

类型参数名称
struct trace_event_file *file
inttrigger_enable
444  ret等于0
446  如果trigger_enable
447  如果atomic_inc_return( & trigger-mode reference counter )大于1则返回:ret
449  设置内存位
450  ret等于trace_event_enable_disable(file, 1, 1)
451  否则
452  如果atomic_dec_return( & trigger-mode reference counter )大于0则返回:ret
454  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
455  ret等于trace_event_enable_disable(file, 0, 1)
458  返回:ret
调用者
名称描述
clear_event_triggerslear_event_triggers - Clear all triggers associated with a trace array*@tr: The trace array to clear* For each trigger, the triggering event has its tm_ref decremented* via trace_event_trigger_enable_disable(), and any associated event* (in the case of
register_triggergister_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
unregister_triggerregister_trigger - Generic event_command @unreg implementation*@glob: The raw string used to register the trigger*@ops: The trigger ops associated with the trigger*@test: Trigger-specific data used to find the trigger to remove*@file: The trace_event_file
event_enable_register_trigger
event_enable_unregister_trigger
hist_trigger_enable
hist_unregister_trigger
hist_unreg_all
hist_enable_unreg_all