From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1erdYx-00056F-SH for kexec@lists.infradead.org; Fri, 02 Mar 2018 05:49:01 +0000 From: Baoquan He Subject: [PATCH 2/4] Makedumpfile: Add pgtable_l5_enabled to number_table Date: Fri, 2 Mar 2018 13:48:39 +0800 Message-Id: <20180302054841.22195-3-bhe@redhat.com> In-Reply-To: <20180302054841.22195-1-bhe@redhat.com> References: <20180302054841.22195-1-bhe@redhat.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org Cc: douly.fnst@cn.fujitsu.com, indou.takao@jp.fujitsu.com, mas-hayashi@tg.jp.nec.com, Baoquan He , mas-tachibana@vf.jp.nec.com This is in preparation for later 5-level supporting. Signed-off-by: Baoquan He --- makedumpfile.c | 3 +++ makedumpfile.h | 1 + 2 files changed, 4 insertions(+) diff --git a/makedumpfile.c b/makedumpfile.c index ed138d3..c1e893a 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -1723,6 +1723,7 @@ get_structure_info(void) ENUM_NUMBER_INIT(NR_FREE_PAGES, "NR_FREE_PAGES"); ENUM_NUMBER_INIT(N_ONLINE, "N_ONLINE"); + ENUM_NUMBER_INIT(N_ONLINE, "pgtable_l5_enabled"); ENUM_NUMBER_INIT(PG_lru, "PG_lru"); ENUM_NUMBER_INIT(PG_private, "PG_private"); @@ -2251,6 +2252,7 @@ write_vmcoreinfo_data(void) WRITE_NUMBER("NR_FREE_PAGES", NR_FREE_PAGES); WRITE_NUMBER("N_ONLINE", N_ONLINE); + WRITE_NUMBER("N_ONLINE", pgtable_l5_enabled); WRITE_NUMBER("PG_lru", PG_lru); WRITE_NUMBER("PG_private", PG_private); @@ -2645,6 +2647,7 @@ read_vmcoreinfo(void) READ_NUMBER("NR_FREE_PAGES", NR_FREE_PAGES); READ_NUMBER("N_ONLINE", N_ONLINE); + READ_NUMBER("pgtable_l5_enabled", pgtable_l5_enabled); READ_NUMBER("PG_lru", PG_lru); READ_NUMBER("PG_private", PG_private); diff --git a/makedumpfile.h b/makedumpfile.h index 088dfc3..a0d1c13 100644 --- a/makedumpfile.h +++ b/makedumpfile.h @@ -1856,6 +1856,7 @@ struct array_table { struct number_table { long NR_FREE_PAGES; long N_ONLINE; + long pgtable_l5_enabled; /* * Page flags -- 2.13.6 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec