From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44555 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8omC-0006HN-2g for qemu-devel@nongnu.org; Thu, 21 Oct 2010 02:37:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8omB-0001aP-0Z for qemu-devel@nongnu.org; Thu, 21 Oct 2010 02:37:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8omA-0001aC-Pn for qemu-devel@nongnu.org; Thu, 21 Oct 2010 02:37:22 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9L6bMpP015671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Oct 2010 02:37:22 -0400 Received: from playa.redhat.com (vpn-6-82.tlv.redhat.com [10.35.6.82]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9L6bKDd006086 for ; Thu, 21 Oct 2010 02:37:21 -0400 From: Alon Levy Date: Thu, 21 Oct 2010 08:37:18 +0200 Message-Id: <1287643040-21200-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] add optional root to info qtree List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Allow viewing of a part of the large qdev tree. The optional argument is first looked for as a bus id, if that fails a device id is found and it's parent bus is the root for printing. Adds sub_args_type callback for each monitor mon_cmd_t to fascilitate the existing info_cmds args_type and params strings, so monitor_parse_command will check the arguments for the do_info sub command do_info_qtree. Alon Levy (2): monitor: add sub_args_type for second level parameters monitor info qtree: add optional bus id hmp-commands.hx | 1 + hw/qdev.c | 17 ++++++++++++++--- hw/qdev.h | 2 +- monitor.c | 47 +++++++++++++++++++++++++++++++++++++++++------ 4 files changed, 57 insertions(+), 10 deletions(-) -- 1.7.3.1