[Crash-utility] Need to update page->flags

Dave Anderson anderson at redhat.com
Tue Mar 21 20:19:38 UTC 2006


David Wilder wrote:

> The definitions for page->flags in crash are no longer correct in crash
> resulting in incorrect output for the kmem -i command.   The page flags
> are currently defined for V22 V24 and one flag for V26.    The flag
> definitions are changing in the 2.6 kernel often, crash will need to
> update these definitions for each 2.6.x.  Yuck!    Can we limit the flag
> definitions to just a few kernel versions?  Any suggestions on what
> versions we should have definitions for?
>

I've long since been keeping up with these, because most
of the hardwired page flag definitions that are #define'd
in memory.c are not used anymore.  For example, there's
this construct in dump_mem_map() which just displays the
hex value:

  if (v22) {
       ...translate hardwired flags...
  } else if (THIS_KERNEL_VERSION > LINUX(2,4,9)) {
       fprintf(fp, "%lx\n", flags);
  } else {
       ...translate old hardwired 2.4 flags...
  }

But there are a few other places that need to know about
specific flags, like PG_reserved and PG_slab for example,
whose bits get determined in vm_init().  Which one has
changed that upsets "kmem -i"?

Dave

>
> --
> David Wilder
> IBM Linux Technology Center
> Beaverton, Oregon, USA
> dwilder at us.ibm.com
> (503)578-3789
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20060321/a7896397/attachment.htm>


More information about the Crash-utility mailing list