Am 12.07.2016 um 17:33 schrieb [email protected]:
> From: goremykin <[email protected]>
> 
> Option -dt-printf 'file' writes Device Tree (DiveceClass hierarchy) to
> 'file' using Json format. This helps developers visualize the hierarchy
> of DeviceClass and its properties.
> 
> Signed-off-by: Oleg Goremykin <[email protected]>
> ---
>  include/qom/qom-dt.h |  22 ++++++++
>  qemu-options.hx      |  16 ++++++
>  qom/Makefile.objs    |   1 +
>  qom/qom-dt.c         | 142 
> +++++++++++++++++++++++++++++++++++++++++++++++++++
>  vl.c                 |   4 ++
>  5 files changed, 185 insertions(+)
>  create mode 100644 include/qom/qom-dt.h
>  create mode 100644 qom/qom-dt.c

Hm, apart from some typos I don't quite like the file placement and
implementation. Can't you just implement this as a QMP/HMP command and
leave the qom/ dirs untouched? Or maybe even extract that info from an
external Python script like qom-list etc. do?

Regards,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

Reply via email to