trace_set_clr_event(9)
π
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 passNULLfor any system π«Άeventβ the event name to match, andNULLmeans all events within that system, no cap πsetβ1to enable,0to 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:
trace_event_buffer_reserve(9)trace_array_set_clr_event(9)t_show_filters(9)t_show_triggers(9)ftrace_event_show_filters_open(9)ftrace_event_show_triggers_open(9)trace_get_event_file(9)trace_put_event_file(9)event_trace_add_tracer(9)early_enable_events(9)
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
- 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