Received: from eggs.gnu.org ([2001:4830:134:3::10]:36957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTSHG-0000A2-SE for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:22:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTSHB-0005zB-Lq for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:22:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50358) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dTSHB-0005yZ-Fm for qemu-devel@nongnu.org; Fri, 07 Jul 2017 08:22:25 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 65A247F410 for ; Fri, 7 Jul 2017 12:22:24 +0000 (UTC) From: Eduardo Habkost Date: Fri, 7 Jul 2017 09:22:12 -0300 Message-Id: <20170707122215.8819-1-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/3] qmp: Return extra information on qom-list-types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , Eric Blake This series adds 'abstract' and 'parent' fields to the output of qom-list-types. For reference, below are the sizes of the output of "qom-list-types abstract=true" on qemu-system-x86_64, before and after applying the patches: * before: 11724 bytes * with 'abstract' field: 13146 bytes * with 'abstract' and 'parent': 24046 bytes This is just a rebase of v2. I'm sending it as v3 because a long time has passed since v2 was submitted. Changes v2 -> v3: * Rebase to latest qemu.git master, only Changes v1 (RFC) -> v2: * Make 'parent' field optional, to make output shorter * Return only immediate parent type on 'parent' field, instead of all parent-types on a 'parent-types' field Eduardo Habkost (3): tests: Simplify abstract-interfaces check with a helper qmp: Include 'abstract' field on 'qom-list-types' output qmp: Include parent type on 'qom-list-types' output qapi-schema.json | 7 +- qmp.c | 6 ++ tests/device-introspect-test.c | 156 +++++++++++++++++++++++++++++++++-------- 3 files changed, 139 insertions(+), 30 deletions(-) -- 2.9.4