From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Pb2-00008F-79 for qemu-devel@nongnu.org; Fri, 12 Jun 2015 10:06:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3Pax-0002LJ-4J for qemu-devel@nongnu.org; Fri, 12 Jun 2015 10:06:12 -0400 Received: from omzsmtpe04.verizonbusiness.com ([199.249.25.207]:14179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Pax-0002GZ-0L for qemu-devel@nongnu.org; Fri, 12 Jun 2015 10:06:07 -0400 From: Don Slutz Date: Fri, 12 Jun 2015 10:05:49 -0400 Message-Id: <1434117956-4929-3-git-send-email-dslutz@verizon.com> In-Reply-To: <1434117956-4929-1-git-send-email-dslutz@verizon.com> References: <1434117956-4929-1-git-send-email-dslutz@verizon.com> Subject: [Qemu-devel] [PATCH v7 2/9] vmport: Switch to trace List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Markus Armbruster , Don Slutz , Luiz Capitulino , Don Slutz , Anthony Liguori , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Richard Henderson Signed-off-by: Don Slutz CC: Don Slutz --- hw/misc/vmport.c | 7 +++---- trace-events | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/misc/vmport.c b/hw/misc/vmport.c index 51b64bc..203e892 100644 --- a/hw/misc/vmport.c +++ b/hw/misc/vmport.c @@ -27,7 +27,7 @@ #include "sysemu/kvm.h" #include "hw/qdev.h" -//#define VMPORT_DEBUG +#include "trace.h" #define VMPORT_CMD_GETVERSION 0x0a #define VMPORT_CMD_GETRAMSIZE 0x14 @@ -71,6 +71,7 @@ static uint64_t vmport_ioport_read(void *opaque, hwaddr addr, /* Only support 1 address */ if (addr) { + trace_vmport_ioport_ignored(addr, size, cs); return ~0U; } cpu_synchronize_state(cs); @@ -84,9 +85,7 @@ static uint64_t vmport_ioport_read(void *opaque, hwaddr addr, return eax; if (!s->func[command]) { -#ifdef VMPORT_DEBUG - fprintf(stderr, "vmport: unknown command %x\n", command); -#endif + trace_vmport_ioport_unknown_command(command); return eax; } diff --git a/trace-events b/trace-events index d6c73e6..e229aac 100644 --- a/trace-events +++ b/trace-events @@ -883,6 +883,10 @@ pc87312_info_ide(uint32_t base) "base 0x%x" pc87312_info_parallel(uint32_t base, uint32_t irq) "base 0x%x, irq %u" pc87312_info_serial(int n, uint32_t base, uint32_t irq) "id=%d, base 0x%x, irq %u" +# hw/misc/vmport.c +vmport_ioport_ignored(uint64_t addr, uint32_t size, void *cs) "addr=%#" PRIx64 " size=%u cs=%p" +vmport_ioport_unknown_command(unsigned char command) "%x" + # hw/scsi/vmw_pvscsi.c pvscsi_ring_init_data(uint32_t txr_len_log2, uint32_t rxr_len_log2) "TX/RX rings logarithms set to %d/%d" pvscsi_ring_init_msg(uint32_t len_log2) "MSG ring logarithm set to %d" -- 1.8.4