From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 73E603858C33; Sat, 13 Apr 2024 10:23:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73E603858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713003824; bh=iS/9nVGCax66a3YfRA3dcBvvaXCagUyvSUyWlUg/ws4=; h=From:To:Subject:Date:From; b=aKISIfyduLJ7MDmafgk/G85xyEEuUw5C5KcOZaXKJBvBSfNX2pKRVxJp+NJV8ael7 I+jJYhqeh5FFhLscsSVFZQvtEFF5Q7t3p5xoPKulemjXP8qxDFRiUvaXfL73l2VsbQ TONArQjdkrJ7ne6k+tJJcfXJW2dwuC6RmqfXa4go= From: "mark at klomp dot org" To: debugedit@sourceware.org Subject: [Bug find-debuginfo/31638] New: Recognize (and skip) bpf (kernel) files Date: Sat, 13 Apr 2024 10:23:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: debugedit X-Bugzilla-Component: find-debuginfo X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31638 Bug ID: 31638 Summary: Recognize (and skip) bpf (kernel) files Product: debugedit Version: unspecified Status: NEW Severity: normal Priority: P2 Component: find-debuginfo Assignee: unassigned at sourceware dot org Reporter: mark at klomp dot org CC: debugedit at sourceware dot org Target Milestone: --- find-debuginfo thinks the BPF files are "normal" ELF files and calls gdb-add-index on them. But the BPF files aren't "normal" and don't have any debuginfo. So gdb-add-index fails. See e.g. https://kojipkgs.fedoraproject.org//packages/kernel/6.8.5/301.fc40/data/log= s/x86_64/build.log + /usr/bin/find-debuginfo -j48 --strict-build-id -n -i -r -q -p '.*/usr/bin/perf(.debug)?|.*/usr/libexec/perf-core/.*|.*/usr/lib64/libperf-= jvmti.so(.debug)?|XXX' -o perf-debuginfo.list -p '.*/usr/lib64/python3.12/site-packages/perf.*so(.debug)?|XXX' -o python3-perf-debuginfo.list -p '.*/usr/lib64/libperf.so.*(.debug)?|XXX' -o libperf-debuginfo.list -p '.*/usr/bin/centrino-decode(.debug)?|.*/usr/bin/powernow-k8-decode(.debug)?= |.*/usr/bin/cpupower(.debug)?|.*/usr/lib64/libcpupower.*|.*/usr/bin/turbost= at(.debug)?|.*/usr/bin/x86_energy_perf_policy(.debug)?|.*/usr/bin/tmon(.deb= ug)?|.*/usr/bin/lsgpio(.debug)?|.*/usr/bin/gpio-hammer(.debug)?|.*/usr/bin/= gpio-event-mon(.debug)?|.*/usr/bin/gpio-watch(.debug)?|.*/usr/bin/iio_event= _monitor(.debug)?|.*/usr/bin/iio_generic_buffer(.debug)?|.*/usr/bin/lsiio(.= debug)?|.*/usr/bin/intel-speed-select(.debug)?|.*/usr/bin/page_owner_sort(.= debug)?|.*/usr/bin/slabinfo(.debug)?|.*/usr/sbin/intel_sdsi(.debug)?|XXX' -o kernel-tools-debuginfo.list -p '.*/usr/sbin/bpftool(.debug)?|XXX' -o bpftool-debuginfo.list -p '.*/usr/libexec/(ksamples|kselftests)/.*|XXX' -o selftests-debuginfo.list --keep-section .BTF -p '.*/usr/src/kernels/.*|XXX'= -o ignored-debuginfo.list -p '/.*/6.8.5-301.fc40.x86_64[+]debug/.*|/.*6.8.5-301.fc40.x86_64+debug(.debug= )?' -o debuginfodebug.list --keep-section .BTF -p '.*/usr/src/kernels/.*|XXX' -o ignored-debuginfo.list -p '/.*/6.8.5-301.fc40.x86_64/.*|/.*6.8.5-301.fc40.x86_64(.debug)?' -o debuginfo.list /builddir/build/BUILD/kernel-6.8.5 Error while writing index for `/builddir/build/BUILDROOT/kernel-6.8.5-301.fc40.x86_64/usr/libexec/ksample= s/bpf/sock_example': No debugging symbols Error while writing index for `/builddir/build/BUILDROOT/kernel-6.8.5-301.fc40.x86_64/usr/libexec/ksample= s/bpf/test-libcap.bin': No debugging symbols gdb-add-index: No index was created for /builddir/build/BUILDROOT/kernel-6.8.5-301.fc40.x86_64/usr/libexec/ksamples= /bpf/sock_example gdb-add-index: [Was there no debuginfo? Was there already an index?] Error while writing index for `/builddir/build/BUILDROOT/kernel-6.8.5-301.fc40.x86_64/usr/libexec/ksample= s/bpf/test_lru_dist': No debugging symbols --=20 You are receiving this mail because: You are on the CC list for the bug.=