perf/x86/intel: Fix PMU read for auto-reload
authorKan Liang <kan.liang@linux.intel.com>
Mon, 12 Feb 2018 22:20:34 +0000 (14:20 -0800)
committerIngo Molnar <mingo@kernel.org>
Fri, 9 Mar 2018 07:22:22 +0000 (08:22 +0100)
commitceb90d9e0248947839a0ff4bee98cf28695a6020
tree5d426b3c1d2287fceaf8f0ba65b1f4d59482d60a
parent5bee2cc69d986e20808c93c46f7b6aef51edd827
perf/x86/intel: Fix PMU read for auto-reload

Auto-reload events needs to be specially handled in event count read.

Auto-reload is only available for intel_pmu.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: acme@kernel.org
Fixes: b8241d20699e ("perf/x86/intel: Implement batched PEBS interrupt handling (large PEBS interrupt threshold)")
Link: http://lkml.kernel.org/r/1518474035-21006-5-git-send-email-kan.liang@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/core.c