diff options
author | Petr Machata <pmachata@redhat.com> | 2013-11-21 20:43:51 +0100 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-08-22 20:38:24 +0900 |
commit | 9591aa33a3fe92819a637d5d3dcca30b302b5eb6 (patch) | |
tree | a6b01f4fb943b8567d771a802404753c301ec532 /libltrace.c | |
parent | 829610cc7f35545c44e8f6ad71ffc1e6730883ad (diff) | |
download | ltrace-9591aa33a3fe92819a637d5d3dcca30b302b5eb6.tar.gz ltrace-9591aa33a3fe92819a637d5d3dcca30b302b5eb6.tar.bz2 ltrace-9591aa33a3fe92819a637d5d3dcca30b302b5eb6.zip |
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.
Diffstat (limited to 'libltrace.c')
-rw-r--r-- | libltrace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libltrace.c b/libltrace.c index 2d910a1..0112c9f 100644 --- a/libltrace.c +++ b/libltrace.c @@ -32,11 +32,12 @@ #include <string.h> #include <unistd.h> +#include "backend.h" #include "common.h" #include "proc.h" -#include "read_config_file.h" -#include "backend.h" #include "prototype.h" +#include "read_config_file.h" +#include "summary.h" char *command = NULL; |