]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate: Fix hist decay
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Apr 2012 19:15:59 +0000 (16:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Apr 2012 21:49:18 +0000 (18:49 -0300)
commit36f6d1b5725bec53ceab2d4573b3b4a3ebddda18
treedadc32f7df64619334f252c9c5206b82b99a73a6
parent04041bdf3dc244741f5d0aa10215f6888822594a
perf annotate: Fix hist decay

We were only decaying the entries for the offsets that were associated
with an objdump line.

That way, when we accrued the whole instruction addr range, more than
100% was appearing in some cases in the live annotation TUI.

Fix it by not traversing the source code line at all, just iterate thru
the complete addr range decaying each one.

Reported-by: Mike Galbraith <mgalbraith@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-hcae5oxa22syjrnalsxz7s6n@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c