[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCHv3] qxl-logger: add timestamp to command log
From: |
Alon Levy |
Subject: |
[Qemu-devel] [PATCHv3] qxl-logger: add timestamp to command log |
Date: |
Wed, 29 Jun 2011 13:57:13 +0200 |
---
hw/qxl-logger.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/hw/qxl-logger.c b/hw/qxl-logger.c
index 76f43e6..74cadba 100644
--- a/hw/qxl-logger.c
+++ b/hw/qxl-logger.c
@@ -19,6 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "qemu-timer.h"
#include "qxl.h"
static const char *qxl_type[] = {
@@ -223,7 +224,8 @@ void qxl_log_command(PCIQXLDevice *qxl, const char *ring,
QXLCommandExt *ext)
if (!qxl->cmdlog) {
return;
}
- fprintf(stderr, "qxl-%d/%s:", qxl->id, ring);
+ fprintf(stderr, "%ld qxl-%d/%s:", qemu_get_clock_ns(vm_clock),
+ qxl->id, ring);
fprintf(stderr, " cmd @ 0x%" PRIx64 " %s%s", ext->cmd.data,
qxl_name(qxl_type, ext->cmd.type),
compat ? "(compat)" : "");
--
1.7.5.4
- [Qemu-devel] [PATCHv3] qxl S3&S4 (suspend and hibernate) support, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] async io: suggested fixes, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] async thread fix - handle EAGAIN/EINTR, remove fprintf, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: use track_lock instead of wlock for guest_surfaces, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: add mode to debugprint on destroy primary, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: allow QXL_IO_LOG also in vga, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl: abort on panic instead of exit, Alon Levy, 2011/06/29
- [Qemu-devel] [PATCHv3] qxl-logger: add timestamp to command log,
Alon Levy <=
- [Qemu-devel] [PATCHv3] qxl: update and add debug prints, Alon Levy, 2011/06/29
[Qemu-devel] [PATCHv3] qxl: add dev id to guest prints, Alon Levy, 2011/06/29
[Qemu-devel] [PATCHv3] qxl: add io_port_to_string, Alon Levy, 2011/06/29
[Qemu-devel] [PATCHv3] qxl: update revision to QXL_REVISION_STABLE_V10, Alon Levy, 2011/06/29
[Qemu-devel] [PATCHv3] qxl: add QXL_IO_FLUSH_{SURFACES, RELEASE} for guest S3&S4 support, Alon Levy, 2011/06/29