diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2014-07-31 09:00:44 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-08-13 19:23:08 -0300 |
commit | 65de51f93ebf9305ec011da59c0b5fe29429d1b9 (patch) | |
tree | 80a42fb96d8820b8ec0ba70189a9ea138dd28cd1 /tools/perf/util/comm.h | |
parent | a5563edfa1bd25d052d81f5ad7fe74ba71c3d44e (diff) | |
download | linux-65de51f93ebf9305ec011da59c0b5fe29429d1b9.tar.gz linux-65de51f93ebf9305ec011da59c0b5fe29429d1b9.tar.bz2 linux-65de51f93ebf9305ec011da59c0b5fe29429d1b9.zip |
perf tools: Identify which comms are from exec
For grouping together all the data from a single execution, which is
needed for pairing calls and returns e.g. any outstanding calls when a
process exec's will never return.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1406786474-9306-2-git-send-email-adrian.hunter@intel.com
[ Remove testing if comm->exec is false before setting it to true ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/comm.h')
-rw-r--r-- | tools/perf/util/comm.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/comm.h b/tools/perf/util/comm.h index fac5bd51befc..51c10ab257f8 100644 --- a/tools/perf/util/comm.h +++ b/tools/perf/util/comm.h @@ -11,11 +11,13 @@ struct comm { struct comm_str *comm_str; u64 start; struct list_head list; + bool exec; }; void comm__free(struct comm *comm); -struct comm *comm__new(const char *str, u64 timestamp); +struct comm *comm__new(const char *str, u64 timestamp, bool exec); const char *comm__str(const struct comm *comm); -int comm__override(struct comm *comm, const char *str, u64 timestamp); +int comm__override(struct comm *comm, const char *str, u64 timestamp, + bool exec); #endif /* __PERF_COMM_H */ |