diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2025-04-09 16:16:56 -0700 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2025-04-09 16:16:57 -0700 |
| commit | 527b33dda1b564ff09fe330928f08b653bff1514 (patch) | |
| tree | 0fef4346219cd350de9cc77af900fd97fcfc6cc4 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | selftests/bpf: Support struct/union presets in veristat (diff) | |
| parent | selftests/bpf: Add BTF.ext line/func info getter tests (diff) | |
| download | linux-527b33dda1b564ff09fe330928f08b653bff1514.tar.gz linux-527b33dda1b564ff09fe330928f08b653bff1514.zip | |
Merge branch 'libbpf-introduce-line_info-and-func_info-getters'
Mykyta Yatsenko says:
====================
libbpf: introduce line_info and func_info getters
From: Mykyta Yatsenko <yatsenko@meta.com>
This patchset introduces new libbpf API getters that enable the retrieval
of .BTF.ext line and func info.
This change enables users to load bpf_program directly using bpf_prog_load,
bypassing the higher-level bpf_object__load API. Providing line and
function info is essential for BPF program verification in some cases.
v3 -> v5
* Fix tests on s390x, nits.
v2 -> v3
* Return ENOTSUPP if func or line info struct size differs from the one in
uapi linux headers.
* Add selftests.
v1 -> v2
Move bpf_line_info_min and bpf_func_info_min from libbpf_internal.h to
btf.h. Did not remove _min suffix, because there already are bpf_line_info
and bpf_func_info structs in uapi/../bpf.h.
====================
Link: https://patch.msgid.link/20250408234417.452565-1-mykyta.yatsenko5@gmail.com
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions
