sprint_backtrace_build_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

<pink>sprint_backtrace_build_id(9)</pink> β€” from the Kernel API Manual, bestie. It's literally gonna look up a backtrace symbol and return it in a text buffer. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

int sprint_backtrace_build_id (char *buffer , unsigned long address );

πŸŽ€ ARGUMENTS πŸŽ€

  • buffer β€” buffer to be stored πŸ’Ύ
  • address β€” address to lookup πŸ”

πŸ’… DESCRIPTION πŸ’…

okay so this function is for stack backtrace, and it does the same thing as sprint_symbol but with a modified/decreased address. no cap.

here's the tea πŸ“: if there's a tail-call to the function marked "noreturn", gcc optimized out code after the call so that the stack-saved return address could point outside of the caller. this function ensures that kallsyms will find the original caller by decreasing address. iconic behavior honestly.

it also appends the module build ID to the buffer if address is within a kernel module. 🧚

and yes bestie, this function returns the number of bytes stored in buffer. periodt. πŸ”₯

🌈 SEE ALSO 🌈


cute sign-off: source/version is ./kernel, date is October 2026 β€” sprint_backtrace_build_id(9) says bye, bestie πŸ’–πŸ‘‘

πŸ“¦ where this page comes from