1FUNCTION::REGISTER(3stap)      Context Functions     FUNCTION::REGISTER(3stap)
2
3
4

NAME

6       function::register - Return the signed value of the named CPU register
7

SYNOPSIS

9           register:long(name:string)
10

ARGUMENTS

12       name
13           Name of the register to return
14

DESCRIPTION

16       Return the value of the named CPU register, as it was saved when the
17       current probe point was hit. If the register is 32 bits, it is
18       sign-extended to 64 bits.
19
20       For the i386 architecture, the following names are recognized.
21       (name1/name2 indicates that name1 and name2 are alternative names for
22       the same register.) eax/ax, ebp/bp, ebx/bx, ecx/cx, edi/di, edx/dx,
23       eflags/flags, eip/ip, esi/si, esp/sp, orig_eax/orig_ax, xcs/cs, xds/ds,
24       xes/es, xfs/fs, xss/ss.
25
26       For the x86_64 architecture, the following names are recognized: 64-bit
27       registers: r8, r9, r10, r11, r12, r13, r14, r15, rax/ax, rbp/bp,
28       rbx/bx, rcx/cx, rdi/di, rdx/dx, rip/ip, rsi/si, rsp/sp; 32-bit
29       registers: eax, ebp, ebx, ecx, edx, edi, edx, eip, esi, esp,
30       flags/eflags, orig_eax; segment registers: xcs/cs, xss/ss.
31
32       For powerpc, the following names are recognized: r0, r1, ... r31, nip,
33       msr, orig_gpr3, ctr, link, xer, ccr, softe, trap, dar, dsisr, result.
34
35       For s390x, the following names are recognized: r0, r1, ... r15, args,
36       psw.mask, psw.addr, orig_gpr2, ilc, trap.
37
38       For AArch64, the following names are recognized: x0, x1, ... x30, fp,
39       lr, sp, pc, and orig_x0.
40

SEE ALSO

42       tapset::registers(3stap)
43
44
45
46SystemTap Tapset Reference       October 2018        FUNCTION::REGISTER(3stap)
Impressum