early_enable_events(9)
π early_enable_events(9) π
okay bestie, this is the Kernel API Manual page for early_enable_events, and it's literally about enabling events from the bootup buffer. let's get into it π
πΈ NAME πΈ
early_enable_events β enable events from the bootup buffer β¨
π¦ SYNOPSIS π¦
void early_enable_events (struct trace_array *tr , char *buf , bool
disable_first );
π ARGUMENTS π
trβ the trace array to enable the events in πbufβ the buffer containing the comma separated list of events β¨disable_firstβ if true, disable all events inbufbefore enabling them π
π DESCRIPTION π
so this function enables events from the bootup buffer. if disable_first is true, it will first disable all events in the buffer before enabling them. periodt π
now for syscall events, which rely on a global refcount to register the SYSCALL_WORK_SYSCALL_TRACEPOINT flag (especially for pid 1), we must ensure the refcount hits zero before re-enabling them. a simple βdisable then enableβ per-event is not enough if multiple syscalls are used, as the refcount will stay above zero. thus, we need a two-phase approach: disable all, then enable all π₯
literally the whole point, bestie: two phases, no shortcuts π«Ά
π SEE ALSO π
- Kernel file
./kernel/trace/trace_events.c trace_event_buffer_reserve(9)trace_set_clr_event(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)
mwah π β source: ./kernel/trace Β· version: early_enable_events(9) Β· date: October 2026
π¦ 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