diff options
| author | Andrii Nakryiko <[email protected]> | 2023-01-20 20:09:09 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-01-23 19:53:01 +0000 |
| commit | 377c15b1a2cd6e38db86be7a721c8311d8a73836 (patch) | |
| tree | bd2362dbb17965d51143cc87d77321036f70d33b /tools/lib/bpf/bpf_tracing.h | |
| parent | libbpf: Define powerpc syscall regs spec in bpf_tracing.h (diff) | |
| download | kernel-377c15b1a2cd6e38db86be7a721c8311d8a73836.tar.gz kernel-377c15b1a2cd6e38db86be7a721c8311d8a73836.zip | |
libbpf: Define sparc syscall regs spec in bpf_tracing.h
Define explicit table of registers used for syscall argument passing.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_tracing.h')
| -rw-r--r-- | tools/lib/bpf/bpf_tracing.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/lib/bpf/bpf_tracing.h b/tools/lib/bpf/bpf_tracing.h index b3647c4a6c0c..a2db267a6bce 100644 --- a/tools/lib/bpf/bpf_tracing.h +++ b/tools/lib/bpf/bpf_tracing.h @@ -325,6 +325,14 @@ struct pt_regs___arm64 { #define __PT_PARM4_REG u_regs[UREG_I3] #define __PT_PARM5_REG u_regs[UREG_I4] #define __PT_PARM6_REG u_regs[UREG_I5] + +#define __PT_PARM1_SYSCALL_REG __PT_PARM1_REG +#define __PT_PARM2_SYSCALL_REG __PT_PARM2_REG +#define __PT_PARM3_SYSCALL_REG __PT_PARM3_REG +#define __PT_PARM4_SYSCALL_REG __PT_PARM4_REG +#define __PT_PARM5_SYSCALL_REG __PT_PARM5_REG +#define __PT_PARM6_SYSCALL_REG __PT_PARM6_REG + #define __PT_RET_REG u_regs[UREG_I7] #define __PT_FP_REG __unsupported__ #define __PT_RC_REG u_regs[UREG_I0] |
