linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: Anatol Pomozov <anatol.pomozov@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
	gthelen@google.com, Dave Anderson <anderson@redhat.com>
Subject: Re: mm: Export 'pageflag_names' array
Date: Tue, 8 Oct 2013 16:06:04 +0800	[thread overview]
Message-ID: <20131008080604.GA4820@localhost> (raw)
In-Reply-To: <CAOMFOmWbvLCM=a2n_ojnWVeeyvMg=v1T03Q44q-q4jgR7sH+DA@mail.gmail.com>

Hi Anatol,

On Mon, Oct 07, 2013 at 10:53:32AM -0700, Anatol Pomozov wrote:
> Hi Wu
> 
> I have a request wrt your old commit 718a38211.
> 
> I think it makes sense to export array pageflag_names so kernel dump
> debug tools (like 'crash') can use it as well. Currently the tool
> hard-codes flag names but it is suboptimal as flags are different for
> different configs.
> 
> What do you think? (I can send a patch if you are ok).

I wonder if the KPF_* defined in

        include/uapi/linux/kernel-page-flags.h

fit your needs. These are kernel page flags exported to the user space
and will be maintained stable and immune to kconfig changes. You can
find use examples of them in

        fs/proc/page.c
        tools/vm/page-types.c

Thanks,
Fengguang

  reply	other threads:[~2013-10-08  8:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-07 17:53 mm: Export 'pageflag_names' array Anatol Pomozov
2013-10-08  8:06 ` Fengguang Wu [this message]
2013-10-08 12:40   ` Dave Anderson
2013-10-08 18:28     ` Anatol Pomozov
2013-10-08 18:37       ` Dave Anderson

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=20131008080604.GA4820@localhost \
    --to=fengguang.wu@intel.com \
    --cc=anatol.pomozov@gmail.com \
    --cc=anderson@redhat.com \
    --cc=gthelen@google.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).