[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
Tue May 5 15:41:20 GMT 2020


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

--- Comment #3 from William Cohen <wcohen at redhat dot com> ---
Systemtap's logic to determine whether a function should be added to the list
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 dwgrep:

$ 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

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


More information about the Systemtap mailing list