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>
This commit is contained in:
parent
a5563edfa1
commit
65de51f93e
5 changed files with 40 additions and 11 deletions
|
@ -38,9 +38,17 @@ static inline void thread__exited(struct thread *thread)
|
|||
thread->dead = true;
|
||||
}
|
||||
|
||||
int thread__set_comm(struct thread *thread, const char *comm, u64 timestamp);
|
||||
int __thread__set_comm(struct thread *thread, const char *comm, u64 timestamp,
|
||||
bool exec);
|
||||
static inline int thread__set_comm(struct thread *thread, const char *comm,
|
||||
u64 timestamp)
|
||||
{
|
||||
return __thread__set_comm(thread, comm, timestamp, false);
|
||||
}
|
||||
|
||||
int thread__comm_len(struct thread *thread);
|
||||
struct comm *thread__comm(const struct thread *thread);
|
||||
struct comm *thread__exec_comm(const struct thread *thread);
|
||||
const char *thread__comm_str(const struct thread *thread);
|
||||
void thread__insert_map(struct thread *thread, struct map *map);
|
||||
int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue