This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stap make check - process_test and sched_test failure


Roland McGrath ??:
I use "readelf -w" to get the DWARF info of my kernel:
...
  <1><671e1>: Abbrev Number: 77 (DW_TAG_subprogram)
      DW_AT_sibling     : <67316>
      DW_AT_name        : (indirect string, offset: 0x5525): handle_signal
      DW_AT_decl_file   : 1
      DW_AT_decl_line   : 1008
      DW_AT_prototyped  : 1
      DW_AT_type        : <5e0be>
      DW_AT_inline      : 1      (inlined)

This is what's called the "abstract" entry for the inline function. It has the information that's general to all instantiations. It does not have the information that's particular to each instantiation. (This is the structure of the info even if there is only one instantiation, i.e. only one call anywhere in the source code.)

There should also be a DW_TAG_inlined_subroutine entry.  You can find the
right one by looking for a DW_AT_abstract_origin attribute of <671e1>.


Thanks, Roland
Here is the DW_TGA_inlined_subroutine and the loc info:
...
 <2><66bf9>: Abbrev Number: 48 (DW_TAG_inlined_subroutine)
     DW_AT_sibling     : <66d87>
     DW_AT_abstract_origin: <671e1>
     DW_AT_low_pc      : 0xda70
     DW_AT_high_pc     : 0xdbe4
     DW_AT_call_file   : 0
     DW_AT_call_line   : 0
 <3><66c14>: Abbrev Number: 54 (DW_TAG_formal_parameter)
     DW_AT_abstract_origin: <671f3>
     DW_AT_location    : 66492  (location list)
 <3><66c1d>: Abbrev Number: 49 (DW_TAG_formal_parameter)
     DW_AT_abstract_origin: <671ff>
 <3><66c22>: Abbrev Number: 49 (DW_TAG_formal_parameter)
     DW_AT_abstract_origin: <6720a>
 <3><66c27>: Abbrev Number: 49 (DW_TAG_formal_parameter)
     DW_AT_abstract_origin: <67216>
 <3><66c2c>: Abbrev Number: 54 (DW_TAG_formal_parameter)
     DW_AT_abstract_origin: <67222>
     DW_AT_location    : 66527  (location list)
 <3><66c35>: Abbrev Number: 54 (DW_TAG_formal_parameter)
     DW_AT_abstract_origin: <6722e>
     DW_AT_location    : 66581  (location list)
...




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]