From: "Ken'ichi Ohmichi" <oomichi@mxs.nes.nec.co.jp>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: kexec-ml <kexec@lists.infradead.org>,
Christoph Lameter <clameter@sgi.com>
Subject: [PATCH] add page flags values to vmcoreinfo
Date: Fri, 28 Mar 2008 18:46:29 +0900 [thread overview]
Message-ID: <47ECBE75.8040101@mxs.nes.nec.co.jp> (raw)
[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]
Hi,
This patch adds some values of page flags to the vmcoreinfo data.
The vmcoreinfo data has the minimum debugging information only
for dump filtering. makedumpfile (dump filtering command) gets
it to distinguish unnecessary pages, and makedumpfile creates
a small dumpfile.
An old makedumpfile (v1.2.4 or before) had assumed some values
of page flags internally, and this implementation could not follow
the change of these values. For example, Christoph Lameter is
changing these values by the follwing patch:
http://lkml.org/lkml/2008/2/29/463
So a new makedumpfile (v1.2.5) came to need these values and I
created this patch to let the kernel output them. This patch is
for linux-2.6.25-rc7.
Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
---
diff -rpuN linux-2.6.25-rc6.org/kernel/kexec.c linux-2.6.25-rc6/kernel/kexec.c
--- linux-2.6.25-rc6.org/kernel/kexec.c 2008-03-19 12:12:54.000000000 +0900
+++ linux-2.6.25-rc6/kernel/kexec.c 2008-03-19 12:14:49.000000000 +0900
@@ -1406,6 +1406,9 @@ static int __init crash_save_vmcoreinfo_
VMCOREINFO_LENGTH(zone.free_area, MAX_ORDER);
VMCOREINFO_LENGTH(free_area.free_list, MIGRATE_TYPES);
VMCOREINFO_NUMBER(NR_FREE_PAGES);
+ VMCOREINFO_NUMBER(PG_lru);
+ VMCOREINFO_NUMBER(PG_private);
+ VMCOREINFO_NUMBER(PG_swapcache);
arch_crash_save_vmcoreinfo();
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next reply other threads:[~2008-03-28 9:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 9:46 Ken'ichi Ohmichi [this message]
2008-04-02 17:34 ` [PATCH] add page flags values to vmcoreinfo Vivek Goyal
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=47ECBE75.8040101@mxs.nes.nec.co.jp \
--to=oomichi@mxs.nes.nec.co.jp \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=kexec@lists.infradead.org \
/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 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.