Skip to content

perf kvm: Fix memory leak

Leo Yan linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf kvm: Support refcnt in structure kvm_infotools/perf/builtin-kvm.c tools/perf/util/hist.c tools/perf/util/kvm-stat.h+43 -23 replies
2/2perf kvm: Delete histograms entries before exitingtools/perf/builtin-kvm.c+3 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIan Rogers
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] perf kvm: Fix memory leak

This patch seris is to address memory leak issues in perf kvm.

The first patch introduces refcnt in structure kvm_info, so we can avoid memory leak for it.

The second patch explicitly delete histograms entries before program exiting rather than relying on kernel releasing memory space.

Leo Yan (2):
perf kvm: Support refcnt in structure kvm_info perf kvm: Delete histograms entries before exiting

 tools/perf/builtin-kvm.c   |  6 ++++--
 tools/perf/util/hist.c     |  5 +++++
 tools/perf/util/kvm-stat.h | 37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.2