From 6c0c3caf5a74261a0fd255b116be3de51756e541 Mon Sep 17 00:00:00 2001 From: Stephane Eranian Date: Mon, 14 Jan 2013 15:02:45 +0100 Subject: [PATCH] --- yaml --- r: 349966 b: refs/heads/master c: 3cf0cb1f899640f1eb8b3984739cfd70375c9c36 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/util/hist.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 3fa22824ad6d..f9392b564b43 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 865c66c4183aab1d12522ca3ad3a3339d2437e5c +refs/heads/master: 3cf0cb1f899640f1eb8b3984739cfd70375c9c36 diff --git a/trunk/tools/perf/util/hist.c b/trunk/tools/perf/util/hist.c index 9485c7024f5b..8170a3d11ffa 100644 --- a/trunk/tools/perf/util/hist.c +++ b/trunk/tools/perf/util/hist.c @@ -245,6 +245,14 @@ static struct hist_entry *hist_entry__new(struct hist_entry *template) if (he->ms.map) he->ms.map->referenced = true; + + if (he->branch_info) { + if (he->branch_info->from.map) + he->branch_info->from.map->referenced = true; + if (he->branch_info->to.map) + he->branch_info->to.map->referenced = true; + } + if (symbol_conf.use_callchain) callchain_init(he->callchain);