perf timechart: Add a process filter
authorArjan van de Ven <arjan@infradead.org>
Mon, 19 Oct 2009 22:09:39 +0000 (07:09 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 20 Oct 2009 05:55:50 +0000 (07:55 +0200)
commitbbe2987bea26a684ff11d887dfc4cf39b22c27a2
tree5d11557ced1a66ead7329a3728ba9b77154884bf
parentc258449bc9d286e2ee6546c9cdf911e96cbc126a
perf timechart: Add a process filter

During the Kernel Summit demo of perf/ftrace/timechart, there
was a feature request to have a process filter for timechart so
that you can zoom into one or a few processes that you are
really interested in.

This patch adds basic support for this feature, the -p
(--process) option now can select a PID or a process name to be
shown. Multiple -p options are allowed, and the combined set
will be included in the output.

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: <20091020070939.7d0fb8a7@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/Documentation/perf-timechart.txt
tools/perf/builtin-timechart.c