clear_event_triggers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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_triggers must be called with event_mutex held. Like, that’s not a suggestion, bestie. πŸ”₯

🌈 SEE ALSO 🌈

the whole kernel trigger friend group is here, plus the source file:


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