From patchwork Mon May 23 21:31:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 97073 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EEFB7B6FB1 for ; Tue, 24 May 2011 07:36:32 +1000 (EST) Received: from localhost ([::1]:49391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOcne-0008PC-BA for incoming@patchwork.ozlabs.org; Mon, 23 May 2011 17:36:30 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOclv-0005is-W3 for qemu-devel@nongnu.org; Mon, 23 May 2011 17:34:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOclu-0001rj-3u for qemu-devel@nongnu.org; Mon, 23 May 2011 17:34:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOclt-0001rH-IV for qemu-devel@nongnu.org; Mon, 23 May 2011 17:34:41 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4NLYdkC021676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 23 May 2011 17:34:39 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4NLYdFg031226; Mon, 23 May 2011 17:34:39 -0400 Received: from amt.cnet (vpn-11-169.rdu.redhat.com [10.11.11.169]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p4NLYcVB004476; Mon, 23 May 2011 17:34:38 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 440AC6520E8; Mon, 23 May 2011 18:34:23 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.4/8.14.4/Submit) id p4NLYMKH004596; Mon, 23 May 2011 18:34:22 -0300 Message-Id: <20110523213410.863618890@amt.cnet> User-Agent: quilt/0.48-1 Date: Mon, 23 May 2011 18:31:19 -0300 From: Marcelo Tosatti To: qemu-devel@nongnu.org References: <20110523213115.164535428@amt.cnet> Content-Disposition: inline; filename=blkdebug-add-points X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, Jes.Sorensen@redhat.com, dlaor@redhat.com, avi@redhat.com, Marcelo Tosatti Subject: [Qemu-devel] [patch 4/7] Add blkdebug points for live block copy 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: Marcelo Tosatti Index: qemu-block-copy/block.h =================================================================== --- qemu-block-copy.orig/block.h +++ qemu-block-copy/block.h @@ -295,6 +295,14 @@ typedef enum { BLKDBG_CLUSTER_ALLOC_BYTES, BLKDBG_CLUSTER_FREE, + BLKDBG_BLKCOPY_STAGE_BULK, + BLKDBG_BLKCOPY_STAGE_BULK_FINISHED, + BLKDBG_BLKCOPY_STAGE_DIRTY, + BLKDBG_BLKCOPY_STAGE_MIRROR_WRITES, + BLKDBG_BLKCOPY_STAGE_SWITCH_FINISHED, + BLKDBG_BLKCOPY_SWITCH_START, + BLKDBG_BLKCOPY_AIO_WRITE, + BLKDBG_EVENT_MAX, } BlkDebugEvent; Index: qemu-block-copy/block/blkdebug.c =================================================================== --- qemu-block-copy.orig/block/blkdebug.c +++ qemu-block-copy/block/blkdebug.c @@ -178,6 +178,15 @@ static const char *event_names[BLKDBG_EV [BLKDBG_CLUSTER_ALLOC] = "cluster_alloc", [BLKDBG_CLUSTER_ALLOC_BYTES] = "cluster_alloc_bytes", [BLKDBG_CLUSTER_FREE] = "cluster_free", + + + [BLKDBG_BLKCOPY_STAGE_BULK] = "blkcopy_stage_bulk", + [BLKDBG_BLKCOPY_STAGE_BULK_FINISHED] = "blkcopy_stage_bulk_finished", + [BLKDBG_BLKCOPY_STAGE_DIRTY] = "blkcopy_stage_dirty", + [BLKDBG_BLKCOPY_STAGE_MIRROR_WRITES] = "blkcopy_stage_mirror_writes", + [BLKDBG_BLKCOPY_STAGE_SWITCH_FINISHED] = "blkcopy_stage_switch_finished", + [BLKDBG_BLKCOPY_SWITCH_START] = "blkcopy_switch_start", + [BLKDBG_BLKCOPY_AIO_WRITE] = "blkcopy_aio_write", }; static int get_event_by_name(const char *name, BlkDebugEvent *event)