diff options
| author | Andrii Nakryiko <[email protected]> | 2023-01-20 20:08:54 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-01-23 19:52:59 +0000 |
| commit | 2eb2be30b8dac137d9a21c6125a68993b9dc8a00 (patch) | |
| tree | 339a38d46b1bad0d53f28b216b2b1dc42c1f6641 /tools/lib/bpf/bpf_tracing.h | |
| parent | libbpf: Complete mips spec in bpf_tracing.h (diff) | |
| download | kernel-2eb2be30b8dac137d9a21c6125a68993b9dc8a00.tar.gz kernel-2eb2be30b8dac137d9a21c6125a68993b9dc8a00.zip | |
libbpf: Complete powerpc spec in bpf_tracing.h
Add definitions of PARM6 through PARM8 for powerpc architecture. Add
also a link to a functiona call sequence documentation for future reference.
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 f356955b059a..1b9447f847b0 100644 --- a/tools/lib/bpf/bpf_tracing.h +++ b/tools/lib/bpf/bpf_tracing.h @@ -222,11 +222,19 @@ struct pt_regs___arm64 { #elif defined(bpf_target_powerpc) +/* + * http://refspecs.linux-foundation.org/elf/elfspec_ppc.pdf (page 3-14, + * section "Function Calling Sequence") + */ + #define __PT_PARM1_REG gpr[3] #define __PT_PARM2_REG gpr[4] #define __PT_PARM3_REG gpr[5] #define __PT_PARM4_REG gpr[6] #define __PT_PARM5_REG gpr[7] +#define __PT_PARM6_REG gpr[8] +#define __PT_PARM7_REG gpr[9] +#define __PT_PARM8_REG gpr[10] #define __PT_RET_REG regs[31] #define __PT_FP_REG __unsupported__ #define __PT_RC_REG gpr[3] |
