From patchwork Wed May 23 11:17:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 160910 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 690C8B6FC5 for ; Wed, 23 May 2012 21:17:38 +1000 (EST) Received: from localhost ([::1]:56275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX9ZO-0001sY-DA for incoming@patchwork.ozlabs.org; Wed, 23 May 2012 07:17:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX9ZA-0001rM-Ei for qemu-devel@nongnu.org; Wed, 23 May 2012 07:17:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX9Z4-0000ky-3d for qemu-devel@nongnu.org; Wed, 23 May 2012 07:17:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX9Z3-0000iP-RQ for qemu-devel@nongnu.org; Wed, 23 May 2012 07:17:14 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4NBHBc3024059 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 May 2012 07:17:12 -0400 Received: from garlic.redhat.com (vpn-203-13.tlv.redhat.com [10.35.203.13]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q4NBH991005859; Wed, 23 May 2012 07:17:10 -0400 From: Alon Levy To: qemu-devel@nongnu.org Date: Wed, 23 May 2012 14:17:08 +0300 Message-Id: <1337771828-27030-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 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] 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 --- 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..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"