ftrace_make_call(9)
β¨ ftrace_make_call(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a little function with so much responsibility, and we're gonna get into it π
π NAME π
ftrace_make_call β the glow-up that turns a nop call site into an actual call to addr π¦
π SYNOPSIS π
int ftrace_make_call (struct dyn_ftrace *rec , unsigned long addr );
πΈ ARGUMENTS πΈ
recβ the call site record, likemcount/fentry. this is our main character π«Άaddrβ the address that the call site should call. like, the destination, the one it's calling, iykyk β¨
π¦ DESCRIPTION π¦
okay so listen. this is a very sensitive operation and the arch needs to take great care with it. no cap. like, the operation should carefully read the location, check to see if what is read is indeed what we expect it to be, and then on success of the compare, it should write to the location. read β‘οΈ compare β‘οΈ write. the holy trinity π
the code segment at rec->ip should be a nop π
Return must be:
0on success π-EFAULTon error reading the location π-EINVALon a failed compare of the contents π-EPERMon error writing to the location π
Any other value will be considered a failure. fr fr. don't be out here returning random numbers, that's not the vibe β
π SEE ALSO π
Kernel file ./include/linux/ftrace.h β and the whole squad:
stack_tracer_disable(9)stack_tracer_enable(9)ftrace_get_symaddr(9)ftrace_make_nop(9)ftrace_need_init_nop(9)ftrace_init_nop(9)ftrace_modify_call(9)
and that's the page!! brought to you by ./include/linux, dated October 2026, filed under ftrace_make_call(9) β slay, go patch some call sites responsibly bestie, 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