Consider exec and exit events an end of outstanding calls
authorPetr Machata <pmachata@redhat.com>
Thu, 21 Nov 2013 19:43:51 +0000 (20:43 +0100)
committerChanho Park <chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:24 +0000 (20:38 +0900)
commit9591aa33a3fe92819a637d5d3dcca30b302b5eb6
treea6b01f4fb943b8567d771a802404753c301ec532
parent829610cc7f35545c44e8f6ad71ffc1e6730883ad
Consider exec and exit events an end of outstanding calls

- 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.
12 files changed:
Makefile.am
common.h
forward.h
handle_event.c
libltrace.c
options.h
output.c
output.h
proc.h
summary.c
summary.h [new file with mode: 0644]
testsuite/ltrace.minor/trace-exec.exp