event_trace_add_tracer(9)
π« event_trace_add_tracer(9) π«
okay so bestie, this is a page from the Kernel API Manual and it's literally about giving a brand-new trace instance its own little events corner in the filesystem β¨ buckle up π
πΈ NAME πΈ
event_trace_add_tracer β adds an instance of a trace_array to events π¦
β¨ SYNOPSIS β¨
int event_trace_add_tracer (struct dentry *parent , struct trace_array *tr );
π ARGUMENTS π
parentβ the parent dentry, aka where the files/directories for events are gonna live πtrβ the trace array that's associated with these events π
π«Ά DESCRIPTION π«Ά
so when a new instance gets created, it lowkey needs to set up its own events directory, plus all the other files that go with events. this function handles that, and it also creates the event hierarchy inside the parent/events directory π
returns 0 on success. periodt π―
β οΈ ngl this one's serious: it must be called with event_mutex held. no cap, don't skip that π
π₯ SEE ALSO π₯
Kernel file ./kernel/trace/trace_events.c, plus all these icons π:
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)early_enable_events(9)
and that's the whole vibe bestie π this cutie lives in ./kernel/trace, it's the October 2026 edition, and the page is literally called event_trace_add_tracer(9) β slay, go read the source, 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