From a01ff75fcdb4d91809ccdd2b95efda6ee1239cbb Mon Sep 17 00:00:00 2001 From: Andreas Färber Date: Wed, 7 May 2014 17:03:18 +0200 Subject: 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 Signed-off-by: Andreas Färber --- monitor.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 8b703f97be..42116a942e 100644 --- a/monitor.c +++ b/monitor.c @@ -2889,6 +2889,13 @@ static mon_cmd_t info_cmds[] = { .help = "show qdev device model list", .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 = "", -- cgit v1.2.3-55-g7522