diff options
author | Andreas Färber <afaerber@suse.de> | 2014-05-07 17:03:18 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-03-17 14:31:21 +0100 |
commit | a01ff75fcdb4d91809ccdd2b95efda6ee1239cbb (patch) | |
tree | 0da5156b132cbb00035b75cd937c03448b6ce802 /monitor.c | |
parent | c0e6ee9e6f49d4a3183b05f457cc2704a966fce5 (diff) | |
download | qemu-a01ff75fcdb4d91809ccdd2b95efda6ee1239cbb.tar.gz qemu-a01ff75fcdb4d91809ccdd2b95efda6ee1239cbb.tar.bz2 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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 = "", |