summaryrefslogtreecommitdiffstats
path: root/arch/x86/events/intel/core.c
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2018-02-12 14:20:33 -0800
committerIngo Molnar <mingo@kernel.org>2018-03-09 08:22:21 +0100
commit5bee2cc69d986e20808c93c46f7b6aef51edd827 (patch)
tree0cbd8142873fce0940eb2f82cfb9d8627f1bcc8c /arch/x86/events/intel/core.c
parentbcfbe5c41d630ce6b74da45134cea484248b515a (diff)
downloadop-kernel-dev-5bee2cc69d986e20808c93c46f7b6aef51edd827.zip
op-kernel-dev-5bee2cc69d986e20808c93c46f7b6aef51edd827.tar.gz
perf/x86/intel/ds: Introduce ->read() function for auto-reload events and flush the PEBS buffer there
There is no way to get exact auto-reload times and values which are needed for event updates unless we flush the PEBS buffer. Introduce intel_pmu_auto_reload_read() to drain the PEBS buffer for auto reload event. To prevent races with the hardware, we can only call drain_pebs() when the PMU is disabled. 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 Link: http://lkml.kernel.org/r/1518474035-21006-4-git-send-email-kan.liang@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/events/intel/core.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud