selftests/bpf: Add read_build_id function
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
Changes in v4 from the cover letter
- added size argument to read_build_id [Andrii]
- condition changes in parse_build_id_buf [Andrii]
- use ELF_C_READ_MMAP in elf_begin [Andrii]
- return -ENOENT in read_build_id if build id is not found [Andrii]
- dropped elf class check [Andrii]
Patches in v4 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | selftests/bpf: Add err.h headertools/ tools/ | +19 | 0 replies | Applied |
| 2/3 | selftests/bpf: Add read_build_id functiontools/ tools/ | +87 | 0 replies | Applied |
| 3/3 | selftests/bpf: Replace extract_build_id with read_build_idtools/ tools/ tools/ +1 more | +13 | 0 replies | Applied |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Andrii Nakryiko |
|---|---|
| 1/3 | A-b |
| 2/3 | |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCHv4 bpf-next 0/3] selftests/bpf: Add read_build_id function
hi,
this selftests cleanup was previously posted as part of file build id changes [1], which might take more time, so I'm sending the selftests changes separately so it won't get stuck.
v4 changes:
- added size argument to read_build_id [Andrii]
- condition changes in parse_build_id_buf [Andrii]
- use ELF_C_READ_MMAP in elf_begin [Andrii]
- return -ENOENT in read_build_id if build id is not found [Andrii]
- dropped elf class check [Andrii]
thanks,
jirka
[1] https://lore.kernel.org/bpf/[email protected]/
---
Jiri Olsa (3):
selftests/bpf: Add err.h header
selftests/bpf: Add read_build_id function
selftests/bpf: Replace extract_build_id with read_build_id
tools/testing/selftests/bpf/prog_tests/stacktrace_build_id.c | 19 +++++++------------ tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c | 17 ++++++----------- tools/testing/selftests/bpf/progs/err.h | 18 ++++++++++++++++++ tools/testing/selftests/bpf/progs/profiler.inc.h | 3 +-- tools/testing/selftests/bpf/test_progs.c | 25 ------------------------- tools/testing/selftests/bpf/test_progs.h | 1 - tools/testing/selftests/bpf/trace_helpers.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/testing/selftests/bpf/trace_helpers.h | 5 +++++ 8 files changed, 119 insertions(+), 51 deletions(-) create mode 100644 tools/testing/selftests/bpf/progs/err.h