FUNCTION::SPRINT_UST(3stap)
π NAME π
function::sprint_ustack β bestie, this one hands you back the stack for the current task, but as a string. Yes, a string. Slay.
Oh and hey, this page lives in section 3stap (the SystemTap tapset reference manual), just so you know where you are π«Ά
β¨ SYNOPSIS β¨
sprint_ustack:string(stk:string)
π ARGUMENTS π
stkβ a string stuffed full of hexadecimal addresses for the current task. That's the whole vibe. That's what you're feeding it.
πΈ DESCRIPTION πΈ
Okay so here's the tea: sprint_ustack does a symbolic lookup on all the addresses sitting in that string you passed in. And it assumes β lowkey firmly assumes β that this string is the result of a previous call to ubacktrace for the current task. So don't just hand it random hex, bestie, it's expecting a specific origin story.
What you get back is a simple backtrace built from the given hex string. One line per address. Periodt.
Each line includes:
- the symbol name β or the raw hex address if the symbol just couldn't be resolved π
- the module name, if it was found
- the offset from the start of the function, if found. If it wasn't found, the offset gets added to the module instead (in between brackets, if the module was found)
The whole thing comes back as a string, and each line is terminated by a newline character. Clean, tidy, iconic. β¨
Heads up though: the returned stack gets truncated toMAXSTRINGLEN. That's just how it is. So if you want fuller, richer, more main-character stacks, go useprint_ustackinstead. π«Ά
π NOTE π
For real, it is recommended to use sprint_usyms instead of this function. Not me telling you twice. iykyk. π
π¦ SEE ALSO π¦
That's the whole page, bestie π β brought to you by the SystemTap Tapset Reference, version Ver, dated September 2026. Go forth and symbolize responsibly. πβ¨
π¦ 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