aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2015-12-10 16:53:20 +0900
committerArnaldo Carvalho de Melo <[email protected]>2015-12-10 15:56:58 -0300
commit61fa0e94ca6ab62db5e095a5528150bf9962196d (patch)
treefcd801b91e0142e83910dee61503bdc678767765 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent3f86eb6b0771d785099c91354838d3f8d8126630 (diff)
perf top: Delete half-processed hist entries when exit
After sample processing is done, hist entries are in both of hists->entries and hists->entries_in (or hists->entries_collapsed). So I guess perf report does not have leaks on hists. But for perf top, it's possible to have half-processed entries which are only in hists->entries_in. Eventually they will go to the hists->entries and get freed but they cannot be deleted by current hists__delete_entries(). This patch adds hists__delete_all_entries function to delete those entries. Signed-off-by: Namhyung Kim <[email protected]> Tested-and-Acked-by: Masami Hiramatsu <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions