diff options
author | Leo Yan <leo.yan@linaro.org> | 2023-03-20 14:16:19 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-03-21 10:06:08 -0300 |
commit | 51b02a964728115761acc5baa5e67c8d0a9bc222 (patch) | |
tree | eb1a3abccf3936045319d29526b40a3acf2012ea /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f1e8f25980968f7c18f1eb977bd1d5fd716325a5 (diff) | |
download | linux-51b02a964728115761acc5baa5e67c8d0a9bc222.tar.gz linux-51b02a964728115761acc5baa5e67c8d0a9bc222.tar.bz2 linux-51b02a964728115761acc5baa5e67c8d0a9bc222.zip |
perf kvm: Delete histograms entries before exiting
It's good not to release resources for a program when kernel cleans up
memory space, this patch explicitly releases histograms entries with
hists__delete_entries().
Committer notice:
This helps with memory leak checkers, but may delay exiting a tool by
doing needless linked list traversals freeing lots of objects.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230320061619.29520-2-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions