diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2015-09-04 17:37:50 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2015-09-04 17:37:50 +0100 |
| commit | b597aa037dbd98014c8dec3d69a5e2240f432533 (patch) | |
| tree | 065f5582704130451833b6c9a6f5722ffa39fd83 /hmp.c | |
| parent | b5bff7518d8e4feda95f5c523cb24f72863c1df6 (diff) | |
| parent | 62313160cb5b6bdfbd77a063e94a5a7d25e59f2b (diff) | |
| download | focaccia-qemu-b597aa037dbd98014c8dec3d69a5e2240f432533.tar.gz focaccia-qemu-b597aa037dbd98014c8dec3d69a5e2240f432533.zip | |
Merge remote-tracking branch 'remotes/armbru/tags/pull-monitor-2015-09-04' into staging
Monitor patches # gpg: Signature made Fri 04 Sep 2015 12:40:11 BST using RSA key ID EB918653 # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" # gpg: aka "Markus Armbruster <armbru@pond.sub.org>" * remotes/armbru/tags/pull-monitor-2015-09-04: hmp: add info iothreads command qmp-shell: add documentation Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hmp.c')
| -rw-r--r-- | hmp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c index dcc66f159a..3f807b75f1 100644 --- a/hmp.c +++ b/hmp.c @@ -1963,6 +1963,19 @@ void hmp_info_memory_devices(Monitor *mon, const QDict *qdict) qapi_free_MemoryDeviceInfoList(info_list); } +void hmp_info_iothreads(Monitor *mon, const QDict *qdict) +{ + IOThreadInfoList *info_list = qmp_query_iothreads(NULL); + IOThreadInfoList *info; + + for (info = info_list; info; info = info->next) { + monitor_printf(mon, "%s: thread_id=%" PRId64 "\n", + info->value->id, info->value->thread_id); + } + + qapi_free_IOThreadInfoList(info_list); +} + void hmp_qom_list(Monitor *mon, const QDict *qdict) { const char *path = qdict_get_try_str(qdict, "path"); |