]> code.ossystems Code Review - openembedded-core.git/commitdiff
testimage.bbclass: Add dump-guest-memory cmd
authorSaul Wold <Saul.Wold@windriver.com>
Tue, 29 Jun 2021 14:57:03 +0000 (07:57 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Jul 2021 22:14:27 +0000 (23:14 +0100)
This command takes a set of command arguments, one of which requires
a filename so use %s which the MonitorDumper will translate to a
unique filename in the dated qmp directory.

CMD Before: {paging:false,protocol:file:%s.img}
CMD After: {paging:false,protocol:file:/yocto/poky/build/tmp/log/runtime-hostdump/qmp_00_dump-guest-memory.img}

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testimage.bbclass

index 43de9d4d767a889d1e986bc4fc17f1589d67372c..ed3a885bdf2f0bf88763b8eae829130c1205fd04 100644 (file)
@@ -130,6 +130,7 @@ testimage_dump_host () {
 testimage_dump_monitor () {
     query-status
     query-block
+    dump-guest-memory {"paging":false,"protocol":"file:%s.img"}
 }
 
 python do_testimage() {