From patchwork Mon Jun 6 16:55:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 99043 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 509E9B6F9B for ; Tue, 7 Jun 2011 07:22:18 +1000 (EST) Received: from localhost ([::1]:35114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QThFW-0004Ye-I8 for incoming@patchwork.ozlabs.org; Mon, 06 Jun 2011 17:22:14 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTe29-0002DW-16 for qemu-devel@nongnu.org; Mon, 06 Jun 2011 13:56:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTe27-0004te-16 for qemu-devel@nongnu.org; Mon, 06 Jun 2011 13:56:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTe26-0004tG-CL for qemu-devel@nongnu.org; Mon, 06 Jun 2011 13:56:10 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p56Hu26M012088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 6 Jun 2011 13:56:09 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p56GxBp3027265; Mon, 6 Jun 2011 12:59:11 -0400 Received: from amt.cnet (vpn1-5-196.ams2.redhat.com [10.36.5.196]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p56GxAjD017683; Mon, 6 Jun 2011 12:59:11 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id BF9046520D3; Mon, 6 Jun 2011 13:58:56 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.5/8.14.5/Submit) id p56GwtPp030326; Mon, 6 Jun 2011 13:58:55 -0300 Message-Id: <20110606165823.717709551@amt.cnet> User-Agent: quilt/0.48-1 Date: Mon, 06 Jun 2011 13:55:40 -0300 From: Marcelo Tosatti To: qemu-devel@nongnu.org References: <20110606165536.581119615@amt.cnet> Content-Disposition: inline; filename=blkdebug-add-points X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 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, Marcelo Tosatti , Jes.Sorensen@redhat.com, dlaor@redhat.com, avi@redhat.com, jdenemar@redhat.com 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)