From patchwork Wed Aug 16 18:33:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Ostrovsky X-Patchwork-Id: 9904485 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 52CA9600CA for ; Wed, 16 Aug 2017 18:33:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46EC028A40 for ; Wed, 16 Aug 2017 18:33:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BD7628A41; Wed, 16 Aug 2017 18:33:13 +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 AB83428A4B for ; Wed, 16 Aug 2017 18:33:12 +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 1di35g-0005VU-FT; Wed, 16 Aug 2017 18:30:52 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1di35f-0005U6-9q for xen-devel@lists.xen.org; Wed, 16 Aug 2017 18:30:51 +0000 Received: from [193.109.254.147] by server-8.bemta-6.messagelabs.com id DE/46-09901-A5F84995; Wed, 16 Aug 2017 18:30:50 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42KZM10+UDeyf0q kwe1behZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8azs53sBb9ZK679S21gvMrSxcjFISQwmUni 67fvbBDOX0aJNwduMUM4Gxglts2CKethlPh2YApQGScHm4CRxNmj0xlBbBEBaYlrny8zghQxC 0xjktj77R1YQlggWGLGku9gDSwCqhK/ZnwGs3kFPCVurG5kBbElBBQkpjx8zwxicwp4Sazdvg 6sRgioZsmHg8wQNcYS7W8vsk1g5FvAyLCKUaM4tagstUjXyFAvqSgzPaMkNzEzR9fQwEwvN7W 4ODE9NScxqVgvOT93EyMwWBiAYAfjn2UBhxglOZiURHm98qdECvEl5adUZiQWZ8QXleakFh9i lOHgUJLg5ewDygkWpaanVqRl5gDDFiYtwcGjJMI7owcozVtckJhbnJkOkTrFaMzR9GHLFyaOV xP+f2MSYsnLz0uVEud92wtUKgBSmlGaBzcIFk+XGGWlhHkZgU4T4ilILcrNLEGVf8UozsGoJM zLDHIPT2ZeCdy+V0CnMAGdcqV9EsgpJYkIKakGRs/Zy6o3//T0UtUr8A4zPGW2SeVnWe/ppoR MueXTI1rM5WN7Vx6J7+m2mqW4WGnmbAeD85PcP7jEpc/wva69sC0ua+L0l263XRVebHH1r9iW tyIzdn287L97dpdnfLsuLOYSkvg6gP3ezJb1q1j9l/HJ83l8894Ye/Sw29ztAmnPTyqkvHi3R 4mlOCPRUIu5qDgRAFLhewSiAgAA X-Env-Sender: boris.ostrovsky@oracle.com X-Msg-Ref: server-8.tower-27.messagelabs.com!1502908248!101210304!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18392 invoked from network); 16 Aug 2017 18:30:49 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-8.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 16 Aug 2017 18:30:49 -0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v7GIUei7022369 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Aug 2017 18:30:40 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v7GIUdho010892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Aug 2017 18:30:40 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v7GIUcqP002263; Wed, 16 Aug 2017 18:30:39 GMT Received: from ovs104.us.oracle.com (/10.149.76.204) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 Aug 2017 11:30:38 -0700 From: Boris Ostrovsky To: xen-devel@lists.xen.org Date: Wed, 16 Aug 2017 14:33:13 -0400 Message-Id: <1502908394-9760-8-git-send-email-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1502908394-9760-1-git-send-email-boris.ostrovsky@oracle.com> References: <1502908394-9760-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, julien.grall@arm.com, jbeulich@suse.com, Boris Ostrovsky Subject: [Xen-devel] [PATCHES v8 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 48798ca..34c45be 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -2308,6 +2308,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)