trace_set_clr_event(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… trace_set_clr_event(9) β€” Kernel API Manual, but make it cute

okay so this is trace_set_clr_event(9), straight out of the Kernel API Manual, and she's here to spill the tea on turning event recording on and off πŸ’–


πŸŽ€ NAME πŸŽ€

trace_set_clr_event β€” enable or disable an event, bestie. That's literally the whole job. ✨


🌸 SYNOPSIS 🌸

int trace_set_clr_event (const char *system , const char *event , int
       set );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • system β€” the system name to match, and yes you can pass NULL for any system 🫢
  • event β€” the event name to match, and NULL means all events within that system, no cap πŸ’…
  • set β€” 1 to enable, 0 to disable. Binary queen πŸ‘‘

✨ DESCRIPTION ✨

This is the way for other parts of the kernel to enable or disable event recording. Like, it's giving "backstage pass to the event recorder" energy 🎟️

It returns 0 on success. If the parameters don't match any registered events, it returns -EINVAL β€” so yeah, if you get that, the vibe check failed 😭


πŸ’œ SEE ALSO πŸ’œ

Kernel file ./kernel/trace/trace_events.c is right there, and the whole friend group is:


okay bye bestie, this page was brought to you by source/version ./kernel/trace, dated October 2026, and the page name trace_set_clr_event(9) β€” mwah πŸ’–πŸ«Άβœ¨

πŸ“¦ where this page comes from