Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_trigger.c Create Date:2022-07-28 12:26:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trace_event_trigger_enable_disable

Proto:int trace_event_trigger_enable_disable(struct trace_event_file *file, int trigger_enable)

Type:int

Parameter:

TypeParameterName
struct trace_event_file *file
inttrigger_enable
444  ret = 0
446  If trigger_enable Then
447  If atomic_inc_return( & trigger-mode reference counter ) > 1 Then Return ret
449  Atomically set a bit in memory
450  ret = trace_event_enable_disable(file, 1, 1)
451  Else
452  If atomic_dec_return( & trigger-mode reference counter ) > 0 Then Return 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  Return ret
Caller
NameDescribe
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