FUNCTION::STACK(3stap)
β¨ NAME β¨
function::stack β bestie, this one hands u the return address at a given depth of the kernel stack backtrace π
(yes, in the 3stap manual, we're fancy like that)
πΈ SYNOPSIS πΈ
stack:long(n:long)
π ARGUMENTS π
nβ how many levels to descend in the stack, like climbing down the ladder of ur call history πͺ
π DESCRIPTION π
Okay so here's the vibe: it performs a simple (kernel) backtrace, and then gives u back the element sitting at the position u asked for. That's it. That's the whole thing. Lowkey iconic for how much it does with so little π«Ά
But here's the part that's actually the main character: the results of the backtrace itself are cached π₯. So the backtrace computation is performed at most once, no matter how many times stack gets called, or in what order u call it. Not me being obsessed with memoization β¨ periodt.
π¦ SEE ALSO π¦
tapset::context-symbols(3stap)β go read it, iykyk π
okay bye bestie, that's the whole page π this was the SystemTap Tapset Reference, Version (September 2026) β mwah, go write some tapsets, u ate ππ
π¦ 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