ftrace_init_nop(9)
β¨ ftrace_init_nop(9) β¨
okay so bestie, welcome to page ftrace_init_nop(9) from the Kernel API Manual π
this one's a kernel-arch-flavored baddie and she is very particular about how you treat her π«Ά
πΈ NAME πΈ
ftrace_init_nop β initialize a nop call site β¨
π SYNOPSIS π
int ftrace_init_nop (struct module *mod , struct dyn_ftrace *rec );
π ARGUMENTS π
modβ the module structure, but only if you're being called by module load initialization πrecβ the call site record (thinkmcount/fentry), the actual spot we're poking at π―
π₯ DESCRIPTION π₯
okay so this is a very sensitive operation and the arch needs to take great care with it, no cap. like, this is not the moment to freestyle π
The operation should carefully read the location, then check to see if what is read is indeed what we expect it to be, and then β only on success of that compare β it should write to the location. read β verify β write, in that order, periodt π
The code segment at rec->ip should contain the contents created by the compiler π§
The return must be:
0β on success π-EFAULTβ on error reading the location π-EINVALβ on a failed compare of the contents π-EPERMβ on error writing to the location π
any other value will be considered a failure, so don't be out here inventing your own return codes bestie, that's not the vibe β
π¦ SEE ALSO π¦
Kernel file ./include/linux/ftrace.h, plus these iconic little references:
stack_tracer_disable(9)stack_tracer_enable(9)ftrace_get_symaddr(9)ftrace_make_nop(9)ftrace_need_init_nop(9)ftrace_make_call(9)ftrace_modify_call(9)
and that's the whole page, main character energy complete π this lil gem lives in ./include/linux and it's dated October 2026 β signature ftrace_init_nop(9), 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