From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B02263959C26; Thu, 7 May 2020 02:06:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B02263959C26 From: "fche at redhat dot com" To: systemtap@sourceware.org Subject: [Bug translator/25549] Systemtap unable to find many probe points available in code compiled with LTO enable Date: Thu, 07 May 2020 02:06:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: translator X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 02:06:49 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25549 Frank Ch. Eigler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fche at redhat dot com, | |mark at klomp dot org --- Comment #4 from Frank Ch. Eigler --- It appears the root cause is a mismatch between two parts of systemtap, a srcfile enumeration pass (taking dwarf_getsrcfiles() in dfwlpp::collect_srcfiles_matching), and the filtering of dwarf_decl_file()'s against that list. In the LTO case, the quasi-inlined copy of main() has no decl_* parts at al= l, since those are in the abstract_origin DIEs. For some reason, dwarf_decl_file(func) in query_dwarf_func() returns 0, which will not match= any of the elements in the filtered_srcfiles[]. I'd expect it to return a legit value because it seems to have a dwarf_attr_integrate call inside. Maybe i= t's an issue because this is a cross-CU abstract_origin reference? --=20 You are receiving this mail because: You are the assignee for the bug.=