projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26353a6
)
perf hists: Free unused mem info of a matched hist entry
author
Namhyung Kim
<
[email protected]
>
Mon, 1 Apr 2013 11:35:18 +0000
(20:35 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 28 May 2013 13:23:52 +0000
(16:23 +0300)
The mem info is shared between matched entries so one should be freed.
Signed-off-by: Namhyung Kim <
[email protected]
>
Cc: Andi Kleen <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Paul Mackerras <
[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]
>
tools/perf/util/hist.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/hist.c
b/tools/perf/util/hist.c
index 9438d576459d83ec08474347ff76fc4abf450211..514fc0470e3888b18601cf095737d4ca3123df37 100644
(file)
--- a/
tools/perf/util/hist.c
+++ b/
tools/perf/util/hist.c
@@
-374,6
+374,12
@@
static struct hist_entry *add_hist_entry(struct hists *hists,
if (!cmp) {
he_stat__add_period(&he->stat, period, weight);
+ /*
+ * This mem info was allocated from machine__resolve_mem
+ * and will not be used anymore.
+ */
+ free(entry->mem_info);
+
/* If the map of an existing hist_entry has
* become out-of-date due to an exec() or
* similar, update it. Otherwise we will