From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 863BE3851C14; Fri, 8 May 2020 14:02:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 863BE3851C14 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: Fri, 08 May 2020 14:02:13 +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: Fri, 08 May 2020 14:02:13 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25549 --- Comment #11 from William Cohen --- I have put the f30 ld binary and associated debuginfo file in=20 http://people.redhat.com/wcohen/pr25549/ld/ The ld built with lto and its debuginfo file is in: http://people.redhat.com/wcohen/pr25549/ld.lto/ With LTO would expect that some functions and statements get eliminated if = they are unused. However, 90% reduction of the statement probe points seems unreasonably good considering that the binary is only 50% smaller and the t= ext sections are not that much smaller: [wcohen@cervelo BUILDROOT]$ eu-readelf -S binutils-2.31.1-29.fc30_gcc_o2__g_.x86_64/usr/bin/ld |grep text [15] .text PROGBITS 0000000000037410 00037410 0018fd45 = 0 AX 0 0 16 [wcohen@cervelo BUILDROOT]$ eu-readelf -S binutils-2.31.1-29.fc30_gcc_o2_lto_g_.x86_64/usr/bin/ld |grep text [13] .text PROGBITS 00000000000329a0 000329a0 00156535 = 0 AX 0 0 16 As far as probe points there are probe points missing for entire files (ign= ore the '-./' at the beginning the - is from the diff and the "./" was substitu= tion to make the remove to original full path to make comparing things from build directories more comparable): -./adler32.c -./aligned_buffer.h -./allocator.h -./alloc_traits.h -./argv.c -./basic_ios.h -./binary.h -./char_traits.h -./compress.c -./copy-relocs.h -./cp-demangle.c -./cp-demint.c -./cplus-dem.c -./crc32.c -./d-demangle.c -./debug.h -./deflate.c -./defstd.cc -./../elfcpp/elfcpp_file.h -./../elfcpp/elfcpp.h -./../elfcpp/elfcpp_swap.h -./errors.h -./fcntl2.h -./filename_cmp.c -./fileread.h -./freebsd.h -./fstream -./functional_hash.h -./gc.cc -./hex.c -./inffast.c -./inflate.c -./inftrees.c -./ios_base.h -./istream -./lbasename.c -./list.tcc -./locale_facets.h -./lrealpath.c -./md5.c -./move.h -./new_allocator.h -./predefined_ops.h -./reloc.h -./reloc-types.h -./rust-demangle.c -./script-sections.h -./sha1.c -./stat.h -./stdio2.h -./stdlib.h -./stl_construct.h -./stl_function.h -./stl_iterator_base_funcs.h -./stl_set.h -./stl_tempbuf.h -./stl_uninitialized.h -./streambuf -./string_fortified.h -./string.h -./stringpool.h -./tls.h -./trees.c -./unistd.h -./unlink-if-ordinary.c -./utility -./xexit.c -./xmalloc.c -./xmemdup.c -./xstrdup.c -./zutil.c --=20 You are receiving this mail because: You are the assignee for the bug.=