]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
libbpf: Fix riscv register names
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 9 Feb 2022 02:17:40 +0000 (03:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:58:05 +0000 (13:58 +0200)
commite9eb8f04560f78675dc4eb9a2766a0fbd550a558
tree3ad6ffc1bdb99553a873e6bfeb6dba91841df7bc
parentf72bf5a0281182841f6717336356af21db6dfbe5
libbpf: Fix riscv register names

[ Upstream commit 5c101153bfd67387ba159b7864176217a40757da ]

riscv registers are accessed via struct user_regs_struct, not struct
pt_regs. The program counter member in this struct is called pc, not
epc. The frame pointer is called s0, not fp.

Fixes: 3cc31d794097 ("libbpf: Normalize PT_REGS_xxx() macro definitions")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220209021745.2215452-6-iii@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/lib/bpf/bpf_tracing.h