diff options
| author | Andrii Nakryiko <[email protected]> | 2023-01-20 20:08:53 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-01-23 19:52:59 +0000 |
| commit | 1222445a5bf622b37a9bb16c7ad0148e2a21eb0d (patch) | |
| tree | 781a1cd86773b362af19409594604f1010e90733 /tools/lib/bpf/bpf_tracing.h | |
| parent | libbpf: Fix arm and arm64 specs in bpf_tracing.h (diff) | |
| download | kernel-1222445a5bf622b37a9bb16c7ad0148e2a21eb0d.tar.gz kernel-1222445a5bf622b37a9bb16c7ad0148e2a21eb0d.zip | |
libbpf: Complete mips spec in bpf_tracing.h
Add registers for PARM6 through PARM8. Add a link to an ABI. We don't
distinguish between O32, N32, and N64, so document that we assume N64
right now.
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 a263f600e309..f356955b059a 100644 --- a/tools/lib/bpf/bpf_tracing.h +++ b/tools/lib/bpf/bpf_tracing.h @@ -201,11 +201,19 @@ struct pt_regs___arm64 { #elif defined(bpf_target_mips) +/* + * N64 ABI is assumed right now. + * https://en.wikipedia.org/wiki/MIPS_architecture#Calling_conventions + */ + #define __PT_PARM1_REG regs[4] #define __PT_PARM2_REG regs[5] #define __PT_PARM3_REG regs[6] #define __PT_PARM4_REG regs[7] #define __PT_PARM5_REG regs[8] +#define __PT_PARM6_REG regs[9] +#define __PT_PARM7_REG regs[10] +#define __PT_PARM8_REG regs[11] #define __PT_RET_REG regs[31] #define __PT_FP_REG regs[30] /* Works only with CONFIG_FRAME_POINTER */ #define __PT_RC_REG regs[2] |
