FUNCTION::PRINT_UBAC(3stap)
π FUNCTION::PRINT_UBAC π
okay bestie, you found a page from the 3stap manual β that's the SystemTap Tapset Reference, aka the group chat where all the context functions live. this one is literally the backtrace printer. let's get into it π«Ά
β¨ NAME β¨
function::print_ubacktrace_fileline β Print stack back trace for current user-space task. π¦
πΈ SYNOPSIS πΈ
so there's two ways to call this queen, and they're both valid, no cap:
1) print_ubacktrace_fileline()
2) print_ubacktrace_fileline(pc:long,sp:long,fp:long)
π ARGUMENTS π
okay so these are the little guys you can hand over, but ONLY in form 2), iykyk:
pcβ override PC. that's the program counter, bestie, you're telling it "hey, look here instead" πspβ override SP. stack pointer override, slay.fpβ override FP. frame pointer override, iconic.
π DESCRIPTION π
1) so with no arguments at all? that's the plain vibe. nothing extra to say about it, it just does the thing. β¨
2) this one is equivalent to print_ubacktrace, but the output for each symbol is longer β it includes file names and line numbers. so yeah, more info per line, more to love. π
and also: this is equivalent to print_ubacktrace_fileline, but it performs the backtrace using the pc, sp, and fp that you passed in. so you're driving the backtrace manually, main character energy fr fr. π₯
π NOTE π
listen up, this part matters. to get (full) backtraces for user space applications and shared shared libraries that aren't mentioned in the current script, you gotta runstapwith-d /path/to/exe-or-soand/or add--lddto load all the needed unwind data. otherwise your backtrace is gonna be givingβ¦ incomplete. π
π SEE ALSO π
tapset::ucontext-unwind(3stap)β go read your sister page, bestie π§
and that's the whole page, periodt. π
SystemTap Tapset Reference, version Ver β dated September 2026 (yes, the version string is genuinely just sitting there half-formed, we don't make the rules, we just report them π ). mwah, go forth and unwind your stacks 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