Bug 1980026

Summary: Would be useful to have a filter in eu-readelf like --name=<function> in llvm-dwarfdump
Product: [Fedora] Fedora Reporter: William Cohen <wcohen>
Component: elfutilsAssignee: Mark Wielaard <mjw>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: aoliva, fche, jakub, me, mjw
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-15 19:05:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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