/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_X86_PTRACE_ABI_H #define _ASM_X86_PTRACE_ABI_H #ifdef __i386__ #define EBX 0 #define ECX 1 #define EDX 2 #define ESI 3 #define EDI 4 #define EBP 5 #define EAX 6 #define DS 7 #define ES 8 #define FS 9 #define GS 10 #define ORIG_EAX 11 #define EIP 12 #define CS 13 #define EFL 14 #define UESP 15 #define SS 16 #define FRAME_SIZE 17 #else /* __i386__ */ #if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS) /* * C ABI says these regs are callee-preserved. They aren't saved on kernel entry * unless syscall needs a complete, fully filled "struct pt_regs". */ #define R15 0 #define R14 8 #define R13 16 #define R12 24 #define RBP 32 #define RBX 40 /* These regs are callee-clobbered. Always saved on kernel entry. */ #define R11 48 #define R10 56 #define R9 64 #define R8 72 #define RAX 80 #define RCX 88 #define RDX 96 #define RSI 104 #define RDI 112 /* * On syscall entry, this is syscall#. On CPU exception, this is error code. * On hw interrupt, it's IRQ number: */ #define ORIG_RAX 120 /* Return frame for iretq */ #define RIP 128 #define CS 136 #define EFLAGS 144 #define RSP 152 #define SS 160 #endif /* __ASSEMBLY__ */ /* top of stack page */ #define FRAME_SIZE 168 #endif /* !__i386__ */ /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */ #define PTRACE_GETREGS 12 #define PTRACE_SETREGS 13 #define PTRACE_GETFPREGS 14 #define PTRACE_SETFPREGS 15 #define PTRACE_GETFPXREGS 18 #define PTRACE_SETFPXREGS 19 #define PTRACE_OLDSETOPTIONS 21 /* only useful for access 32bit programs / kernels */ #define PTRACE_GET_THREAD_AREA 25 #define PTRACE_SET_THREAD_AREA 26 #ifdef __x86_64__ # define PTRACE_ARCH_PRCTL 30 #endif #define PTRACE_SYSEMU 31 #define PTRACE_SYSEMU_SINGLESTEP 32 #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */ #ifndef __ASSEMBLY__ #include <linux/types.h> #endif #endif /* _ASM_X86_PTRACE_ABI_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
a.out.h | File | 756 B | 0644 |
|
auxvec.h | File | 546 B | 0644 |
|
bitsperlong.h | File | 321 B | 0644 |
|
boot.h | File | 323 B | 0644 |
|
bootparam.h | File | 6.97 KB | 0644 |
|
bpf_perf_event.h | File | 40 B | 0644 |
|
byteorder.h | File | 176 B | 0644 |
|
debugreg.h | File | 3.21 KB | 0644 |
|
e820.h | File | 2.52 KB | 0644 |
|
errno.h | File | 31 B | 0644 |
|
fcntl.h | File | 31 B | 0644 |
|
hw_breakpoint.h | File | 69 B | 0644 |
|
hwcap2.h | File | 174 B | 0644 |
|
hyperv.h | File | 12.73 KB | 0644 |
|
ioctl.h | File | 31 B | 0644 |
|
ioctls.h | File | 32 B | 0644 |
|
ipcbuf.h | File | 32 B | 0644 |
|
ist.h | File | 854 B | 0644 |
|
kvm.h | File | 6.98 KB | 0644 |
|
kvm_para.h | File | 2.91 KB | 0644 |
|
kvm_perf.h | File | 388 B | 0644 |
|
ldt.h | File | 1.28 KB | 0644 |
|
mce.h | File | 1.28 KB | 0644 |
|
mman.h | File | 1002 B | 0644 |
|
msgbuf.h | File | 1.03 KB | 0644 |
|
msr.h | File | 346 B | 0644 |
|
mtrr.h | File | 4.13 KB | 0644 |
|
param.h | File | 31 B | 0644 |
|
perf_regs.h | File | 717 B | 0644 |
|
poll.h | File | 30 B | 0644 |
|
posix_types.h | File | 224 B | 0644 |
|
posix_types_32.h | File | 765 B | 0644 |
|
posix_types_64.h | File | 609 B | 0644 |
|
posix_types_x32.h | File | 581 B | 0644 |
|
prctl.h | File | 418 B | 0644 |
|
processor-flags.h | File | 6.47 KB | 0644 |
|
ptrace-abi.h | File | 1.99 KB | 0644 |
|
ptrace.h | File | 1.46 KB | 0644 |
|
resource.h | File | 34 B | 0644 |
|
sembuf.h | File | 777 B | 0644 |
|
setup.h | File | 6 B | 0644 |
|
shmbuf.h | File | 1.23 KB | 0644 |
|
sigcontext.h | File | 9.5 KB | 0644 |
|
sigcontext32.h | File | 247 B | 0644 |
|
siginfo.h | File | 494 B | 0644 |
|
signal.h | File | 2.83 KB | 0644 |
|
socket.h | File | 32 B | 0644 |
|
sockios.h | File | 33 B | 0644 |
|
stat.h | File | 3.06 KB | 0644 |
|
statfs.h | File | 416 B | 0644 |
|
svm.h | File | 6.9 KB | 0644 |
|
swab.h | File | 724 B | 0644 |
|
termbits.h | File | 34 B | 0644 |
|
termios.h | File | 33 B | 0644 |
|
types.h | File | 152 B | 0644 |
|
ucontext.h | File | 2.07 KB | 0644 |
|
unistd.h | File | 359 B | 0644 |
|
unistd_32.h | File | 9.9 KB | 0644 |
|
unistd_64.h | File | 8.68 KB | 0644 |
|
unistd_x32.h | File | 15.3 KB | 0644 |
|
vm86.h | File | 3.04 KB | 0644 |
|
vmx.h | File | 6.59 KB | 0644 |
|
vsyscall.h | File | 263 B | 0644 |
|