diff options
author | Kan Liang <kan.liang@linux.intel.com> | 2019-04-02 12:45:01 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-04-16 12:19:39 +0200 |
commit | 477f00f9617009a9a3a9271885231573b728ca4f (patch) | |
tree | 4bd5ddabbbb06e1638716a7833be73aa714ea176 /samples/trace_events/Makefile | |
parent | 48f38aa4cc5a48bc0fe85c5c4b1ab171fbb539b6 (diff) |
perf/x86/intel/ds: Extract code of event update in short period
The drain_pebs() could be called twice in a short period for auto-reload
event in pmu::read(). The intel_pmu_save_and_restart_reload() should be
called to update the event->count.
This case should also be handled on Icelake. Extract the code for
later reuse.
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
Cc: jolsa@kernel.org
Link: https://lkml.kernel.org/r/20190402194509.2832-5-kan.liang@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'samples/trace_events/Makefile')
0 files changed, 0 insertions, 0 deletions