From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0853F388F076; Tue, 5 May 2020 15:41:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0853F388F076 From: "wcohen 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: Tue, 05 May 2020 15:41:20 +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: wcohen 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: 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: Tue, 05 May 2020 15:41:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25549 --- Comment #3 from William Cohen --- Systemtap's logic to determine whether a function should be added to the li= st of filtered_functions in a query is getting confused by the where the information about the function entry address is placed for the LTO binaries. query_dwarf_func (Dwarf_Die * func, dwarf_query * q) seems to miss the fact that function entry address is stored in another DIE and never pushs the function to the list. Shows the DIEs extracted from the reproducer by dwgre= p: $ dwgrep pr25549.lto -e 'entry ?TAG_subprogram' [36e] subprogram external true name "main" decl_file "/home/wcohen/rpmbuild/BUILDROOT/pr25549.cxx" decl_line 3 decl_column 5 type [de] base_type sibling [397] pointer_type [2e] subprogram abstract_origin [36e] subprogram low_pc 0x401040 high_pc 21 frame_base 0..0xffffffffffffffff:0 call_frame_cfa GNU_all_call_sites true sibling [7f] subprogram --=20 You are receiving this mail because: You are the assignee for the bug.=