lkml.org 
[lkml]   [2014]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] perf kvm stat live: Copy events
Date
Hello,

This is a fix of 'perf kvm stat live' crash when it tries
to parse events that have been already overwritten by the kernel.

Patches
- 1/2 adds an option to copy events when they are pushed to the samples queue. The patch is based on the patch by David Ahern (https://lkml.org/lkml/2013/9/6/388)
- 2/2 enables the copying for perf kvm stat live.

Changes in v2:
- the option to copy events is now a part of ordered_events
- use memdup() instead malloc()/memcpy()
- events alocations are under the report.queue-size limit

Previous thread: https://lkml.org/lkml/2014/9/18/353

Thanks!

Alexander Yarygin (2):
perf tools: Add option to copy events when queueing
perf kvm stat live: Enable events copying

tools/perf/builtin-kvm.c | 1 +
tools/perf/util/ordered-events.c | 41 ++++++++++++++++++++++++++++++++++++----
tools/perf/util/ordered-events.h | 10 +++++++++-
tools/perf/util/session.c | 5 ++---
4 files changed, 49 insertions(+), 8 deletions(-)

--
1.9.1



\
 
 \ /
  Last update: 2014-10-02 13:01    [W:0.111 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site