perf timechart: Fix the wakeup-arrows that point to non-visible processes
authorArjan van de Ven <arjan@infradead.org>
Mon, 19 Oct 2009 21:46:49 +0000 (06:46 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 20 Oct 2009 01:39:16 +0000 (03:39 +0200)
commit3bc2a39c69d423d5d1f0b3ef77960b1464c976a0
tree21f9f01d4d0a44ab39ea29b2853a23594216931e
parentdc79959aaf80e518741657a702fa2727c86c1189
perf timechart: Fix the wakeup-arrows that point to non-visible processes

The timechart wakeup arrows currently show no process
information when the waker/wakee are processes that are not
actually chosen to be shown on the timechart.

This patch fixes this oversight, by looking through all
processes (after giving preference to visible processes) as well
as falling back to just showing the PID if no name for the
process can be resolved.

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>
LKML-Reference: <20091020064649.0e4959b2@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-timechart.c