mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-02 06:39:07 +08:00
libbpf: Define i386 syscall regs spec in bpf_tracing.h
Define explicit table of registers used for syscall argument passing. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20230120200914.3008030-15-andrii@kernel.org
This commit is contained in:
committed by
Andrii Nakryiko
parent
df16188dc2
commit
b2d8a8d269
@@ -115,6 +115,14 @@
|
|||||||
#define __PT_PARM1_REG eax
|
#define __PT_PARM1_REG eax
|
||||||
#define __PT_PARM2_REG edx
|
#define __PT_PARM2_REG edx
|
||||||
#define __PT_PARM3_REG ecx
|
#define __PT_PARM3_REG ecx
|
||||||
|
/* i386 syscall ABI is very different, refer to syscall(2) manpage */
|
||||||
|
#define __PT_PARM1_SYSCALL_REG ebx
|
||||||
|
#define __PT_PARM2_SYSCALL_REG ecx
|
||||||
|
#define __PT_PARM3_SYSCALL_REG edx
|
||||||
|
#define __PT_PARM4_SYSCALL_REG esi
|
||||||
|
#define __PT_PARM5_SYSCALL_REG edi
|
||||||
|
#define __PT_PARM6_SYSCALL_REG ebp
|
||||||
|
|
||||||
#define __PT_RET_REG esp
|
#define __PT_RET_REG esp
|
||||||
#define __PT_FP_REG ebp
|
#define __PT_FP_REG ebp
|
||||||
#define __PT_RC_REG eax
|
#define __PT_RC_REG eax
|
||||||
|
|||||||
Reference in New Issue
Block a user