From patchwork Thu Aug 25 13:44: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: 9299397 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 E125C60459 for ; Thu, 25 Aug 2016 13:50:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1DC72933E for ; Thu, 25 Aug 2016 13:50:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C456929341; Thu, 25 Aug 2016 13:50:58 +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 2CC982933E for ; Thu, 25 Aug 2016 13:50:58 +0000 (UTC) Received: from localhost ([::1]:56374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcv3Z-0000EM-8G for patchwork-qemu-devel@patchwork.kernel.org; Thu, 25 Aug 2016 09:50:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcuyS-0004Cu-8H for qemu-devel@nongnu.org; Thu, 25 Aug 2016 09:45:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcuyR-0002C2-3Z for qemu-devel@nongnu.org; Thu, 25 Aug 2016 09:45:40 -0400 Received: from mail-db5eur01on0099.outbound.protection.outlook.com ([104.47.2.99]:23099 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcuyK-00029K-Ty; Thu, 25 Aug 2016 09:45:33 -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=EYpxwHp9Vf1o+Yph98pDt80gFtmuPq59/9RKNUjs7pfmFxj4b5K7fZOwY1Oop0HwtdLEUp82KVry63ackB4Vibl3Je6AeIOIIMvFQ1qboD+SdsDVzn/Xo5w7w5l2KkqLTRmHm21wTYrOKWhRNktZrbogVFKsQpre4JXz1gaXqJI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pbutsykin@virtuozzo.com; Received: from pavelb-Z68P-DS3.sw.ru (195.214.232.10) by DB6PR0802MB2549.eurprd08.prod.outlook.com (10.172.251.147) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.9; Thu, 25 Aug 2016 13:45:30 +0000 From: Pavel Butsykin To: , Date: Thu, 25 Aug 2016 16:44:03 +0300 Message-ID: <20160825134421.20231-5-pbutsykin@virtuozzo.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160825134421.20231-1-pbutsykin@virtuozzo.com> References: <20160825134421.20231-1-pbutsykin@virtuozzo.com> MIME-Version: 1.0 X-Originating-IP: [195.214.232.10] X-ClientProxiedBy: AMSPR02CA0013.eurprd02.prod.outlook.com (10.242.225.141) To DB6PR0802MB2549.eurprd08.prod.outlook.com (10.172.251.147) X-MS-Office365-Filtering-Correlation-Id: 8d9b702b-6699-43ab-b7aa-08d3ccee14a0 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802M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B0f8T8=; 4:aCnGSTgpcAnmB3EwhE3WqSsGcdPVOScCNFfNNSQxCRts+uHaHtzG4esZQ5xC4CRWlKoYHVOUHba8zAWFpLhB66FrAFlYYdg3HZDsKtsty09bmZ5b/g3+Fg2AlYOizs2c9cvQVK1Aww8JQ/F5VtXWuO3Vw1pDsKpE8sSNmELXPy5ao6MyyBHihtedsuscyllo4A1nBMAR8fd2nuRMUKfnIyK8cxcSATlqrfARYRHoNbkFzWT+6Rt+BygQrvjOwof5qyS+Bg5ngnx/2lbNt6IUz/Kdi3m/Tus6EC+Js5plMFES3jPE7GzRYqxSCtNtBa91+qVHpEw09LXTlQrYR5RuEJzYfgMj5c7curORKXE/aUJO7j+Ejqhgys7G5mhpmVjdx+0rBCjhVvXirJHvpMJdPp+Dpk09Y5IftcRvIxXoz14= 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)(6043046)(6042046); SRVR:DB6PR0802MB2549; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0802MB2549; X-Forefront-PRVS: 0045236D47 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(86362001)(33646002)(1076002)(69596002)(5003940100001)(42186005)(68736007)(189998001)(92566002)(66066001)(106356001)(47776003)(6116002)(3846002)(586003)(36756003)(5001770100001)(97736004)(2906002)(4326007)(2950100001)(5660300001)(76176999)(48376002)(53416004)(105586002)(50466002)(81156014)(8676002)(50226002)(77096005)(81166006)(19580405001)(50986999)(229853001)(101416001)(7846002)(7736002)(305945005)(19580395003)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0802MB2549; H:pavelb-Z68P-DS3.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DB6PR0802MB2549; 23:GgZhuB4wIftlj94b+DnkfVIsvUSvX10dpc+1K0d?= =?us-ascii?Q?PbNPqOYjNTnp2zvrEX9KMxMr7J8KjxEKsCOXwTeuFbbSNFFszR2NzwzPaVfi?= =?us-ascii?Q?BiPz831tgV3kECrkfk1h2aKLh9ANVrbS9UA/PPVW4xVeRweYfwa9U44XDAKq?= =?us-ascii?Q?+BkvqZp8HJFcjB/N0ds0yKPvdMp1vwfTUskf9mk150SJLzF6CgfPC2y2TsUv?= =?us-ascii?Q?Z4OqH1H7JxYwZx5QcM2sUb1SCEK3RN7OFqEw1oiUtheQD2bSOULcMjhjOFnT?= =?us-ascii?Q?jbw2YHtj8KyenXm3dznPagCOPwgC6bgaru+1AzzxliIUmDPk656VsTWikg2I?= =?us-ascii?Q?i4xpLdKNyFoDwhosepnFOe3H3h9pLaWPoXfXPPNZYpu4QoXu+/+1i4hxtCkz?= =?us-ascii?Q?p34y9Ncbb9HZeIZ7g9V57+o1dkk5NtoWkxmj1gFDWEgBwVa/NVDLKyaGpwjS?= =?us-ascii?Q?WvlB/k7RBQ72MYJsmTC5g9PNy0bGCJsyiXRYZfnDXs5yZ7hruZaFhSJzsCjX?= =?us-ascii?Q?iM4aWAbghZqyITBqBsRNEzZnzt583/rAyLsuKhKuolbbsc5s4D66xI8daJT+?= =?us-ascii?Q?8+QT4zMkszpXaNIu+b5Kv71oA18TvYx6fxmTw2iKftf2b0BVAVvaL6pY0DJ/?= =?us-ascii?Q?AtfAORGjEOBffQxx/+13jQgcBMB9p3LAaZnU9ryWx2ZIQER5y4lGBpeK3R+K?= =?us-ascii?Q?WY3e3qQjyq597nQ74LiYpdcfn0zcCdL1LHMTDwcOyDwCV1a7CLr2mnzCFsml?= =?us-ascii?Q?fq30SlK+s8SkDEjDSavjDLhYnuxKw/ERdIt6VjKiMGCbeiMVjPob/uSJujGE?= =?us-ascii?Q?6xIizdMjF4IdEx5A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qUQ820FDp1TqhCxMIXdVal22HEjH7DtWlN7EYuFfD8NNlcHnIVuWqYbdjNdtpoYBFzPrW7KbeM55SpYXTCEe+dDLHyXrTVPIVCIlklfxsV16q74vTrqA/qchcp3P+jIgJp0QNbC+03fczw9+A2BHcN3WR23C95GzZVlqCPdqWdyF/1mKLV326ONcBsuyfDEFvs4OZ04M48jQ3Mezp6bs07b6Kc8ay2ZdsMbsKJ9sHNzUdjDjlyHEq6qMXdVz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0802MB2549; 20:+HMpO5fvjcYnL/Xej9+7q18jOMkBbwld8QnM/C1Fl4jSWsEokPB1pdeUUBjju6E1vNLOvpMZ/8AqO8T70+tUM0NbZPQICKdm2B+enddoU223Fc0N2j1J4r9E4oKZ34UVaPzPdJfomi7cfvxN3rvBXmg19Cqw2K8Uo+6Me1bSSX8= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2016 13:45:30.2936 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2549 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.2.99 Subject: [Qemu-devel] [PATCH RFC 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, den@openvz.org, jsnow@redhat.com, stefanha@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;