1. 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
  2. 11 Nov, 2013 2 commits
  3. 25 Oct, 2013 1 commit
    • Petr Machata's avatar
      Keep PLT relocations in a vector · 673ff510
      Petr Machata authored
      - That means we have to copy them out of ELF ahead of time instead of
        referencing them from inside ELF on demand.  But this way we can keep
        one grand vector of all PLT-like relocations.  On PPC, this makes
        a difference: some PLT-like relocations (R_PPC64_JMP_IREL in
        particular) are stored in .rela.dyn, not .rela.plt.
      673ff510
  4. 18 Mar, 2013 1 commit
    • Petr Machata's avatar
      Fix exit before parsing options · f70812ec
      Petr Machata authored
      - The function destroy_global_config was called from normal_exit even
        if init_global_config hadn't been called before, such as when ltrace
        was run with no command line arguments.  This led to crashes.  We
        avoided similar crashes due to exit from init_global_config by
        calling _Exit instead.
      
      - Instead, schedule execution of destroy_global_config only after it
        is known that init_global_config was successful.  Replace the clumsy
        _Exit calls again by plain exit.
      f70812ec
  5. 08 Mar, 2013 4 commits
  6. 17 Dec, 2012 1 commit
    • Petr Machata's avatar
      struct Process becomes struct process · 929bd57c
      Petr Machata authored
      This is for consistency with other structures, and ultimately with
      Linux coding style.  The typedef ("Process") was dropped as well for
      this reason.
      
      This opportunity was used to fix coding style around the impacted
      lines.
      929bd57c
  7. 10 Dec, 2012 1 commit
  8. 27 Oct, 2012 2 commits
  9. 26 Oct, 2012 3 commits
  10. 29 Aug, 2012 3 commits
    • Petr Machata's avatar
      Add backend.h for backend interfaces · 64262609
      Petr Machata authored
      64262609
    • Petr Machata's avatar
      New interface init_global_config · f83053d9
      Petr Machata authored
      f83053d9
    • Petr Machata's avatar
      Add expr.c, expr.h, plug in properly · 94078ecc
      Petr Machata authored
      - in callstack_pop, we don't free arch_ptr.  That's because this doesn't
        get copied over the clone.  It's a mere coincidence that fork() doesn't
        need to save register arguments, and this works.
      
      - added copyright notices to files that this touches.  This is based on
        git blame.  Only contributors of 10+ lines are added
      
      - test suite adjusted to not include "void" type as "don't show this int".
        Back ends in general need to know the exact type, so this never worked
        anyway.
      94078ecc
  11. 25 Apr, 2012 1 commit
    • Petr Machata's avatar
      Replace some uses of error with fprintf · cc0e1e4b
      Petr Machata authored
      error is not standard so it has no business being used in generic code.
      The linux-gnu back end is useful for android, and that doesn't have that
      interface either.
      cc0e1e4b
  12. 18 Apr, 2012 7 commits
  13. 11 Apr, 2012 1 commit
  14. 06 Oct, 2011 6 commits
  15. 25 Jul, 2009 1 commit
  16. 03 Jul, 2009 3 commits
  17. 25 Jun, 2009 2 commits