From: Baoquan He <bhe@redhat.com>
To: kexec@lists.infradead.org
Cc: douly.fnst@cn.fujitsu.com, indou.takao@jp.fujitsu.com,
mas-hayashi@tg.jp.nec.com, Baoquan He <bhe@redhat.com>,
mas-tachibana@vf.jp.nec.com
Subject: [PATCH 2/4] Makedumpfile: Add pgtable_l5_enabled to number_table
Date: Fri, 2 Mar 2018 13:48:39 +0800 [thread overview]
Message-ID: <20180302054841.22195-3-bhe@redhat.com> (raw)
In-Reply-To: <20180302054841.22195-1-bhe@redhat.com>
This is in preparation for later 5-level supporting.
Signed-off-by: Baoquan He <bhe@redhat.com>
---
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
next prev parent reply other threads:[~2018-03-02 5:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-02 5:48 [PATCH 0/4] Makedumpfile: Add 5-level paging support Baoquan He
2018-03-02 5:48 ` [PATCH 1/4] arch/x86_64: Cleanup the address translation of the 4-level page tables Baoquan He
2018-05-07 7:19 ` Masaki Tachibana
2018-05-07 7:30 ` Dou Liyang
2018-05-07 7:31 ` Baoquan He
2018-03-02 5:48 ` Baoquan He [this message]
2018-05-07 7:20 ` [PATCH 2/4] Makedumpfile: Add pgtable_l5_enabled to number_table Masaki Tachibana
2018-05-07 7:33 ` Dou Liyang
2018-03-02 5:48 ` [PATCH 3/4] Makedumpfile: Add a new function check_5level_paging() Baoquan He
2018-05-07 7:21 ` Masaki Tachibana
2018-05-07 8:03 ` Baoquan He
2018-03-02 5:48 ` [PATCH 4/4] arch/x86_64: Add 5-level paging support Baoquan He
2018-05-07 7:22 ` Masaki Tachibana
2018-04-12 2:45 ` [PATCH 0/4] Makedumpfile: " Baoquan He
2018-04-12 4:42 ` Masaki Tachibana
2018-04-12 4:55 ` Baoquan He
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180302054841.22195-3-bhe@redhat.com \
--to=bhe@redhat.com \
--cc=douly.fnst@cn.fujitsu.com \
--cc=indou.takao@jp.fujitsu.com \
--cc=kexec@lists.infradead.org \
--cc=mas-hayashi@tg.jp.nec.com \
--cc=mas-tachibana@vf.jp.nec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox