[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 05/11] hw/dma/i8257: Silence phony error message
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 05/11] hw/dma/i8257: Silence phony error message |
Date: |
Fri, 26 Sep 2014 16:38:04 +0200 |
From: Philipp Hahn <address@hidden>
Convert into trace event. Otherwise the message
dma: unregistered DMA channel used nchan=0 dma_pos=0 dma_len=1
gets printed every time and fills up the log-file with 50 MiB / minute.
Signed-off-by: Philipp Hahn <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/dma/i8257.c | 4 ++--
trace-events | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c
index dd370ed..a414029 100644
--- a/hw/dma/i8257.c
+++ b/hw/dma/i8257.c
@@ -24,6 +24,7 @@
#include "hw/hw.h"
#include "hw/isa/isa.h"
#include "qemu/main-loop.h"
+#include "trace.h"
/* #define DEBUG_DMA */
@@ -473,8 +474,7 @@ static void dma_reset(void *opaque)
static int dma_phony_handler (void *opaque, int nchan, int dma_pos, int
dma_len)
{
- dolog ("unregistered DMA channel used nchan=%d dma_pos=%d dma_len=%d\n",
- nchan, dma_pos, dma_len);
+ trace_i8257_unregistered_dma(nchan, dma_pos, dma_len);
return dma_pos;
}
diff --git a/trace-events b/trace-events
index fb58963..b680a6b 100644
--- a/trace-events
+++ b/trace-events
@@ -1318,3 +1318,6 @@ mhp_pc_dimm_assigned_address(uint64_t addr) "0x%"PRIx64
# target-s390x/kvm.c
kvm_enable_cmma(int rc) "CMMA: enabling with result code %d"
kvm_clear_cmma(int rc) "CMMA: clearing with result code %d"
+
+# hw/dma/i8257.c
+i8257_unregistered_dma(int nchan, int dma_pos, int dma_len) "unregistered DMA
channel used nchan=%d dma_pos=%d dma_len=%d"
--
2.1.0
- [Qemu-devel] [PULL 00/11] KVM (and more) patches for 2014-09-26, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 01/11] pit: fix pit interrupt can't inject into vm after migration, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 02/11] Introduce cpu_clean_all_dirty, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 04/11] kvmclock: Ensure time in migration never goes backward, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 03/11] kvmclock: Ensure proper env->tsc value for kvmclock_current_nsec calculation, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 05/11] hw/dma/i8257: Silence phony error message,
Paolo Bonzini <=
- [Qemu-devel] [PULL 06/11] target-i386: update fp status fix, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 08/11] serial: check if backed by a physical serial port at realize time, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 07/11] serial: reset state at startup, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 10/11] po: fix conflict with %.mo rule in rules.mak, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 09/11] kvmvapic: fix migration when VM paused and when not running Windows, Paolo Bonzini, 2014/09/26
- [Qemu-devel] [PULL 11/11] kvm/valgrind: don't mark memory as initialized, Paolo Bonzini, 2014/09/26
- Re: [Qemu-devel] [PULL 00/11] KVM (and more) patches for 2014-09-26, Peter Maydell, 2014/09/26