memory: add trace_memory_region_set_log
PATCH 1/1 memory: add trace_memory_region_set_log
Signed-off-by Alon Levy <[email protected]>
--- memory.c | 2 ++ trace-events | 3 +++ 2 files changed, 5 insertions(+)
memory.c +2 -0
@@ -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); }
trace-events +3 -0
@@ -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"
Signature · 1 line
1.7.10.1