]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Resurrect flat callchains
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 8 Jul 2010 04:06:17 +0000 (06:06 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Thu, 8 Jul 2010 04:20:15 +0000 (06:20 +0200)
commit40181a2db871ab7f131a8c3df3d4a14ea9bc0b37
tree1bcf54fbe3fe39b6941f898a6927b6ac14df9996
parentf2cee1b75008b61df0696f38b3eb5db5a087bed1
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 <mingo@elte.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: 2.6.31.x-2.6.34.x <stable@kernel.org>
tools/perf/util/callchain.h