This patchset accumulates old patchset sent in the middle of October 2015 and recent simple changes changes.
The following is done: - QMP/HMP/QAPI events are now logged - timestamp is added to the log message - arguments of qemu_log/qemu_log_mask are not calculated now if the log is disabled These patches are sent in the hope that it is not too late for QEMU 2.6. Signed-off-by: Denis V. Lunev <d...@openvz.org> CC: Pavel Butsykin <pbutsy...@virtuozzo.com> CC: Markus Armbruster <arm...@redhat.com> CC: Luiz Capitulino <lcapitul...@redhat.com> CC: Eric Blake <ebl...@redhat.com> CC: Stefan Hajnoczi <stefa...@redhat.com> CC: Paolo Bonzini <pbonz...@redhat.com> Changes from v1: - added logging of QMP/HMP events - added logging of QAPI events - format of the timestamp is now taken out of the g_time_val_to_iso8601 - checking the timestamp flag is moved from the macro - separate patches for QMP, HMP and QAPI. - new fixes as patches 1-4 Denis V. Lunev (4): trace: do not always call exit() in trace_enable_events log: improve code in do_qemu_set_log log: move qemu_log_close/qemu_log_flush from header to log.c log: improve performance of qemu_log and qemu_log_mask if disabled Pavel Butsykin (4): log: log QMP commands and replies log: report HMP command and event log: report QAPI event log: adds a timestamp to each log entry Vladimir Sementsov-Ogievskiy (1): qemu-log: fix cpu_reset log target include/qemu/log.h | 43 +++++++++++++++++++----------------- monitor.c | 23 ++++++++++++++++++++ os-posix.c | 2 +- qom/cpu.c | 3 ++- trace/control.c | 5 ++++- util/log.c | 64 ++++++++++++++++++++++++++++++++++++++---------------- 6 files changed, 98 insertions(+), 42 deletions(-) -- 2.5.0