diff options
author | Alexander Yarygin <[email protected]> | 2014-10-03 18:40:12 +0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-10-15 17:39:03 -0300 |
commit | 673d659f5c5918b7ddbafebf1f129c9eb82973b4 (patch) | |
tree | 2e2abafb2a325803af41de4f50a399c06c270c7a /tools/perf/scripts/python/check-perf-trace.py | |
parent | 54bf53b1cb9150b894213a705c562d52388376ef (diff) |
perf kvm stat live: Enable events copying
Process of analyzing events caused by 2 functions: mmap_read() and
finished_round().
During mmap_read(), perf receives events from shared memory, queues
their pointers for further processing in finished_round() and notifies
the kernel that the events have been processed.
By the time when finished_round() is invoked, queued events can be
overwritten by the kernel, so the finished_round() occurs on potentially
corrupted memory.
Since there is no place where the event can be safely consumed, let's
copy events when queueing.
Signed-off-by: Alexander Yarygin <[email protected]>
Cc: Christian Borntraeger <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions