ftrace_get_addr_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ftrace_get_addr_new(9) β€” a Kernel API Manual moment

okay so bestie, welcome to ftrace_get_addr_new, straight out of the Kernel API Manual. this one's a tiny lil function with main character energy β€” it literally just tells you which address to set to. let's get into it πŸŽ€


✨ NAME ✨

ftrace_get_addr_new β€” Get the call address to set to. that's it, that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

unsigned long ftrace_get_addr_new (struct dyn_ftrace *rec );

πŸ’– ARGUMENTS πŸ’–

  • rec β€” The ftrace record descriptor. the lil record bestie we're inspecting 🫢

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• β€” if the record has the FTRACE_FL_REGS flag set, that means it wants to convert to a callback that saves all regs. very extra of it, honestly.

if FTRACE_FL_REGS is not set? then it wants to convert to the normal callback. lowkey simpler, highkey valid. periodt. πŸ’…


⭐ RETURN ⭐

the address of the trampoline to set to 🧚


🌈 SEE ALSO 🌈

Kernel file ./kernel/trace/ftrace.c, plus the whole friend group:


ngl bestie that's a lot of cross-references. you're gonna be scrolling like it's your fyp 😭 but every single one is right there, no cap.

and that's the whole page!! mwah πŸ’‹ this lil drop came from ./kernel/trace, dated October 2026, and it's signed ftrace_get_addr_new(9) β€” slay, go read some kernel source, i'm obsessed with u πŸŽ€βœ¨

πŸ“¦ where this page comes from