* [Qemu-devel] [PATCH] Fix name error in migration stream analyzation script
@ 2015-02-07 10:25 Greg Kurz
2015-02-07 20:46 ` Michael Tokarev
0 siblings, 1 reply; 2+ messages in thread
From: Greg Kurz @ 2015-02-07 10:25 UTC (permalink / raw)
To: Alexander Graf; +Cc: qemu-trivial, qemu-devel, Juan Quintela
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>
---
scripts/analyze-migration.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/analyze-migration.py b/scripts/analyze-migration.py
index b8b9968..0c8b22f 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 ""
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix name error in migration stream analyzation script
2015-02-07 10:25 [Qemu-devel] [PATCH] Fix name error in migration stream analyzation script Greg Kurz
@ 2015-02-07 20:46 ` Michael Tokarev
0 siblings, 0 replies; 2+ messages in thread
From: Michael Tokarev @ 2015-02-07 20:46 UTC (permalink / raw)
To: Greg Kurz, Alexander Graf; +Cc: qemu-trivial, qemu-devel, Juan Quintela
Applied to -trivial, thank you!
/mjt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-07 20:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-07 10:25 [Qemu-devel] [PATCH] Fix name error in migration stream analyzation script Greg Kurz
2015-02-07 20:46 ` Michael Tokarev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).