From patchwork Tue Aug 8 21:45:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Ostrovsky X-Patchwork-Id: 9889125 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 81D03603F9 for ; Tue, 8 Aug 2017 21:46:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 748E22890F for ; Tue, 8 Aug 2017 21:46:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65AE628A39; Tue, 8 Aug 2017 21:46: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=-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 22B8D28A32 for ; Tue, 8 Aug 2017 21:46:10 +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 1dfCHB-00082U-VE; Tue, 08 Aug 2017 21:42:57 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfCHA-0007zi-KS for xen-devel@lists.xen.org; Tue, 08 Aug 2017 21:42:56 +0000 Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id EF/D3-01729-0603A895; Tue, 08 Aug 2017 21:42:56 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsUyZ7p8oG6cQVe kwa1VchZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8bcY3fZCn6zVlzp+MrUwHiVpYuRi0NIYBKT xMyNvUwQzi9GiTO7uqEy6xklWjf9Z4ZwehglepbdZO9i5ORgEzCSOHt0OiOILSIgLXHt82VGk CJmgWlMEnu/vQNLCAsESmz5/4oNxGYRUJVY2LyHFcTmFfCS2L/2OROILSGgIDHl4XtmEJtTwF ti5oW/LCC2EFDNjMlTmSFqjCXa315km8DIt4CRYRWjRnFqUVlqka6RsV5SUWZ6RkluYmaOrqG BqV5uanFxYnpqTmJSsV5yfu4mRmC41DMwMO5g3NHud4hRkoNJSZR3k3ZnpBBfUn5KZUZicUZ8 UWlOavEhRhkODiUJXnb9rkghwaLU9NSKtMwcYODCpCU4eJREeLlB0rzFBYm5xZnpEKlTjMYcT R+2fGHieDXh/zcmIZa8/LxUKXHeu3pApQIgpRmleXCDYBF1iVFWSpiXkYGBQYinILUoN7MEVf 4VozgHo5IwbxzIQp7MvBK4fa+ATmECOiXCtxPklJJEhJRUA6O0qq3Mx2+P16yxbpbIUlmhyTn l0qtf9rxu7nu+2GuqbzFN4ts3O2m3QteRz1K+diZb5+8X+Xueq/a2fI/fTqeYI9fjTmzbYzLz +tucmz+tO+pXfXKdcMtWWYJ9nnKXQUVAyLXFbzocr7dM3u/b/OXp5c0+K/mnWm0Ufr7yx77vz N/yKi+d8xNUYinOSDTUYi4qTgQAuNeVzaMCAAA= X-Env-Sender: boris.ostrovsky@oracle.com X-Msg-Ref: server-7.tower-206.messagelabs.com!1502228572!103534338!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 63846 invoked from network); 8 Aug 2017 21:42:54 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-7.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 8 Aug 2017 21:42:54 -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 v78Lgjt4032378 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 8 Aug 2017 21:42:46 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v78Lgjmn027754 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 8 Aug 2017 21:42:45 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v78LgiIV031730; Tue, 8 Aug 2017 21:42:44 GMT Received: from ovs104.us.oracle.com (/10.149.76.204) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 08 Aug 2017 14:42:44 -0700 From: Boris Ostrovsky To: xen-devel@lists.xen.org Date: Tue, 8 Aug 2017 17:45:06 -0400 Message-Id: <1502228707-31883-9-git-send-email-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1502228707-31883-1-git-send-email-boris.ostrovsky@oracle.com> References: <1502228707-31883-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] [PATCH v7 8/9] 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 726f857..675ac0d 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -2314,6 +2314,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)