All of lore.kernel.org
 help / color / mirror / Atom feed
* Save PG_compound or PG_head value in VMCOREINFO
@ 2012-11-27 14:13 ` Petr Tesarik
  0 siblings, 0 replies; 6+ messages in thread
From: Petr Tesarik @ 2012-11-27 14:13 UTC (permalink / raw)
  To: Eric Biederman, kexec; +Cc: linux-kernel

To allow filtering of huge pages, makedumpfile must be able to identify
them in the dump. This can be done by checking for the appropriate
page flag, so communicate its value to makedumpfile through the VMCOREINFO 
interface.

Signed-off-by: Petr Tesarik <ptesarik@suse.cz>

---
 kernel/kexec.c |    5 +++++
 1 file changed, 5 insertions(+)

--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -1511,6 +1511,11 @@ static int __init crash_save_vmcoreinfo_
 	VMCOREINFO_NUMBER(NR_FREE_PAGES);
 	VMCOREINFO_NUMBER(PG_lru);
 	VMCOREINFO_NUMBER(PG_private);
+#ifdef CONFIG_PAGEFLAGS_EXTENDED
+	VMCOREINFO_NUMBER(PG_head);
+#else
+	VMCOREINFO_NUMBER(PG_compound);
+#endif
 	VMCOREINFO_NUMBER(PG_swapcache);
 
 	arch_crash_save_vmcoreinfo();


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-28  9:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 14:13 Save PG_compound or PG_head value in VMCOREINFO Petr Tesarik
2012-11-27 14:13 ` Petr Tesarik
2012-11-27 21:25 ` Eric W. Biederman
2012-11-27 21:25   ` Eric W. Biederman
2012-11-28  9:50   ` Petr Tesarik
2012-11-28  9:50     ` Petr Tesarik

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.