summary refs log tree commit diff stats
path: root/monitor.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2014-05-07 17:03:18 +0200
committerAndreas Färber <afaerber@suse.de>2015-03-17 14:31:21 +0100
commita01ff75fcdb4d91809ccdd2b95efda6ee1239cbb (patch)
tree0da5156b132cbb00035b75cd937c03448b6ce802 /monitor.c
parentc0e6ee9e6f49d4a3183b05f457cc2704a966fce5 (diff)
downloadfocaccia-qemu-a01ff75fcdb4d91809ccdd2b95efda6ee1239cbb.tar.gz
focaccia-qemu-a01ff75fcdb4d91809ccdd2b95efda6ee1239cbb.zip
qom: Implement info qom-tree HMP command
To complement qdev's bus-oriented info qtree, info qom-tree
prints a hierarchical view of the QOM composition tree.

By default, the machine composition tree is shown. This can be overriden
by supplying a path argument, such as "info qom-tree /".

Tested-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 8b703f97be..42116a942e 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2890,6 +2890,13 @@ static mon_cmd_t info_cmds[] = {
         .mhandler.cmd = hmp_info_qdm,
     },
     {
+        .name       = "qom-tree",
+        .args_type  = "path:s?",
+        .params     = "[path]",
+        .help       = "show QOM composition tree",
+        .mhandler.cmd = hmp_info_qom_tree,
+    },
+    {
         .name       = "roms",
         .args_type  = "",
         .params     = "",