diff options
author | Tom Zanussi <[email protected]> | 2010-05-05 00:27:40 -0500 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2010-05-09 13:49:52 +0200 |
commit | 794e43b56c18b95fc9776c914a2659e7d558a352 (patch) | |
tree | 4c31bcb7ed0e7e23b5da02a4b4f6d2c218236463 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 2c193c736803ceb547daec725e5c5d992d039f20 (diff) |
perf/live-mode: Handle payload-less events
Some events, such as the PERF_RECORD_FINISHED_ROUND event consist of
only an event header and no data. In this case, a 0-length payload
will be read, and the 0 return value will be wrongly interpreted as an
'unexpected end of event stream'.
This patch allows for proper handling of data-less events by skipping
0-length reads.
Signed-off-by: Tom Zanussi <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
LKML-Reference: <1273038527.6383.51.camel@tropicana>
Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions