ftrace_find_event(9)
π ftrace_find_event(9) β a Kernel API Manual moment
okay bestie, welcome to the Kernel API Manual β¨ this one is short and sweet and honestly iconic for it.
π NAME π
ftrace_find_event β find a registered event π
πΈ SYNOPSIS πΈ
struct trace_event * ftrace_find_event (int type );
π¦ ARGUMENTS π¦
typeβ the type of event you're looking for, like literally the whole vibe check of what you want back π
β DESCRIPTION β
So here's the tea: it returns an event of type type β and if there's nothing matching, you get NULL instead. no cap, that's it π
β οΈ big one: this is called with trace_event_read_lock held. so like, the lock is already on when you roll up. don't be the main character who forgets that, fr fr π₯
π SEE ALSO π
- Kernel file
./kernel/trace/trace_output.cβ go read the source, it ate π trace_print_bitmask_seq(9)trace_print_hex_seq(9)trace_print_lat_fmt(9)register_trace_event(9)unregister_trace_event(9)
and that's the whole page, bestie π«Ά sign-off time: this lil gem lives under ./kernel/trace, it's the October 2026 edition, and yes the header and footer both say ftrace_find_event(9) because consistency is slay π
β¨π
π¦ 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