1. 11 Nov, 2015 4 commits
  2. 09 Jan, 2014 1 commit
    • Mark Wielaard's avatar
      Add support for using elfutils as unwinder. · dfefa9f0
      Mark Wielaard authored
      This adds support for using elfutils as unwinder with -w. Since elfutils
      0.158 elfutils contains a simple unwinder interface that matches nicely
      on the ltrace backtrace support.
      
      The code reuses the libunwind infrastructure already in ltrace where
      possible (by defining HAVE_UNWINDER which is 1 if either libunwind or
      elfutils is used). It also reuses the ltrace proc_add_library callback
      to keep track of the ELF files mapped for the unwinder.
      
      The current implementation matches the output as if libunwind was used.
      But elfutils can also provide some more information since it can lookup
      the DWARF debuginfo. So if the source info of an address can be found
      through elfutils the backtrace will also include this as an additional
      output line per frame.
      dfefa9f0
  3. 21 Nov, 2013 1 commit
    • Petr Machata's avatar
      Consider exec and exit events an end of outstanding calls · 8a730f3e
      Petr Machata authored
      - This cleans up a lot of stuff.  The actual substance is addition of
        account_current_callstack in handle_event.c (which however uses
        those cleaned-up interfaces).
      
      - trace-exec.exp was extended to check that the exec syscall can be
        seen in -c output.  That's one of the symptoms of what this fixes.
      
      - This hides dict_opt_c in summary.c.  It also gets rid of the global
        variable current_time_spent--instead, the information is passed via
        a function argument in a struct timedelta (so that we never confuse
        absolute time with relative).  callstack_element.time_spent was renamed
        to .enter_time, as that is what it has always been.
      8a730f3e
  4. 22 Oct, 2013 2 commits
    • Petr Machata's avatar
      Split ltrace.conf into libc.so.conf and libacl.so.conf; add libm.so.conf · ff5606a6
      Petr Machata authored
      - This won't work as is--if libc.so.6.conf isn't found, ltrace needs
        to keep looking for libc.so.conf.
      ff5606a6
    • Petr Machata's avatar
      System calls are now part of dedicated symbol library · 82f748d1
      Petr Machata authored
      - This symbol library is still special in that symbols are created on
        demand and never actually added.  It just serves as a link to
        protolibrary with system call prototypes, and has a name (SYS).
      
      - Prototypes for system calls were moved to a dedicated prototype
        library called syscalls.conf.
      
      - Because it's undesirable to look up syscall prototypes in anything
        but the dedicated syscall protolib, prototype.c/.h now understand
        that some lookups shouldn't be done recursively (and so we never
        pick the definition from -F file that just happens to have the same
        name as a system call).  The good thing is that now libraries can
        actually use symbols named SYS_something without clashing with
        system call prototypes.
      
      - One test case needed to be updated, because we now display system
        calls as [email protected] instead of SYS_something.
      82f748d1
  5. 01 Sep, 2013 1 commit
  6. 11 Mar, 2013 1 commit
  7. 08 Mar, 2013 2 commits
  8. 10 Dec, 2012 1 commit
  9. 04 Dec, 2012 1 commit
    • Petr Machata's avatar
      Fix detection of libunwind · 036fb18d
      Petr Machata authored
      This needs to be checked in three steps, adding dependent libraries one
      after another.  It also isn't necessary to have three variables to keep
      track of what's one conceptual unit, so drop libunwind_{ptrace,arch}_LIBS.
      036fb18d
  10. 10 Nov, 2012 1 commit
  11. 25 Oct, 2012 2 commits
  12. 25 Sep, 2012 1 commit
  13. 31 Aug, 2012 1 commit
  14. 29 Aug, 2012 10 commits
  15. 01 Jun, 2012 2 commits
  16. 18 Apr, 2012 2 commits
  17. 10 Dec, 2010 2 commits
  18. 29 Nov, 2010 5 commits