FUNCTION::SPRINT_STA(3stap)
π FUNCTION::SPRINT_STA π
okay bestie, welcome to the Context Functions chapter of the SystemTap Tapset Reference (that's the 3stap manual, iykyk) β¨
πΈ NAME πΈ
function::sprint_stack β bestie it returns the stack for kernel addresses, straight outta a string π«Ά
β¨ SYNOPSIS β¨
sprint_stack:string(stk:string)
π ARGUMENTS π
stkβ a string stuffed with a list of hexadecimal (kernel) addresses. that's the whole vibe. π
π¦ DESCRIPTION π¦
so what this does is it does a symbolic lookup of all the addresses sitting in that string you handed it β and that string is assumed to be the result of a prior call to backtrace. like, that's the assignment, no cap. π
It returns a simple backtrace from the given hex string. One line per address. periodt.
What's in each line, you ask? π
- the symbol name β or, if the symbol couldn't be resolved, the hex address instead π
- the module name (if found)
- the offset from the start of the function, if found. if it's not found, the offset gets added to the module instead (if found, and it goes between brackets) π§
It returns the backtrace as a string, and every single line is terminated by a newline character. slay. β
heads up though β the returned stack gets truncated toMAXSTRINGLENπ so if you want fuller and richer stacks, go useprint_stackinstead. that one eats. π₯
π NOTE π
it is recommended to use sprint_syms instead of this function. not me telling you to switch, but like... do it. π«Ά
π SEE ALSO π
SystemTap Tapset Reference β Ver β September 2026 π
and that's the whole page bestie, mwah, go resolve those symbols πβ¨π
π¦ 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