From patchwork Wed May 23 11:22:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 160912 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4EFFBB6FC8 for ; Wed, 23 May 2012 21:23:24 +1000 (EST) Received: from localhost ([::1]:32795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX9ey-0004v1-Fc for incoming@patchwork.ozlabs.org; Wed, 23 May 2012 07:23:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX9en-0004px-15 for qemu-devel@nongnu.org; Wed, 23 May 2012 07:23:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX9eg-0002md-Kh for qemu-devel@nongnu.org; Wed, 23 May 2012 07:23:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX9eg-0002mL-DA for qemu-devel@nongnu.org; Wed, 23 May 2012 07:23:02 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4NBN1qc026274 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 May 2012 07:23:01 -0400 Received: from garlic.redhat.com (vpn-203-13.tlv.redhat.com [10.35.203.13]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q4NBMxdB008835; Wed, 23 May 2012 07:22:59 -0400 From: Alon Levy To: qemu-devel@nongnu.org Date: Wed, 23 May 2012 14:22:58 +0300 Message-Id: <1337772178-28237-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: avi@redhat.com Subject: [Qemu-devel] [PATCH v2] memory: add trace_memory_region_set_log X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Alon Levy --- 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 #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