libbpf: Fix register naming in PT_REGS s390 macros
Subsystems (4)
PATCH 1/1 libbpf: Fix register naming in PT_REGS s390 macros
Fix register naming in PT_REGS s390 macros
Fixes b8ebce86ffe6 ("libbpf: Provide CO-RE variants of PT_REGS macros")
Reviewed-by Julian Wiedmann <[email protected]>
Signed-off-by Sumanth Korikkar <[email protected]>
--- tools/lib/bpf/bpf_tracing.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/lib/bpf/bpf_tracing.h +2 -2
@@ -148,11 +148,11 @@ struct pt_regs;#define PT_REGS_PARM3_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[4])#define PT_REGS_PARM4_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[5])#define PT_REGS_PARM5_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[6]) -#define PT_REGS_RET_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), grps[14]) +#define PT_REGS_RET_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[14])#define PT_REGS_FP_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[11])#define PT_REGS_RC_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[2])#define PT_REGS_SP_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[15]) -#define PT_REGS_IP_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), pdw.addr) +#define PT_REGS_IP_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), psw.addr)#elif defined(bpf_target_arm)
Signature · 1 line
2.17.1
Quoted 7 lines · Sumanth Korikkar
Fix register naming in
PT_REGSs390 macrosFixes b8ebce86ffe6 ("libbpf: Provide CO-RE variants of PT_REGS macros")Reviewed-by Julian Wiedmann <[email protected]>Signed-off-by Sumanth Korikkar <[email protected]>---
Great, thanks for catching this!
Acked-by Andrii Nakryiko <[email protected]>
Quoted 24 lines
tools/lib/bpf/bpf_tracing.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tools/lib/bpf/bpf_tracing.h +2
-3@@ -148,11 +148,11 @@ struct pt_regs;#define PT_REGS_PARM3_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[4])#define PT_REGS_PARM4_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[5])#define PT_REGS_PARM5_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[6]) -#define PT_REGS_RET_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), grps[14]) +#define PT_REGS_RET_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[14])#define PT_REGS_FP_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[11])#define PT_REGS_RC_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[2])#define PT_REGS_SP_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), gprs[15]) -#define PT_REGS_IP_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), pdw.addr) +#define PT_REGS_IP_CORE (x) BPF_CORE_READ((PT_REGS_S390 *)(x), psw.addr)#elif defined(bpf_target_arm) --2.17.1
Alexei Starovoitov
AppliedQuoted 5 lines · Andrii Nakryiko
Quoted 3 lines · Sumanth Korikkar
Fix register naming in
PT_REGSs390 macros
Quoted 8 lines
Quoted 4 lines
Fixes b8ebce86ffe6 ("libbpf: Provide CO-RE variants of PT_REGS macros")Reviewed-by Julian Wiedmann <[email protected]>Signed-off-by Sumanth Korikkar <[email protected]>---
Great, thanks for catching this!
Acked-by Andrii Nakryiko <[email protected]>
Applied to bpf tree. Thanks