summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLluís Vilanova <vilanova@ac.upc.edu>2014-02-23 20:37:35 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2014-05-07 19:07:18 +0200
commitef0bd3bba674769c7d36bf400fc4fe7ea43244c5 (patch)
tree3a540ee331d35a7d415f5e2025be87ab08784d09 /scripts
parent30b572efd5d73d948825765803207fd30e062e8b (diff)
downloadhqemu-ef0bd3bba674769c7d36bf400fc4fe7ea43244c5.zip
hqemu-ef0bd3bba674769c7d36bf400fc4fe7ea43244c5.tar.gz
trace: [simple] Bump up log version number
The following tracetool cleanup changes the event numbering policy. Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/simpletrace.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/simpletrace.py b/scripts/simpletrace.py
index 8bbcb42..b9aeb56 100755
--- a/scripts/simpletrace.py
+++ b/scripts/simpletrace.py
@@ -65,13 +65,13 @@ def read_trace_file(edict, fobj):
header[0] != header_event_id or \
header[1] != header_magic:
raise ValueError('Not a valid trace file!')
- if header[2] != 0 and \
- header[2] != 2:
- raise ValueError('Unknown version of tracelog format!')
log_version = header[2]
- if log_version == 0:
- raise ValueError('Older log format, not supported with this QEMU release!')
+ if log_version not in [0, 2, 3]:
+ raise ValueError('Unknown version of tracelog format!')
+ if log_version != 3:
+ raise ValueError('Log format %d not supported with this QEMU release!'
+ % log_version)
while True:
rec = read_record(edict, fobj)
OpenPOWER on IntegriCloud