]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix riscv register names
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 9 Feb 2022 02:17:40 +0000 (03:17 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 9 Feb 2022 05:16:14 +0000 (21:16 -0800)
commitc90df4b5c62ea7010edec8dd2f5b5c4863ad9aa9
tree1e9edc9628fbdcd16f5f1d2aeaae5e6d767c415b
parenta3590cf611980659df212798b673f4cc885cedc5
libbpf: Fix riscv register names

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: daeda978e9b5 ("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
tools/lib/bpf/bpf_tracing.h