sprint_backtrace_build_id(9)
πΈ 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 π
- Kernel file
./kernel/kallsyms.c sprint_symbol(9)sprint_symbol_build_id(9)sprint_symbol_no_offset(9)sprint_backtrace(9)
cute sign-off: source/version is ./kernel, date is October 2026 β sprint_backtrace_build_id(9) says bye, bestie ππ
π¦ 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