Skip to contentSkip to conversation

perf timechart: Add a process filter

PATCH In review Arjan van de Ven 1 participant 2 messages Oct 19, 2009 – Oct 24, 2009 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf timechart: Add a process filter

Quoted 1 line

From 8ba241f1ac72e9cafd0eb8a821ec8f86abb866b2 Mon Sep 17 00:00:00 2001

From: Arjan van de Ven <[email protected]>
Date: Tue, 20 Oct 2009 07:07:06 +0900
Subject: [PATCH] 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.

---
 tools/perf/Documentation/perf-timechart.txt |    5 +-
 tools/perf/builtin-timechart.c              |  105 ++++++++++++++++++++++++++-
 2 files changed, 106 insertions(+), 4 deletions(-)
tools/perf/Documentation/perf-timechart.txt +4 -1
index a791009..4b17883 100644
@@ -31,9 +31,12 @@ OPTIONS
 -w::
 --width=::
         Select the width of the SVG file (default: 1000)
--p::
+-P::
 --power-only::
         Only output the CPU power section of the diagram
+-p::
+--process::
+        Select the processes to display, by name or PID
 
 
 SEE ALSO
tools/perf/builtin-timechart.c +102 -3

145 lines not on this page · raw message

Signature · 8 lines
1.6.2.5



-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
#1 lore raw
Commit-ID:  bbe2987bea26a684ff11d887dfc4cf39b22c27a2
Gitweb:     http://git.kernel.org/tip/bbe2987bea26a684ff11d887dfc4cf39b22c27a2
Author:     Arjan van de Ven <[email protected]>
AuthorDate: Tue, 20 Oct 2009 07:09:39 +0900
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 20 Oct 2009 07:55:50 +0200

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.

Cc Peter Zijlstra <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Frederic Weisbecker <[email protected]>

LKML-Reference: <[email protected]>

---
 tools/perf/Documentation/perf-timechart.txt |    5 +-
 tools/perf/builtin-timechart.c              |  105 ++++++++++++++++++++++++++-
 2 files changed, 106 insertions(+), 4 deletions(-)
tools/perf/Documentation/perf-timechart.txt +4 -1
index a791009..4b17883 100644
@@ -31,9 +31,12 @@ OPTIONS
 -w::
 --width=::
         Select the width of the SVG file (default: 1000)
--p::
+-P::
 --power-only::
         Only output the CPU power section of the diagram
+-p::
+--process::
+        Select the processes to display, by name or PID
 
 
 SEE ALSO
tools/perf/builtin-timechart.c +102 -3

145 lines not on this page · raw message