[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-31d50c551e30923b86a1b5b420920dd1927fa63b@git.kernel.org>
Date: Wed, 13 Apr 2016 04:48:02 -0700
From: tip-bot for Peter Zijlstra <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: mingo@...nel.org, peterz@...radead.org, bp@...e.de, hpa@...or.com,
tglx@...utronix.de, linux-kernel@...r.kernel.org,
torvalds@...ux-foundation.org
Subject: [tip:perf/core] perf/x86/amd/uncore: Do not register a task ctx for
uncore PMUs
Commit-ID: 31d50c551e30923b86a1b5b420920dd1927fa63b
Gitweb: http://git.kernel.org/tip/31d50c551e30923b86a1b5b420920dd1927fa63b
Author: Peter Zijlstra <peterz@...radead.org>
AuthorDate: Mon, 4 Apr 2016 16:02:08 +0200
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Wed, 13 Apr 2016 11:56:36 +0200
perf/x86/amd/uncore: Do not register a task ctx for uncore PMUs
The new sanity check introduced by:
26657848502b ("perf/core: Verify we have a single perf_hw_context PMU")
... triggered on the AMD uncore driver.
Uncore PMUs are per node, they cannot have per-task counters. Fix it.
Reported-by: Borislav Petkov <bp@...e.de>
Reported-by: Ingo Molnar <mingo@...nel.org>
Tested-by: Borislav Petkov <bp@...e.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: acme@...hat.com
Cc: alexander.shishkin@...ux.intel.com
Cc: eranian@...gle.com
Cc: jolsa@...hat.com
Cc: linux-tip-commits@...r.kernel.org
Cc: vincent.weaver@...ne.edu
Link: http://lkml.kernel.org/r/20160404140208.GA3448@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/x86/events/amd/uncore.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/events/amd/uncore.c b/arch/x86/events/amd/uncore.c
index 3db9569..98ac573 100644
--- a/arch/x86/events/amd/uncore.c
+++ b/arch/x86/events/amd/uncore.c
@@ -263,6 +263,7 @@ static const struct attribute_group *amd_uncore_attr_groups[] = {
};
static struct pmu amd_nb_pmu = {
+ .task_ctx_nr = perf_invalid_context,
.attr_groups = amd_uncore_attr_groups,
.name = "amd_nb",
.event_init = amd_uncore_event_init,
@@ -274,6 +275,7 @@ static struct pmu amd_nb_pmu = {
};
static struct pmu amd_l2_pmu = {
+ .task_ctx_nr = perf_invalid_context,
.attr_groups = amd_uncore_attr_groups,
.name = "amd_l2",
.event_init = amd_uncore_event_init,
Powered by blists - more mailing lists