]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: callchain: Fix spurious 'perf report' warnings: ignore empty callchains
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 8 Aug 2009 00:16:23 +0000 (02:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 9 Aug 2009 10:54:41 +0000 (12:54 +0200)
commitb347abd89b8233dff97c4643d57d3c6e40e96c38
tree652a2d089e6c964b963409c1bf4186d4cdc67daa
parent285db9c5ae82ec2cc674f92df4643266b1d10682
perf tools: callchain: Fix spurious 'perf report' warnings: ignore empty callchains

When the callchain tree comes to insert an empty backtrace, it
raises a spurious warning about the fact we are inserting an
empty. This is spurious because the radix tree assumes it did
something wrong to reach this state. But it didn't, we just met
an empty callchain that has to be ignored.

This happens occasionally with certain types of call-chain
recordings. If it happens it's a big nuisance as perf report
output starts with thousands of warning lines.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1249690585-9145-2-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/callchain.c