]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Fix multi-counter stat bug caused by incorrect reading of perf.data file...
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 6 Aug 2009 18:57:41 +0000 (20:57 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 9 Aug 2009 10:54:34 +0000 (12:54 +0200)
commitd84e5cb20db8ac8239fc5120867e9f62e319c8ee
tree51c8263de9d6e7480df56646ca4654e2a7d6f42b
parent684b0e48fdc5cc4de0fcb4b3f81879a78460a0b6
perf tools: Fix multi-counter stat bug caused by incorrect reading of perf.data file header

Brice Goglin reported that only the first result from a
multi-counter perf record --stat run is accurate, the
rest looks bogus.

A silly mistake made us re-read the first attribute for
every recorded attribute.

Reported-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Tested-by: Brice Goglin <Brice.Goglin@inria.fr>
Cc: paulus@samba.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/header.c