From: Frederic Weisbecker Date: Thu, 8 Jul 2010 04:06:17 +0000 (+0200) Subject: perf: Resurrect flat callchains X-Git-Tag: v2.6.35-rc6~36^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97aa1052739c6a06cb6b0467dbf410613d20bc97;p=pandora-kernel.git perf: Resurrect flat callchains 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 Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo Cc: Paul Mackerras Cc: 2.6.31.x-2.6.34.x --- Reading git-diff-tree failed