perf tools: Look up thread names for system wide profiling
authorDavid Ahern <dsahern@gmail.com>
Thu, 22 Dec 2011 18:30:02 +0000 (11:30 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Dec 2011 18:33:57 +0000 (16:33 -0200)
commitf5faf726184a6a5ca1735f610cb97e509fce33e2
treee69aaefb0316df7059f325cadcceace59f913581
parentdefd8d38773cf9e01c69a903d04d5895b78ee74f
perf tools: Look up thread names for system wide profiling

This handles multithreaded processes with named threads when doing
system wide profiling: the comm for each thread is looked up allowing
them to be different from the thread group leader.

v2:
- fixed sizeof arg to perf_event__get_comm_tgid

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1324578603-12762-3-git-send-email-dsahern@gmail.com
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c