qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alon Levy <alevy@redhat.com>
To: qemu-devel@nongnu.org
Cc: avi@redhat.com
Subject: [Qemu-devel] [PATCH v2] memory: add trace_memory_region_set_log
Date: Wed, 23 May 2012 14:22:58 +0300	[thread overview]
Message-ID: <1337772178-28237-1-git-send-email-alevy@redhat.com> (raw)

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

                 reply	other threads:[~2012-05-23 11:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1337772178-28237-1-git-send-email-alevy@redhat.com \
    --to=alevy@redhat.com \
    --cc=avi@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).