From patchwork Wed Jan 16 15:48:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Beno=C3=AEt_Canet?= X-Patchwork-Id: 212936 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 B36822C0085 for ; Thu, 17 Jan 2013 05:22:13 +1100 (EST) Received: from localhost ([::1]:58469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvVHX-0000IW-8h for incoming@patchwork.ozlabs.org; Wed, 16 Jan 2013 10:52:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvVHI-0008Hu-3R for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:51:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvVH8-0005o1-7h for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:51:48 -0500 Received: from nodalink.pck.nerim.net ([62.212.105.220]:42988 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvVH7-0005nv-Vi for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:51:38 -0500 Received: by paradis.irqsave.net (Postfix, from userid 1002) id DA021874324; Wed, 16 Jan 2013 17:23:13 +0100 (CET) Received: from localhost.localdomain (unknown [192.168.77.1]) by paradis.irqsave.net (Postfix) with ESMTP id 47876874343; Wed, 16 Jan 2013 17:19:49 +0100 (CET) From: =?UTF-8?q?Beno=C3=AEt=20Canet?= To: qemu-devel@nongnu.org Date: Wed, 16 Jan 2013 16:48:21 +0100 Message-Id: <1358351321-4891-43-git-send-email-benoit@irqsave.net> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1358351321-4891-1-git-send-email-benoit@irqsave.net> References: <1358351321-4891-1-git-send-email-benoit@irqsave.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 62.212.105.220 Cc: kwolf@redhat.com, pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com Subject: [Qemu-devel] [RFC V5 42/62] qcow2: Count QCowHashNode creation metrics. 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 --- block/qcow2-dedup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/qcow2-dedup.c b/block/qcow2-dedup.c index 0f095a9..d22e2a4 100644 --- a/block/qcow2-dedup.c +++ b/block/qcow2-dedup.c @@ -289,6 +289,7 @@ static void qcow2_build_and_insert_hash_node(BlockDriverState *bs, QCOW_FLAG_EMPTY, QCOW_FLAG_EMPTY); g_tree_insert(s->dedup_tree_by_hash, &hash_node->hash, hash_node); + s->dedup_metrics.ram_hash_creations++; } /* @@ -1043,6 +1044,7 @@ static void qcow2_dedup_insert_hash_node(BlockDriverState *bs, g_tree_insert(s->dedup_tree_by_hash, &hash_node->hash, hash_node); g_tree_insert(s->dedup_tree_by_sect, &hash_node->physical_sect, hash_node); + s->dedup_metrics.ram_hash_creations++; } /* This load the QCowHashNode corresponding to a given cluster index into ram