FUNCTION::REGISTER(3stap)
π FUNCTION::REGISTER π
okay bestie, welcome to function::register from the Context Functions part of the SystemTap Tapset Reference (yes that's the manual we're in, hi π).
β¨ NAME β¨
function::register β it hands you back the signed value of whichever CPU register you name. that's it. that's the whole job. and it eats. π
πΈ SYNOPSIS πΈ
register:long(name:string)
π ARGUMENTS π
nameβ the name of the register you want the value of. just the name. drop it in, get your number back, no cap. π
π¦ DESCRIPTION π¦
so here's the vibe: this returns the value of the named CPU register as it was saved when the current probe point was hit. like, the frozen-in-amber snapshot of that register at that exact moment. iconic. β¨
and if the register happens to be 32 bits? it gets sign-extended to 64 bits. the glow-up is automatic. π
π i386 β the names it recognizes π
for the i386 architecture, these are the recognized names. (name1/name2 means name1 and name2 are alternative names for the same register β like two stan accounts for one person, iykyk):
eax/ax, ebp/bp, ebx/bx, ecx/cx, edi/di, edx/dx, eflags/flags, eip/ip, esi/si, esp/sp, orig_eax/orig_ax, xcs/cs, xds/ds, xes/es, xfs/fs, xss/ss.
π x86_64 β the names it recognizes π
for the x86_64 architecture, here's the whole roster:
- 64-bit registers:
r8,r9,r10,r11,r12,r13,r14,r15,rax/ax,rbp/bp,rbx/bx,rcx/cx,rdi/di,rdx/dx,rip/ip,rsi/si,rsp/sp - 32-bit registers:
eax,ebp,ebx,ecx,edx,edi,edx,eip,esi,esp,flags/eflags,orig_eax - segment registers:
xcs/cs,xss/ss
not me pointing out that edx shows up twice in that 32-bit list β that's literally what the page says, so we keep it exactly as-is. no editing the source material, periodt. π
π§ powerpc β the names it recognizes π§
for powerpc:
r0, r1, ... r31, nip, msr, orig_gpr3, ctr, link, xer, ccr, softe, trap, dar, dsisr, result.
π s390x β the names it recognizes π
for s390x:
r0, r1, ... r15, args, psw.mask, psw.addr, orig_gpr2, ilc, trap.
π AArch64 β the names it recognizes π
for AArch64:
x0, x1, ... x30, fp, lr, sp, pc, and orig_x0.
π SEE ALSO π
tapset::registers(3stap)β go read it, bestie, it's the whole register tapset π«Ά
okay that's the whole page!! mwah π this was SystemTap Tapset Reference, version whatever-we-got, dated September 2026 β so if you're reading this in the future, hey, slay, you're literally so on time. π byeeee ππΈβ¨
π¦ 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