diff options
author | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2015-02-07 11:25:14 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-02-10 09:27:20 +0300 |
commit | be7433efbf8b4134ab9763abdecaf2e6a35e1ed1 (patch) | |
tree | 7ac4ebf086aef0b3338da642b8cc071586d885a8 | |
parent | 559782cc94581481cb7748eb17c4790e418bf86e (diff) |
Fix name error in migration stream analyzation script
It fixes the following error:
Traceback (most recent call last):
File "./scripts/analyze-migration.py", line 584, in <module>
dump.read(dump_memory = args.memory)
File "./scripts/analyze-migration.py", line 528, in read
self.sections[section_id].read()
File "./scripts/analyze-migration.py", line 250, in read
self.file.readvar(n_valid * HASH_PTE_SIZE_64)
NameError: global name 'HASH_PTE_SIZE_64' is not defined
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rwxr-xr-x | scripts/analyze-migration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/analyze-migration.py b/scripts/analyze-migration.py index b8b9968e00..0c8b22f2aa 100755 --- a/scripts/analyze-migration.py +++ b/scripts/analyze-migration.py @@ -247,7 +247,7 @@ class HTABSection(object): if index == 0 and n_valid == 0 and n_invalid == 0: break - self.file.readvar(n_valid * HASH_PTE_SIZE_64) + self.file.readvar(n_valid * self.HASH_PTE_SIZE_64) def getDict(self): return "" |