public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] perf top: Fix freeze on --call-graph flat/folded
@ 2015-11-26  7:08 Namhyung Kim
  2015-11-26  7:08 ` [PATCH 2/3] perf callchain: Stop resolving callchains after invalid address Namhyung Kim
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Namhyung Kim @ 2015-11-26  7:08 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Ingo Molnar, Peter Zijlstra, Jiri Olsa, LKML, David Ahern,
	Kan Liang, Frederic Weisbecker, Andi Kleen, Wang Nan

The callchain rbtree is rebuilt periodically, so it needs to
reinitialize the root everytime.  Otherwise it can be stuck in the
rbtree insertion with stale pointers.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
 tools/perf/util/callchain.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c
index fc3b1e0d09ee..564377d2bebf 100644
--- a/tools/perf/util/callchain.c
+++ b/tools/perf/util/callchain.c
@@ -290,6 +290,7 @@ static void
 sort_chain_flat(struct rb_root *rb_root, struct callchain_root *root,
 		u64 min_hit, struct callchain_param *param __maybe_unused)
 {
+	*rb_root = RB_ROOT;
 	__sort_chain_flat(rb_root, &root->node, min_hit);
 }
 
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-12-02  5:21 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26  7:08 [PATCH 1/3] perf top: Fix freeze on --call-graph flat/folded Namhyung Kim
2015-11-26  7:08 ` [PATCH 2/3] perf callchain: Stop resolving callchains after invalid address Namhyung Kim
2015-11-26  7:43   ` Ingo Molnar
2015-11-26 14:12     ` Namhyung Kim
2015-11-27  7:48       ` Ingo Molnar
2015-11-26 13:14   ` David Ahern
2015-11-26 15:00     ` Namhyung Kim
2015-11-26 15:48       ` David Ahern
2015-11-26 15:58         ` Jiri Olsa
2015-11-26 16:19           ` Arnaldo Carvalho de Melo
2015-12-02  5:20             ` Namhyung Kim
2015-11-26  7:08 ` [PATCH 3/3] perf callchain: Honor hide_unresolved Namhyung Kim
2015-11-26  8:46   ` Jiri Olsa
2015-11-26 16:20     ` Arnaldo Carvalho de Melo
2015-11-27  7:43   ` [tip:perf/core] " tip-bot for Namhyung Kim
2015-11-26  8:38 ` [PATCH 1/3] perf top: Fix freeze on --call-graph flat/folded Jiri Olsa
2015-11-26 13:52   ` Namhyung Kim
2015-11-26 14:00     ` Jiri Olsa
2015-11-26 15:10       ` Namhyung Kim
2015-11-26 15:22         ` Jiri Olsa
2015-11-26 16:32 ` Arnaldo Carvalho de Melo
2015-11-27  7:43 ` [tip:perf/core] " tip-bot for Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox