From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 03F943858C51; Sun, 15 May 2022 19:04:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03F943858C51 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug tools/29150] New: Would be useful to have a filter in eu-readelf like --name= Date: Sun, 15 May 2022 19:04:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2022 19:04:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29150 Bug ID: 29150 Summary: Would be useful to have a filter in eu-readelf like --name=3D 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=3D1980026 For large executables like the linux kernel the human readable output of eu-readelf could be in the gigabytes. llvm-dwarfdump has --name=3D that allows the output to be limited to just DIEs with that symbol name. S= o 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=3Dtrace_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=3Dinfo 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 . --=20 You are receiving this mail because: You are on the CC list for the bug.=