aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r--tools/perf/util/hist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 9485c7024f5b..8170a3d11ffa 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -245,6 +245,14 @@ static struct hist_entry *hist_entry__new(struct hist_entry *template)
245 245
246 if (he->ms.map) 246 if (he->ms.map)
247 he->ms.map->referenced = true; 247 he->ms.map->referenced = true;
248
249 if (he->branch_info) {
250 if (he->branch_info->from.map)
251 he->branch_info->from.map->referenced = true;
252 if (he->branch_info->to.map)
253 he->branch_info->to.map->referenced = true;
254 }
255
248 if (symbol_conf.use_callchain) 256 if (symbol_conf.use_callchain)
249 callchain_init(he->callchain); 257 callchain_init(he->callchain);
250 258