FUNCTION::ULONG_ARG(3stap)
π NAME π
function::ulong_arg β bestie, this one hands you a function argument back as an unsigned long. That's it. That's the whole job. And it eats. β¨
πΈ SYNOPSIS πΈ
ulong_arg:long(n:long)
Look at her. Short, sweet, slays. π
π¦ ARGUMENTS π¦
nβ the index of the argument you want back. Like, which one. The position. You point, she delivers. π
β¨ DESCRIPTION β¨
So the vibe is: give her n, and she returns the value of argument n as an unsigned long. Simple. Iconic. No notes.
Now here's the little lore drop you need, bestie: on architectures where a long is 32 bits, that value gets zero-extended to 64 bits. So it's not just sitting there being 32-bit and sad β no, it's getting stretched out to a full 64, with zeros padding the top. Glow up, honestly. π¦β¨
Heads up: if your arch has a 64-bit long already, there's nothing to extend β she just gives it to you as-is. The zero-extension is specifically an on-architectures-where-a-long-is-32-bits situation. iykyk. π
π SEE ALSO π
tapset::registers(3stap)β go read that one too, she's the neighbor and she's also doing numbers. π«Ά
Okay and real quick, the boring-but-important receipts: this whole thing lives in the SystemTap Tapset Reference, manual section 3stap, under the Context Functions chapter, and this particular printing is dated September 2026. Periodt. πβ¨ππ¦πΈπ π
π¦ 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