Bug 2273477
| Summary: | Add "Builddeps: elfutils-devel" to spec file to allow for libdw (DWAF support) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jerone Young <jyoung> |
| Component: | bpftrace | Assignee: | Augusto Caringi <acaringi> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 39 | CC: | acaringi, jmarchan, karl.vogel, olsajiri, rdossant |
| Target Milestone: | --- | Keywords: | RFE |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | bpftrace-0.21.2-2.fc41 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-11-11 02:19:27 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Also ran into this issue, without libdw bpftrace can't show function parameters, ie:
# bpftrace -lv 'uprobe:/opt/hdr/lib64/libvulkan_radeon.so:util_compute_fast_udiv_info'
WARNING: Cannot parse DWARF: libdw not available
WARNING: No DWARF found for "/usr/hdr/lib64/libvulkan_radeon.so", cannot show parameter info
while with elfutils-devel in the build requires:
# bpftrace -lv 'uprobe:/opt/hdr/lib64/libvulkan_radeon.so:util_compute_fast_udiv_info'
uprobe:/usr/hdr/lib64/libvulkan_radeon.so:util_compute_fast_udiv_info
uint64_t D
unsigned int num_bits
unsigned int UINT_BITS
FEDORA-2024-f2dbb63e8a (bpftrace-0.21.2-2.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-f2dbb63e8a FEDORA-2024-f2dbb63e8a has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f2dbb63e8a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f2dbb63e8a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-f2dbb63e8a (bpftrace-0.21.2-2.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. |
Currently in version bpftrace 0.20.1 libdw support is not there. This can be seen by running "bpftrace --info". Though rebuilding the package by adding the following to bpftrace.spec adds the support needed: BuildRequires: elfutils-devel Now when rebuilt and reinstalled I can see the following: jyoung@thinkpad:~/rpmbuild/RPMS/x86_64$ sudo bpftrace --info System OS: Linux 6.7.11-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 27 16:50:39 UTC 2024 Arch: x86_64 Build version: v0.20.1 LLVM: 17.0.6 unsafe probe: no bfd: yes libdw (DWARF support): yes <--- THIS IS WHAT WE WANT TO SEE Reproducible: Always