[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1273483760.15998.63.camel@minggr.sh.intel.com>
Date: Mon, 10 May 2010 17:29:20 +0800
From: Lin Ming <ming.m.lin@...el.com>
To: Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...e.hu>
Cc: Frederic Weisbecker <fweisbec@...il.com>,
"eranian@...il.com" <eranian@...il.com>,
"Gary.Mohr@...l.com" <Gary.Mohr@...l.com>,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
"arjan@...ux.intel.com" <arjan@...ux.intel.com>,
"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
Paul Mackerras <paulus@...ba.org>,
"David S. Miller" <davem@...emloft.net>,
Russell King <rmk+kernel@....linux.org.uk>,
Paul Mundt <lethal@...ux-sh.org>,
lkml <linux-kernel@...r.kernel.org>
Subject: [RFC][PATCH 9/9] perf top: set perf_event_attr->pmu_id
This is just a temporary patch to show the setting of
perf_event_attr->pmu_id.
Signed-off-by: Lin Ming <ming.m.lin@...el.com>
---
tools/perf/builtin-top.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index ed9b5b6..f775393 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1213,6 +1213,11 @@ static void start_counter(int i, int counter)
attr = attrs + counter;
+ /*
+ * TBD: in the future, may read /sys/devices/system/cpu/pmus/<pmu_id>
+ * to get the pmu id
+ */
+ attr.pmu_id = 0;
attr->sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_TID;
if (freq) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists