From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afQZU-0000vE-Dq for qemu-devel@nongnu.org; Mon, 14 Mar 2016 07:22:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afQZQ-0003Dr-4U for qemu-devel@nongnu.org; Mon, 14 Mar 2016 07:22:00 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:19144 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afQZP-0003CK-Of for qemu-devel@nongnu.org; Mon, 14 Mar 2016 07:21:56 -0400 From: "Denis V. Lunev" Date: Mon, 14 Mar 2016 14:21:32 +0300 Message-Id: <1457954501-26528-1-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v2 0/9] log: assorted improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pavel Butsykin , Markus Armbruster , qemu-devel@nongnu.org, Luiz Capitulino , Stefan Hajnoczi , Paolo Bonzini , "Denis V. Lunev" 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 CC: Pavel Butsykin CC: Markus Armbruster CC: Luiz Capitulino CC: Eric Blake CC: Stefan Hajnoczi CC: Paolo Bonzini 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