perf/x86/amd/uncore: Do not register a task ctx for uncore PMUs
authorPeter Zijlstra <peterz@infradead.org>
Mon, 4 Apr 2016 14:02:08 +0000 (16:02 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Apr 2016 09:56:36 +0000 (11:56 +0200)
commit31d50c551e30923b86a1b5b420920dd1927fa63b
treee19cc03a21b469ed946a23ee94f2c54192b0dc68
parente465de1cd5e1759e40f077bac287de60d56ad06c
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@suse.de>
Reported-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: acme@redhat.com
Cc: alexander.shishkin@linux.intel.com
Cc: eranian@google.com
Cc: jolsa@redhat.com
Cc: linux-tip-commits@vger.kernel.org
Cc: vincent.weaver@maine.edu
Link: http://lkml.kernel.org/r/20160404140208.GA3448@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/amd/uncore.c