perf timechart: Use tid not pid for COMM change

A process that changes its comm field, does this on a per kernel
task struct basis. The timechart tool used, incorrectly, the pid
to track this, and should have used the tid instead...

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
CC: <stable@kernel.org>
LKML-Reference: <20100116125319.34ac3edd@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by Arjan van de Ven and committed by Ingo Molnar 8f06d7e6 6ccf80eb

+1 -1
+1 -1
tools/perf/builtin-timechart.c
··· 280 280 281 281 static int process_comm_event(event_t *event, struct perf_session *session __used) 282 282 { 283 - pid_set_comm(event->comm.pid, event->comm.comm); 283 + pid_set_comm(event->comm.tid, event->comm.comm); 284 284 return 0; 285 285 } 286 286