diff options
| author | Kan Liang <[email protected]> | 2018-02-12 14:20:33 -0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-03-09 08:22:21 +0100 |
| commit | 5bee2cc69d986e20808c93c46f7b6aef51edd827 (patch) | |
| tree | 0cbd8142873fce0940eb2f82cfb9d8627f1bcc8c /include/linux/overflow.h | |
| parent | bcfbe5c41d630ce6b74da45134cea484248b515a (diff) | |
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions