[Bug translator/25549] Systemtap unable to find many probe points available in code compiled with LTO enable

wcohen at redhat dot com sourceware-bugzilla@sourceware.org
Fri May 1 18:31:45 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=25549

--- Comment #1 from William Cohen <wcohen at redhat dot com> ---
Created attachment 12499
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12499&action=edit
Much smaller reproduer example

This very small example demonstrates the problem.  When -flto is enabled no
probeable lines listed. Remove -flto and systemtap is able to list the two
lines of executable code:

$ g++ -o pr25549 -g -O2 -flto pr25549.cxx
$ ~/research/profiling/systemtap_write/install/bin/stap -L
'process("./pr25549").statement("main@*:*")'
$ g++ -o pr25549 -g -O2  pr25549.cxx
$ ~/research/profiling/systemtap_write/install/bin/stap -L
'process("./pr25549").statement("main@*:*")'
process("/home/wcohen/rpmbuild/BUILDROOT/pr25549").statement("main@/home/wcohen/rpmbuild/BUILDROOT/pr25549.cxx:4")
$argc:int $argv:char**
process("/home/wcohen/rpmbuild/BUILDROOT/pr25549").statement("main@/home/wcohen/rpmbuild/BUILDROOT/pr25549.cxx:6")
$argc:int $argv:char**

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list