clear_event_triggers(9)
π NAME π
okay so bestie, clear_event_triggers β from the Kernel API Manual, section 9 β is literally here to clear all triggers associated with a trace array. Thatβs the whole NAME moment. Periodt. π
β¨ SYNOPSIS β¨
the signature is giving exactly this, no notes:
void clear_event_triggers (struct trace_array *tr );
π ARGUMENTS π
trβ the trace array to clear. Thatβs it, thatβs the argument, bestie.
π¦ DESCRIPTION π¦
okay so hereβs the tea: 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 enable/disable_event triggers) will have its sm_ref decremented via free->trace_event_enable_disable. That combination effectively reverses the soft-mode/trigger state added by trigger registration.
π¨ Technical caveat, no cap:clear_event_triggersmust be called withevent_mutexheld. Like, thatβs not a suggestion, bestie. π₯
π SEE ALSO π
the whole kernel trigger friend group is here, plus the source file:
- Kernel file:
./kernel/trace/trace_events_trigger.c event_triggers_call(9)event_triggers_post_call(9)event_trigger_count(9)event_trigger_print(9)event_trigger_init(9)event_trigger_free(9)update_cond_flag(9)register_trigger(9)unregister_trigger(9)event_trigger_check_remove(9)event_trigger_empty_param(9)event_trigger_separate_filter(9)trigger_data_alloc(9)event_trigger_parse_num(9)event_trigger_set_filter(9)event_trigger_reset_filter(9)event_trigger_register(9)event_trigger_unregister(9)event_trigger_parse(9)set_trigger_filter(9)find_named_trigger(9)is_named_trigger(9)save_named_trigger(9)del_named_trigger(9)pause_named_trigger(9)unpause_named_trigger(9)set_named_trigger_data(9)
big kiss from ./kernel/trace β source/version girlie β dated October 2026, and itβs clear_event_triggers(9) signing off. π
πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms