public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug tools/29150] New: Would be useful to have a filter in eu-readelf like --name=<function>
@ 2022-05-15 19:04 mark at klomp dot org
  2022-05-16 13:34 ` [Bug tools/29150] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: mark at klomp dot org @ 2022-05-15 19:04 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=29150

            Bug ID: 29150
           Summary: Would be useful to have a filter in eu-readelf like
                    --name=<function>
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tools
          Assignee: unassigned at sourceware dot org
          Reporter: mark at klomp dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Copied from https://bugzilla.redhat.com/show_bug.cgi?id=1980026

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 .

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug tools/29150] Would be useful to have a filter in eu-readelf like --name=<function>
  2022-05-15 19:04 [Bug tools/29150] New: Would be useful to have a filter in eu-readelf like --name=<function> mark at klomp dot org
@ 2022-05-16 13:34 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2022-05-16 13:34 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=29150

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
dwgrep can do this and way, way more.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-16 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-15 19:04 [Bug tools/29150] New: Would be useful to have a filter in eu-readelf like --name=<function> mark at klomp dot org
2022-05-16 13:34 ` [Bug tools/29150] " tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).