Bug 2273477 - Add "Builddeps: elfutils-devel" to spec file to allow for libdw (DWAF support)
Summary: Add "Builddeps: elfutils-devel" to spec file to allow for libdw (DWAF support)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bpftrace
Version: 39
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Augusto Caringi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-04 17:11 UTC by Jerone Young
Modified: 2024-11-11 02:19 UTC (History)
5 users (show)

Fixed In Version: bpftrace-0.21.2-2.fc41
Clone Of:
Environment:
Last Closed: 2024-11-11 02:19:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jerone Young 2024-04-04 17:11:23 UTC
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

Comment 1 Karl Vogel 2024-05-28 06:53:07 UTC
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

Comment 2 Fedora Update System 2024-11-02 00:47:09 UTC
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

Comment 3 Fedora Update System 2024-11-03 03:31:17 UTC
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.

Comment 4 Fedora Update System 2024-11-11 02:19:27 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.