qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] memory: add trace_memory_region_set_log
@ 2012-05-23 11:22 Alon Levy
  0 siblings, 0 replies; only message in thread
From: Alon Levy @ 2012-05-23 11:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: avi

Signed-off-by: Alon Levy <alevy@redhat.com>
---
v2: Use PRIu64 for uint64_t format string

 memory.c     |    2 ++
 trace-events |    3 +++
 2 files changed, 5 insertions(+)

diff --git a/memory.c b/memory.c
index aab4a31..10be85c 100644
--- a/memory.c
+++ b/memory.c
@@ -18,6 +18,7 @@
 #include "ioport.h"
 #include "bitops.h"
 #include "kvm.h"
+#include "trace.h"
 #include <assert.h>
 
 #define WANT_EXEC_OBSOLETE
@@ -1070,6 +1071,7 @@ void memory_region_set_log(MemoryRegion *mr, bool log, unsigned client)
     uint8_t mask = 1 << client;
 
     mr->dirty_log_mask = (mr->dirty_log_mask & ~mask) | (log * mask);
+    trace_memory_region_set_log(mr, log, client);
     memory_region_update_topology(mr);
 }
 
diff --git a/trace-events b/trace-events
index 87cb96c..52697aa 100644
--- a/trace-events
+++ b/trace-events
@@ -805,3 +805,6 @@ qxl_render_blit_guest_primary_initialized(void) ""
 qxl_render_blit(int32_t stride, int32_t left, int32_t right, int32_t top, int32_t bottom) "stride=%d [%d, %d, %d, %d]"
 qxl_render_guest_primary_resized(int32_t width, int32_t height, int32_t stride, int32_t bytes_pp, int32_t bits_pp) "%dx%d, stride %d, bpp %d, depth %d"
 qxl_render_update_area_done(void *cookie) "%p"
+
+# memory.c
+memory_region_set_log(void *mr, bool log, uint64_t client) "%p %d %"PRIu64
-- 
1.7.10.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-05-23 11:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-23 11:22 [Qemu-devel] [PATCH v2] memory: add trace_memory_region_set_log Alon Levy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).