From: Jan Stancek <jstan...@redhat.com> kernel.spec: package unstripped kselftests/bpf/test_progs
BPF test_progs testcase attach_probe fails without symbols: # './test_progs -t attach_probe' test_attach_probe:PASS:uprobe_offset 0 nsec [...] test_attach_probe:PASS:auto-attach should fail for old-style name 0 nsec libbpf: elf: failed to find symbol 'trigger_func2' in '/proc/self/exe' test_attach_probe:FAIL:attach_uprobe_byname unexpected error: -2 test_attach_probe:PASS:uprobe_ref_ctr_cleanup 0 nsec #5 attach_probe:FAIL Package unstripped version. Signed-off-by: Jan Stancek <jstan...@redhat.com> diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100755 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -2522,6 +2522,7 @@ for dir in bpf bpf/no_alu32 bpf/progs; do -name '*.o' -exec sh -c 'readelf -h "{}" | grep -q "^ Machine:.*BPF"' \; \) -print0 | \ xargs -0 cp -t %{buildroot}%{_libexecdir}/kselftests/$dir || true done +%buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs" popd export -n BPFTOOL %endif -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2286 _______________________________________________ kernel mailing list -- kernel@lists.fedoraproject.org To unsubscribe send an email to kernel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue