diff options
| author | Mykyta Yatsenko <yatsenko@meta.com> | 2026-04-01 16:16:40 +0100 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2026-04-02 13:02:46 -0700 |
| commit | 1cc96e0e20489159398009d2f453e59c10e413c9 (patch) | |
| tree | 6e083e459dcba0e3c7ec95ce58b6a6b6fbc81f6a /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | e25cfbec08558e15fdf0f31f229b9f2a491e8288 (diff) | |
libbpf: Fix BTF handling in bpf_program__clone()
Align bpf_program__clone() with bpf_object_load_prog() by gating
BTF func/line info on FEAT_BTF_FUNC kernel support, and resolve
caller-provided prog_btf_fd before checking obj->btf so that callers
with their own BTF can use clone() even when the object has no BTF
loaded.
While at it, treat func_info and line_info fields as atomic groups
to prevent mismatches between pointer and count from different sources.
Move bpf_program__clone() to libbpf 1.8.
Fixes: 970bd2dced35 ("libbpf: Introduce bpf_program__clone()")
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260401151640.356419-1-mykyta.yatsenko5@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
