FUNCTION::SPRINT_BAC(3stap)
π FUNCTION::SPRINT_BAC β the 3stap girlies know π
okay so bestie, welcome to the Context Functions corner of the SystemTap Tapset Reference (yes, that's the 3stap manual, we're fancy here) β¨
πΈ NAME πΈ
function::sprint_backtrace β returns the stack back trace as a string, no cap π«Ά
π SYNOPSIS π
sprint_backtrace:string()
π¦ ARGUMENTS π¦
None. literally nothing, she takes no arguments, she's low maintenance π
β¨ DESCRIPTION β¨
okay so here's the tea β β sprint_backtrace returns a simple (kernel) backtrace. and the format?? one line per address, periodt. each of those lines includes:
- the symbol name β or, if the symbol couldn't be resolved, the hex address instead π
- the module name, if one was found
and it also includes the offset from the start of the function if that's found. but if it isn't found, the offset gets added to the module instead (if found, and it shows up between brackets) π
she hands the whole backtrace back to you as a string, and every single line is terminated by a newline character. slay.
β οΈ heads up bestie, this is the important part: the returned stack gets truncated toMAXSTRINGLEN. so if you want fuller and richer stacks, you gotta useprint_backtraceinstead. don't come crying to me when your stack gets cut off π
she's also equivalent to sprint_stack(backtrace) β but she's more efficient π because there's no need to translate between hex strings and the final backtrace string. she just gets it. main character energy fr fr π₯
π SEE ALSO π
tapset::context-unwind(3stap)β go read her sister, she's iconic too π
SystemTap Tapset Reference Ver πΈ September 2026 β mwah, that's the version and the date, love u, bye bestie πβ¨π¦π
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms