diff options
author | Kevin Wolf | 2019-06-13 17:34:00 +0200 |
---|---|---|
committer | Markus Armbruster | 2019-06-17 20:36:56 +0200 |
commit | 7e3c0deab1b76f37ac0b3199324db976a6cd1b2c (patch) | |
tree | e3439f0373b6ddab20ead50a9878c105b081b56b /monitor/trace-events | |
parent | monitor: Create monitor-internal.h with common definitions (diff) | |
download | qemu-7e3c0deab1b76f37ac0b3199324db976a6cd1b2c.tar.gz qemu-7e3c0deab1b76f37ac0b3199324db976a6cd1b2c.tar.xz qemu-7e3c0deab1b76f37ac0b3199324db976a6cd1b2c.zip |
monitor: Split out monitor/qmp.c
Move QMP infrastructure from monitor/misc.c to monitor/qmp.c. This is
code that can be shared for all targets, so compile it only once.
The amount of function and particularly extern variables in
monitor_int.h is probably a bit larger than it needs to be, but this way
no non-trivial code modifications are needed. The interfaces between QMP
and the monitor core can be cleaned up later.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190613153405.24769-11-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[monitor_is_qmp() tidied up to make checkpatch.pl happy,
superfluous #include dropped]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'monitor/trace-events')
-rw-r--r-- | monitor/trace-events | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor/trace-events b/monitor/trace-events index abfdf20b14..a06dde3fd3 100644 --- a/monitor/trace-events +++ b/monitor/trace-events @@ -5,7 +5,9 @@ monitor_protocol_event_handler(uint32_t event, void *qdict) "event=%d data=%p" monitor_protocol_event_emit(uint32_t event, void *data) "event=%d data=%p" monitor_protocol_event_queue(uint32_t event, void *qdict, uint64_t rate) "event=%d data=%p rate=%" PRId64 handle_hmp_command(void *mon, const char *cmdline) "mon %p cmdline: %s" -handle_qmp_command(void *mon, const char *req) "mon %p req: %s" monitor_suspend(void *ptr, int cnt) "mon %p: %d" + +# qmp.c monitor_qmp_cmd_in_band(const char *id) "%s" monitor_qmp_cmd_out_of_band(const char *id) "%s" +handle_qmp_command(void *mon, const char *req) "mon %p req: %s" |