From patchwork Mon Aug 29 17:10:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Butsykin X-Patchwork-Id: 9304539 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9193D6077C for ; Mon, 29 Aug 2016 21:49:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81F5926E5D for ; Mon, 29 Aug 2016 21:49:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 76800289C6; Mon, 29 Aug 2016 21:49:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D84A826E5D for ; Mon, 29 Aug 2016 21:49:11 +0000 (UTC) Received: from localhost ([::1]:45901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beUQY-0000pF-VQ for patchwork-qemu-devel@patchwork.kernel.org; Mon, 29 Aug 2016 17:49:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beUNX-0006UX-Uv for qemu-devel@nongnu.org; Mon, 29 Aug 2016 17:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1beUNU-0002n5-SQ for qemu-devel@nongnu.org; Mon, 29 Aug 2016 17:46:03 -0400 Received: from mail-eopbgr10098.outbound.protection.outlook.com ([40.107.1.98]:47456 helo=EUR02-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1beUNN-0002l3-Eb; Mon, 29 Aug 2016 17:45:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YtO8Vsj7qfRVNYZxysdY/u0HMlnFi63L8mYoNb7Xggo=; b=MS1kQ9URJoGV5xYAyEf/+oh+cUllXlUKyxdez6DtQqLS7hloXmMgMPYH0x1Og5pwYqcSCNUWL+lgNlT8cTiP6nU9qxsMEW3gDRnDHBxZ6dypzXEAkKGl8aMLxKDH8puB1qYKfZNvJstScErZs5x5N2qVO7JwRaoBs0WyUQTnNe4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pbutsykin@virtuozzo.com; Received: from pavelb-Z68P-DS3.sw.ru (195.214.232.10) by AM5PR0802MB2547.eurprd08.prod.outlook.com (10.175.45.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.13; Mon, 29 Aug 2016 17:11:18 +0000 From: Pavel Butsykin To: , Date: Mon, 29 Aug 2016 20:10:03 +0300 Message-ID: <20160829171021.4902-5-pbutsykin@virtuozzo.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160829171021.4902-1-pbutsykin@virtuozzo.com> References: <20160829171021.4902-1-pbutsykin@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.10] X-ClientProxiedBy: AM5PR0901CA0011.eurprd09.prod.outlook.com (10.164.186.149) To AM5PR0802MB2547.eurprd08.prod.outlook.com (10.175.45.23) X-MS-Office365-Filtering-Correlation-Id: 9bd3df87-8245-4862-96d1-08d3d02f7e0f X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802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qrYn+CBzwboiyys0rnE5jWXIV6YPwbtMz1Qw8E1v/t5Hwb1w4ekdXX6UbJ4lG8uqe4uwklNbfe8YB7CMCSirYSBGvXYzrzxgXFg==; 31:AK5R92ubMQwqJvLWvh2GSRT0OzfyZKXexTxVFWQEXcO9eczIjqiA+5ONKx745nYwfpsUzKP8A2Nb+7wniE7b5vRPt+OADZsHrGkgtXIzS3nTMBRospwjOYb9FfMaZHAKzvCpOxS7mLcFJLtj8BbYJam/fV/w8Iq85E5Avdb1MVQTq6pAMP9pl1dvevB7h2QsMYovrn+0EIOQQWapQDRdvUysNUOV0hB6cYU0atfNeSk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6042046)(6043046); SRVR:AM5PR0802MB2547; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0802MB2547; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2547; 4:tDeSRQuWuVMKuv9mF1zl2tU9T8AByMLE985CEkfMmdvfowAPZBcf9egw50j2M+GqTbNJk1bOMy3F71DXU7+cVNf2ge1mNQ2qjeSfac3RagoeAY44g/aUFHaa3igbDrmoxchdfIxszMLpXszkwnFX7jDlF+SvkvuUKMIpGaxunmYmwN32kH7dsH/w2+ygS6RTTUSOub4JYHWlGu+9bmMg0Tj9ifo1mkDqFuvm5hFc5fZPTep5HbdRyDHo8s1aVuQn/5B17Z0uwN2Jk80QqDX4Dt4Fk2AnGPB60nnklDx344SOWEIbIlS005slnH4kaH5rakMw8RUxjm9LI52vZg/BRB+tCl79nskdOhT1rVKd0VdQxslpzNps2T/uP6+1XjLyPZohtbDedIHSAcm7i08/nJEEYuQnIf1hRyFSdjuJYl4= X-Forefront-PRVS: 0049B3F387 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(3846002)(305945005)(77096005)(86362001)(1076002)(53416004)(92566002)(68736007)(42186005)(97736004)(5001770100001)(47776003)(105586002)(2906002)(6116002)(189998001)(50986999)(4326007)(48376002)(586003)(2950100001)(5003940100001)(50466002)(66066001)(19580405001)(19580395003)(76176999)(69596002)(5660300001)(229853001)(101416001)(36756003)(7736002)(8676002)(106356001)(50226002)(7846002)(81156014)(33646002)(81166006)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0802MB2547; H:pavelb-Z68P-DS3.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0802MB2547; 23:rDKQ+71aUuktk1k09anprOcdRGa/LY+70VjxVWe?= =?us-ascii?Q?yzxeqzVMkACgxwP4/d+Amt8wIaQb727teE5av7ywFxfMdHoBHcVIGlaqyeTv?= =?us-ascii?Q?RCg3khVV7U3LIOqaEdEXMorhK61UfCa2ViIOMp0wiscDd5VDppr2A98iaEoK?= =?us-ascii?Q?SmNEt25KmGOELMhlmqvBUHkGo8IF9EttWcT54zUVkrwCPokOMoG4+tGSx45o?= =?us-ascii?Q?bJstJyBCTZUhmfcn/I/QxCth25z2pj09Bnw7Td8T4eizhBg0r8rN32G1EgQa?= =?us-ascii?Q?p2mjmDH2RZfTfbVcLnDSDaNdefyiyKePsA/67N5zNpliKYaI/eyTSLUtt14v?= =?us-ascii?Q?SG+Ag2dKZs0NvXHbWtpwfFhl5axZA6xE10jUsSJPxNYtgBw2k6NpTiLdji69?= =?us-ascii?Q?vPsZi6Bf3L1OzKB0anT2pMjcOnIvIq+sw5GZxefzxwCuWFZO+/107ERNkjF1?= =?us-ascii?Q?t0+5YjV5ay9/k/Q8GGgJMuXLqgipAz6B7HXxXtqhMqZtpf7Md84+1eNYgjWv?= =?us-ascii?Q?BicJTCDEcUiy9SWeNNosN4p7wvPNLkV8v6EwY1EvvpiA4Qyrqul1fMUzkhfW?= =?us-ascii?Q?E/9OqSLl4w5UOjegBc/Y4JoWVFWd/yXb4ayImbjoZ7LilOLgea3lKFgyf8PV?= =?us-ascii?Q?JHliaUx6VC4JtrB2rOcT1alxz350CwV8G4Mpd0QgLgQFE5rdAYYA1V44HQpB?= =?us-ascii?Q?RipJDrP5BOJLd412jF5JVG821Spy2BeOju4EEkMZKmSNUI8ynRDadjB2AIf7?= =?us-ascii?Q?CzebpTblLXn7LlDTqX6MbjPgdhJQOR0RvRxE67uUhttxhILA6fYheDDYj/Bg?= =?us-ascii?Q?Op3sPEsaOMIqlCjeKa+jSmtXrN9mvngXG19haHw1bJIEcPfxdrLzs26ch6KJ?= =?us-ascii?Q?7Ddz/sjTFQhUMHIdhxo3Pu5EeA41CAHktXmkaosHjdBKsu8neMbwD0yJgR3b?= =?us-ascii?Q?il4QsJPn8r+TuApivc/cJ5mFC+xGye9dvLUrqkzCkywCPPmXWQrf0lfuWO4V?= =?us-ascii?Q?HtqDsUeCkRoq7ChMhiN0cLUP318OXYXLnf+VcoQ9pE1R0YwXagI/+6POUJj1?= =?us-ascii?Q?zcyx4xDKNca7tOmJWbybzVd6mngQGdm3v2l6c9WJyVmQrnvsF66Uy9JPwuHA?= =?us-ascii?Q?zgur8EExk1nTOtJVO6DLIiSP+w8FHDYctNl2J+ZQpEgAeTzUrnzWclA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2547; 6:ygL/XAtB0hFFi7Kbv+aAS2aAjzD2RStdbA20bLiCDvpb1kFfuTMCCILeCzOQkZzRxRXCN8CEZxTPMXZxIiyG3QUe2+EpohMorllLR6higw8K9oGnaalel+G3D2ZvDokqcCO7lze7Xd415iv2AXJ0RndcZEJnvLX1Itl8NMLRzsjweV6QfXkHU5Atd6qk+RrDpNEqcDveaqt7YwiQ27jCWWxsQ+dg1akEdak3TKWphPpJyRFnLTxja7c67sx0BtjX5U3bFe3Wa21IJMPQx1VrT5pvsp9La6SLh+J65/Xg4ypNdSN6aTxSR4rOd+9E3gTo; 5:kO+7MKYeDAXJoQXs1froIpkxMynCc7/A3nYJf6Y7xUIhrdG7yk2eyftOqSvHl4ksuRckmfC5UoNptaLiRAKd7dn9lYK0uhFHge+r1/vZCw1NTrwB/gt+BrX6BkfSA4YF4O+hBx/C6hFti61AeXnKTg==; 24:Gv0eOu72X73Tn5Hn4QJh9YGPCERE874CDKo7P7FDlM9kzlgZm7UkGnMTZAGT/T0UQmAZUTyUI6ICLM42hrh1h+KMPBhtUZcF1cjvf4xavds=; 7:Y7OcnQKmlvIRmnIC42SN4mLwEyqRD5/O8TRTF8ceYyseAsF1KQMYuqssnz5/L8/il2SUzeVefvXTx3sZvN04PUd2sMrskD5JSBhOhSSNi2bAjYmaT12Ll33n0hs9WOniGBgPf1/9rwmBdvMW/XHLskX83ujAst8Pkwo0HGFl1RuNMF0xvPUYAWMa2TqV7gBeTwCngspWiCwB9+hA433e3yZQlv/k15FtR67dF6AlidCUKyMSucPWr97yJC08QmpJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2547; 20:G0oWg4TePoIk9kfsmTDR+pTXSPqeXFAh8EuPdq+1n9RHC3O138DX+7/SemxZfxZZJLPnD32RdlxTrE2CNX3hkilI/6BW25b+vKujPsHQtJWv7a6pBy2Z5EglESjiOpBk1vEzsiEVblLaZhRSq1kOU2egynTpF12mkhY/RA2Hq2g= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2016 17:11:18.0948 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2547 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.107.1.98 Subject: [Qemu-devel] [PATCH RFC v2 04/22] block/pcache: add pcache debug build X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, famz@redhat.com, mreitz@redhat.com, stefanha@redhat.com, den@openvz.org, jsnow@redhat.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Pavel Butsykin --- block/pcache.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/block/pcache.c b/block/pcache.c index 74a4bc4..7f221d6 100644 --- a/block/pcache.c +++ b/block/pcache.c @@ -28,6 +28,15 @@ #include "qapi/error.h" #include "qapi/qmp/qstring.h" +#define PCACHE_DEBUG + +#ifdef PCACHE_DEBUG +#define DPRINTF(fmt, ...) \ + printf("%s:%s:%d "fmt, __FILE__, __func__, __LINE__, ## __VA_ARGS__) +#else +#define DPRINTF(fmt, ...) do { } while (0) +#endif + typedef struct PrefCacheAIOCB { BlockAIOCB common;