ftrace_need_init_nop(9)
π ftrace_need_init_nop(9) π
okay so bestie, welcome to the Kernel API Manual β yes, that's the manual we're in, it's giving "official documentation but make it cute" β¨
πΈ NAME πΈ
ftrace_need_init_nop β returns whether nop call sites should be initialized π
π¦ SYNOPSIS π¦
ftrace_need_init_nop
that's it, that's the whole synopsis, no arguments, we love a no-arg icon π
β¨ DESCRIPTION β¨
okay so here's the lore, bestie π normally the compiler's -mnop-mcount flag generates suitable nops all by itself, so we literally don't need to call ftrace_init_nop if the code is built with that flag. easy, right? π
but β and this is the main character energy β architectures where that's not always the case may define their own condition. so this whole function exists to let them speak their truth π
the return value must be:
0β ifftrace_init_nopshould be called- Nonzero β if
ftrace_init_nopshould not be called
no in-between, no "it depends", it's 0 or not-0, periodt π₯
fr fr, keep that straight β zero means do the thing, nonzero means don't. getting it backwards is not the vibe π
π SEE ALSO π
kernel file ./include/linux/ftrace.h, plus the whole squad π«Ά
stack_tracer_disable(9)stack_tracer_enable(9)ftrace_get_symaddr(9)ftrace_make_nop(9)ftrace_init_nop(9)ftrace_make_call(9)ftrace_modify_call(9)
alright bestie, that's the whole page, you ate that π and just so we're official: this came from the source at ./include/linux, dated October 2026, in the Kernel API Manual β love that for us, 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