1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-10-30 06:34:13 +00:00

Merge pull request #306 from marcbonnici/revent_BC

Revent: Fixed backwards compatibility with v1
This commit is contained in:
setrofim
2016-12-02 17:02:06 +00:00
committed by GitHub
4 changed files with 10 additions and 2 deletions

View File

@@ -208,6 +208,7 @@ class ReventRecording(object):
raise ValueError('Unexpected recording mode: {}'.format(self.mode))
self.num_events, = read_struct(fh, u64_struct)
elif 2 > self.version >= 0:
self.mode = GENERAL_MODE
self._read_devices(fh)
else:
raise ValueError('Invalid recording version: {}'.format(self.version))