Signed-off-by: Alon Levy <[email protected]>
---
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..002db94 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 %d"
--
1.7.10.1