Skip to content

bpftool: improve error handing for missing .BTF section

Changbin Du bpf linux-kselftest linux-perf-users lkml 3 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 14 repliesApplied 2/2
  2. v22 patches 5 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- fix typo and make error message consistent. (Andrii Nakryiko)
- split out perf change.

Patches in v3 All 2 applied

#Subject and filesSizeRepliesApplied
1/2libbpf: show error info about missing ".BTF" sectiontools/lib/bpf/btf.c+1 -011 repliesApplied
2/2bpf: makefiles: do not generate empty vmlinux.htools/bpf/bpftool/Makefile tools/testing/selftests/bpf/Makefile+6 -03 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchQuentin Monnet
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] bpftool: improve error handing for missing .BTF section

Display error message for missing ".BTF" section and clean up empty vmlinux.h file.

v3:
- fix typo and make error message consistent. (Andrii Nakryiko)
- split out perf change.
v2:
- remove vmlinux specific error info.
- use builtin target .DELETE_ON_ERROR: to delete empty vmlinux.h

Changbin Du (2):
libbpf: show error info about missing ".BTF" section
bpf: makefiles: do not generate empty vmlinux.h

 tools/bpf/bpftool/Makefile           | 3 +++
 tools/lib/bpf/btf.c                  | 1 +
 tools/testing/selftests/bpf/Makefile | 3 +++
 3 files changed, 7 insertions(+)
Signature · 1 line
2.37.2