Skip to contentSkip to conversation

perf tools: Print the thread' s tid on PERF_RECORD_COMM events when -D is asked

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Feb 26, 2015 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  506740654db4fa5b6e1229147cee3cf8c7e07eca
Gitweb:     http://git.kernel.org/tip/506740654db4fa5b6e1229147cee3cf8c7e07eca
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 24 Feb 2015 17:20:31 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 24 Feb 2015 17:34:00 -0300

perf tools: Print the thread's tid on PERF_RECORD_COMM events when -D is asked

Cc Adrian Hunter <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc David Ahern <[email protected]>
Cc Don Zickus <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Stephane Eranian <[email protected]>
---
 tools/perf/util/event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/event.c +1 -1
index 6c6d044..9e806d8 100644
@@ -615,7 +615,7 @@ size_t perf_event__fprintf_comm(union perf_event *event, FILE *fp)
 	else
 		s = "";
 
-	return fprintf(fp, "%s: %s:%d\n", s, event->comm.comm, event->comm.tid);
+	return fprintf(fp, "%s: %s:%d/%d\n", s, event->comm.comm, event->comm.pid, event->comm.tid);
 }
 
 int perf_event__process_comm(struct perf_tool *tool __maybe_unused,