Skip to content

Fix bpf_perf_event_data ABI breakage

Ilya Leoshkevich bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2s390/bpf: Introduce user_pt_regs_v2arch/s390/include/asm/ptrace.h arch/s390/include/uapi/asm/ptrace.h tools/lib/bpf/bpf_tracing.h+11 -40 replies
2/2arm64/bpf: Introduce struct user_pt_regs_v2arch/arm64/include/asm/ptrace.h arch/arm64/include/uapi/asm/ptrace.h tools/lib/bpf/bpf_tracing.h+12 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] Fix bpf_perf_event_data ABI breakage

libbpf CI noticed that my recent changes broke bpf_perf_event_data ABI on s390 [1]. Testing shows that they introduced a similar breakage on arm64. The problem is that we are not allowed to extend user_pt_regs, since it's used by bpf_perf_event_data.

This series fixes these problems by removing the new members and introducing user_pt_regs_v2 instead.

[1] https://github.com/libbpf/libbpf/runs/5079938810

Ilya Leoshkevich (2):
s390/bpf: Introduce user_pt_regs_v2
arm64/bpf: Introduce struct user_pt_regs_v2

 arch/arm64/include/asm/ptrace.h      |  1 +
 arch/arm64/include/uapi/asm/ptrace.h |  7 +++++++
 arch/s390/include/asm/ptrace.h       |  1 +
 arch/s390/include/uapi/asm/ptrace.h  | 10 ++++++++--
 tools/lib/bpf/bpf_tracing.h          | 10 ++++++----
 5 files changed, 23 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1