perf_counter tools: fix infinite loop in perf-report on zeroed event records
authorIngo Molnar <mingo@elte.hu>
Thu, 30 Apr 2009 12:14:37 +0000 (14:14 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 30 Apr 2009 12:14:37 +0000 (14:14 +0200)
commitbad760089c1ef7fe525c0f268a4078b9cb483903
tree4c1d98198a8f0058932144bdff43a6041a0ad694
parent66cf782996f3d57d3cc199f0a2d47a54e2aa5991
perf_counter tools: fix infinite loop in perf-report on zeroed event records

Bail out early if a record has zero size - we have no chance to make
reliable progress in that case. Print out the offset where this happens,
and print the number of bytes we missed out on.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/perf-report.cc