Bug 1980026 - Would be useful to have a filter in eu-readelf like --name=<function> in llvm-dwarfdump
Summary: Would be useful to have a filter in eu-readelf like --name=<function> in llvm...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: elfutils
Version: 34
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mark Wielaard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-07 15:43 UTC by William Cohen
Modified: 2022-05-15 19:05 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-05-15 19:05:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description William Cohen 2021-07-07 15:43:08 UTC
Description of problem:

For large executables like the linux kernel the human readable output of eu-readelf could be in the gigabytes.  llvm-dwarfdump has --name=<symbol_name> that allows the output to be limited to just DIEs with that symbol name.  So to see the DIEs and their children (-c) of function trace_event_name for kernel can do the following which is about 40K of output:

llvm-dwarfdump  -c --name=trace_event_name /usr/lib/debug/lib/modules/5.12.7-300.fc34.x86_64/vmlinux > trace_event_name.dwarf

Much easier to inspect 40KB of text than 4.8GB of the entire output from llvm-dwarfdump.  Would be nice if eu-readelf had similar filter for --debug-dump=info and ability to select whether to print children DIEs.

Documentation about the llvm-dwarfdump options is at https://llvm.org/docs/CommandGuide/llvm-dwarfdump.html .

Comment 1 Ben Cotton 2022-05-12 16:14:30 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Mark Wielaard 2022-05-15 19:05:13 UTC
Moved upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=29150


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