From: Greg KH on
2.6.33-stable review patch. If anyone has any objections, please let us know.


From: Frederic Weisbecker <fweisbec(a)>

commit 97aa1052739c6a06cb6b0467dbf410613d20bc97 upstream.

Initialize the callchain radix tree root correctly.

When we walk through the parents, we must stop after the root, but
since it wasn't well initialized, its parent pointer was random.

Also the number of hits was random because uninitialized, hence it
was part of the callchain while the root doesn't contain anything.

This fixes segfaults and percentages followed by empty callchains
while running:

perf report -g flat

Reported-by: Ingo Molnar <mingo(a)>
Signed-off-by: Frederic Weisbecker <fweisbec(a)>
Cc: Peter Zijlstra <a.p.zijlstra(a)>
Cc: Arnaldo Carvalho de Melo <acme(a)>
Cc: Paul Mackerras <paulus(a)>
Signed-off-by: Greg Kroah-Hartman <gregkh(a)>

tools/perf/util/callchain.h | 3 +++
1 file changed, 3 insertions(+)

--- a/tools/perf/util/callchain.h
+++ b/tools/perf/util/callchain.h
@@ -48,6 +48,9 @@ static inline void callchain_init(struct
+ node->parent = NULL;
+ node->hit = 0;

static inline u64 cumul_hits(struct callchain_node *node)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)
More majordomo info at
Please read the FAQ at