From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 19FBA3851C0E; Fri, 8 May 2020 10:15:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 19FBA3851C0E From: "mark at klomp dot org" To: systemtap@sourceware.org Subject: [Bug translator/25549] Systemtap unable to find many probe points available in code compiled with LTO enable Date: Fri, 08 May 2020 10:15:37 +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: mark at klomp dot org 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: Fri, 08 May 2020 10:15:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25549 --- Comment #10 from Mark Wielaard --- (In reply to William Cohen from comment #8) > For the original example that caused the PR to be filed there are many mo= re > probe (21694 vs 1196) for the lto version, but still an order of magnitude > less than the non-lto version (255842): >=20 > [wcohen@cervelo BUILDROOT]$ stap -v -L > 'process("./binutils-2.31.1-29.fc30_gcc_o2_lto_g_.x86_64/usr/bin/ld"). > statement("*@*:*")' |wc > Pass 1: parsed user script and 577 library scripts using > 1279164virt/1049920res/13264shr/1036408data kb, in 2230usr/260sys/2499real > ms. > Pass 2: analyzed script: 21694 probes, 0 functions, 0 embeds, 0 globals > using 2078028virt/1843376res/14204shr/1835272data kb, in > 11060usr/270sys/11552real ms. > 21694 477333 10389959 > [wcohen@cervelo BUILDROOT]$ stap -v -L > 'process("./binutils-2.31.1-29.fc30_gcc_o2__g_.x86_64/usr/bin/ld"). > statement("*@*:*")' |wc > Pass 1: parsed user script and 577 library scripts using > 1279164virt/1049904res/13252shr/1036408data kb, in 2170usr/270sys/2459real > ms. > Pass 2: analyzed script: 255842 probes, 0 functions, 0 embeds, 0 globals > using 1958204virt/1729244res/14192shr/1715448data kb, in > 90860usr/10320sys/101800real ms. > 255842 3891737 96145934 Are there specific probe points that you are missing? > It would be expected that the lto version would be optimized so there are > fewer probe points, but 90% reduction in probe points seems unlikely given > the relative sizes of the binaries: >=20 > [wcohen@cervelo BUILDROOT]$ ls -l > ./binutils-2.31.1-29.fc30_gcc_o2__g_.x86_64/usr/bin/ld > -rwxr-xr-x. 2 wcohen wcohen 3941264 Oct 14 2019 > ./binutils-2.31.1-29.fc30_gcc_o2__g_.x86_64/usr/bin/ld > [wcohen@cervelo BUILDROOT]$ ls -l > ./binutils-2.31.1-29.fc30_gcc_o2_lto_g_.x86_64/usr/bin/ld > -rwxr-xr-x. 2 wcohen wcohen 2215376 Oct 14 2019 > ./binutils-2.31.1-29.fc30_gcc_o2_lto_g_.x86_64/usr/bin/ld Are these binaries available somewhere for inspection? --=20 You are receiving this mail because: You are the assignee for the bug.=