From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BFBD3388B02C; Mon, 4 May 2020 20:18:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFBD3388B02C 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: Mon, 04 May 2020 20:18:29 +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: Mon, 04 May 2020 20:18:29 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25549 --- Comment #2 from William Cohen --- The eu-readelf --debug-dump=3Dinfo output of the non-lto and lto versions o= f the reproducer show one difference that is maybe be tripping up systemtap. On non-lto: [ 2f1] subprogram abbrev: 16 external (flag_present) yes name (strp) "main" decl_file (data1) pr25549.cxx (1) decl_line (data1) 3 decl_column (data1) 5 type (ref4) [ 61] low_pc (addr) 0x0000000000401040
high_pc (data8) 21 (0x0000000000401055 <.annobin_static_reloc.c_end.hot>) frame_base (exprloc)=20 [ 0] call_frame_cfa GNU_all_call_sites (flag_present) yes sibling (ref4) [ 357] on lto one, no low_pc, high_pc: [ 36e] subprogram abbrev: 16 external (flag_present) yes name (strp) "main" decl_file (data1) pr25549.cxx (7) decl_line (data1) 3 decl_column (data1) 5 type (ref4) [ de] sibling (ref4) [ 397] Comparing the execution of the working non-LTO and the non-working LTO it looks like the following line tapset.cxx:2403 returns nothing to iterate ov= er, so no lines are reported for the LTO version of the code : auto bfis =3D q->filtered_all(); --=20 You are receiving this mail because: You are the assignee for the bug.=