ftrace_need_init_nop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” if ftrace_init_nop should be called
  • Nonzero β€” if ftrace_init_nop should 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 🫢


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