From patchwork Fri May 19 15:50:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Ostrovsky X-Patchwork-Id: 9737511 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 1154C6020B for ; Fri, 19 May 2017 15:52:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 137BA28174 for ; Fri, 19 May 2017 15:52:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 085E62836D; Fri, 19 May 2017 15:52:27 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8BF4F28174 for ; Fri, 19 May 2017 15:52:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBkA3-0000i2-SA; Fri, 19 May 2017 15:49:51 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBkA2-0000gA-7N for xen-devel@lists.xen.org; Fri, 19 May 2017 15:49:50 +0000 Received: from [193.109.254.147] by server-9.bemta-6.messagelabs.com id CE/2F-03557-D141F195; Fri, 19 May 2017 15:49:49 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgkeJIrShJLcpLzFFi42LpnVTnqisrIh9 p8K6BxWLJx8UsDoweR3f/ZgpgjGLNzEvKr0hgzbh84xxjwW/Wimc74hoYr7J0MXJxCAlMZpKY 2bmYEcL5xijxd9MXqMwGRomt/c/YIJweRomPrSeBHE4ONgEjibNHpzOC2CIC0hLXPl8Ga2cWa GCSeH7uIFhCWCBQYt/ZM2A2i4CqxPp5u1lAbF4BL4mXz7rB4hICChJTHr5nBrE5Bbwl3kyaxQ piCwHV/JrVxwpRYyzR/vYi2wRGvgWMDKsY1YtTi8pSi3QN9ZKKMtMzSnITM3N0DQ3M9HJTi4s T01NzEpOK9ZLzczcxAkOFAQh2MO587nSIUZKDSUmU1/GwXKQQX1J+SmVGYnFGfFFpTmrxIUYZ Dg4lCV5LYflIIcGi1PTUirTMHGDQwqQlOHiURHj/CQGleYsLEnOLM9MhUqcYdTnm3Pv6nkmIJ S8/L1VKnPcDSJEASFFGaR7cCFgEXWKUlRLmZQQ6SoinILUoN7MEVf4VozgHo5Iw7w2QKTyZeS Vwm14BHcEEdETzA2mQI0oSEVJSDYweF3QmeJ98FL6r+snaIp6wW5P4AuIvVJznV9IRq5nRL+J XWvF3fUblSh4HjVWexkkrxXpUlWoefwm2WW+f6DZfvcZVuYsvUO56r4BF4Bvt938utcRZrBQ2 4TrNHl0vbrpi1pl5gvcKNWT3OybLR75UEqh05v23x9S69HLW/Nu7I0uTXogIKbEUZyQaajEXF ScCAGmdoeCbAgAA X-Env-Sender: boris.ostrovsky@oracle.com X-Msg-Ref: server-2.tower-27.messagelabs.com!1495208987!43755568!1 X-Originating-IP: [141.146.126.69] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTQxLjE0Ni4xMjYuNjkgPT4gMjc3MjE4\n X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 55201 invoked from network); 19 May 2017 15:49:48 -0000 Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by server-2.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 19 May 2017 15:49:48 -0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v4JFniDu027920 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 19 May 2017 15:49:44 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v4JFnhpq029929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 19 May 2017 15:49:44 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id v4JFnfEi008612; Fri, 19 May 2017 15:49:42 GMT Received: from ovs104.us.oracle.com (/10.149.76.204) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 19 May 2017 08:49:41 -0700 From: Boris Ostrovsky To: xen-devel@lists.xen.org Date: Fri, 19 May 2017 11:50:39 -0400 Message-Id: <1495209040-11101-8-git-send-email-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1495209040-11101-1-git-send-email-boris.ostrovsky@oracle.com> References: <1495209040-11101-1-git-send-email-boris.ostrovsky@oracle.com> X-Source-IP: aserv0022.oracle.com [141.146.126.234] Cc: sstabellini@kernel.org, wei.liu2@citrix.com, George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com, tim@xen.org, jbeulich@suse.com, Boris Ostrovsky Subject: [Xen-devel] [PATCH v4 7/8] mm: Print number of unscrubbed pages in 'H' debug handler X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Boris Ostrovsky Reviewed-by: Wei Liu --- xen/common/page_alloc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index b365305..e744d81 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -2292,6 +2292,13 @@ static void dump_heap(unsigned char key) printk("heap[node=%d][zone=%d] -> %lu pages\n", i, j, avail[i][j]); } + + for ( i = 0; i < MAX_NUMNODES; i++ ) + { + if ( !node_need_scrub[i] ) + continue; + printk("Node %d has %lu unscrubbed pages\n", i, node_need_scrub[i]); + } } static __init int register_heap_trigger(void)