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@us.ibm.com
(503)578-3789

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility