* [RFC][PATCH 2/2] kexec: Export PG_hwpoison flag into vmcoreinfo
@ 2012-10-30 14:08 ` Mitsuhiro Tanino
0 siblings, 0 replies; 2+ messages in thread
From: Mitsuhiro Tanino @ 2012-10-30 14:08 UTC (permalink / raw)
To: kexec, linux-kernel; +Cc: Eric W. Biederman
This patch exports a PG_hwpoison into vmcoreinfo when
CONFIG_MEMORY_FAILURE is defined.
"makedumpfile" needs to read information of memory, such as
'mem_section', 'zone', 'pageflags' from vmcore.
We introduce a new "-p" option into "makedumpfile" to
exclude hwpoison page from vmcore dump.
In order to introduce this feature, PG_hwpoison flag have
to export into vmcoreinfo.
Signed-off-by: Mitsuhiro Tanino <mitsuhiro.tanino.gm@hitachi.com>
---
kernel/kexec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 0668d58..0d5d6bc 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -1513,6 +1513,9 @@ static int __init crash_save_vmcoreinfo_init(void)
VMCOREINFO_NUMBER(PG_lru);
VMCOREINFO_NUMBER(PG_private);
VMCOREINFO_NUMBER(PG_swapcache);
+#ifdef CONFIG_MEMORY_FAILURE
+ VMCOREINFO_NUMBER(PG_hwpoison);
+#endif
arch_crash_save_vmcoreinfo();
update_vmcoreinfo_note();
--
1.7.10.1
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [RFC][PATCH 2/2] kexec: Export PG_hwpoison flag into vmcoreinfo
@ 2012-10-30 14:08 ` Mitsuhiro Tanino
0 siblings, 0 replies; 2+ messages in thread
From: Mitsuhiro Tanino @ 2012-10-30 14:08 UTC (permalink / raw)
To: kexec, linux-kernel; +Cc: Eric W. Biederman
This patch exports a PG_hwpoison into vmcoreinfo when
CONFIG_MEMORY_FAILURE is defined.
"makedumpfile" needs to read information of memory, such as
'mem_section', 'zone', 'pageflags' from vmcore.
We introduce a new "-p" option into "makedumpfile" to
exclude hwpoison page from vmcore dump.
In order to introduce this feature, PG_hwpoison flag have
to export into vmcoreinfo.
Signed-off-by: Mitsuhiro Tanino <mitsuhiro.tanino.gm@hitachi.com>
---
kernel/kexec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/kexec.c b/kernel/kexec.c
index 0668d58..0d5d6bc 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -1513,6 +1513,9 @@ static int __init crash_save_vmcoreinfo_init(void)
VMCOREINFO_NUMBER(PG_lru);
VMCOREINFO_NUMBER(PG_private);
VMCOREINFO_NUMBER(PG_swapcache);
+#ifdef CONFIG_MEMORY_FAILURE
+ VMCOREINFO_NUMBER(PG_hwpoison);
+#endif
arch_crash_save_vmcoreinfo();
update_vmcoreinfo_note();
--
1.7.10.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-30 14:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30 14:08 [RFC][PATCH 2/2] kexec: Export PG_hwpoison flag into vmcoreinfo Mitsuhiro Tanino
2012-10-30 14:08 ` Mitsuhiro Tanino
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.