Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libbpf: Fix arm syscall regs spec in bpf_tracing.h

The syscall register definitions for ARM in bpf_tracing.h doesn't define
the fifth parameter for the syscalls. Because of this some KPROBES based
selftests fail to compile for ARM architecture.

Define the fifth parameter that is passed in the R5 register (uregs[4]).

Fixes: 3a95c42d65d5 ("libbpf: Define arm syscall regs spec in bpf_tracing.h")
Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230223095346.10129-1-puranjay12@gmail.com

authored by

Puranjay Mohan and committed by
Andrii Nakryiko
06943ae6 11e456ca

+1
+1
tools/lib/bpf/bpf_tracing.h
··· 204 204 #define __PT_PARM2_SYSCALL_REG __PT_PARM2_REG 205 205 #define __PT_PARM3_SYSCALL_REG __PT_PARM3_REG 206 206 #define __PT_PARM4_SYSCALL_REG __PT_PARM4_REG 207 + #define __PT_PARM5_SYSCALL_REG uregs[4] 207 208 #define __PT_PARM6_SYSCALL_REG uregs[5] 208 209 #define __PT_PARM7_SYSCALL_REG uregs[6] 209 210