[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230320061619.29520-1-leo.yan@linaro.org>
Date: Mon, 20 Mar 2023 14:16:17 +0800
From: Leo Yan <leo.yan@...aro.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
James Clark <james.clark@....com>,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Leo Yan <leo.yan@...aro.org>
Subject: [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(-)
--
2.39.2
Powered by blists - more mailing lists