diff options
| author | Andrii Nakryiko <[email protected]> | 2023-01-20 20:08:58 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-01-23 19:53:00 +0000 |
| commit | 55ff00d5393b6d6f6cb90530aac546f5aa52456d (patch) | |
| tree | e4ae298065201de9b2a273fa7bffe637c73287b1 /tools/lib/bpf/bpf_tracing.h | |
| parent | libbpf: Fix and complete ARC spec in bpf_tracing.h (diff) | |
| download | kernel-55ff00d5393b6d6f6cb90530aac546f5aa52456d.tar.gz kernel-55ff00d5393b6d6f6cb90530aac546f5aa52456d.zip | |
libbpf: Complete LoongArch (loongarch) spec in bpf_tracing.h
Add PARM6 through PARM8 definitions. Add kernel docs link describing ABI
for LoongArch.
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, 7 insertions, 1 deletions
diff --git a/tools/lib/bpf/bpf_tracing.h b/tools/lib/bpf/bpf_tracing.h index 815c50ccedf4..510df96ff19d 100644 --- a/tools/lib/bpf/bpf_tracing.h +++ b/tools/lib/bpf/bpf_tracing.h @@ -316,13 +316,19 @@ struct pt_regs___arm64 { #elif defined(bpf_target_loongarch) -/* https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html */ +/* + * https://docs.kernel.org/loongarch/introduction.html + * https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html + */ #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[1] #define __PT_FP_REG regs[22] #define __PT_RC_REG regs[4] |
