<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
David Wilder wrote:
<blockquote TYPE=CITE>The definitions for page->flags in crash are no longer
correct in crash
<br>resulting in incorrect output for the kmem -i command.  
The page flags
<br>are currently defined for V22 V24 and one flag for V26.   
The flag
<br>definitions are changing in the 2.6 kernel often, crash will need to
<br>update these definitions for each 2.6.x.  Yuck!   
Can we limit the flag
<br>definitions to just a few kernel versions?  Any suggestions on
what
<br>versions we should have definitions for?
<br><tt></tt> </blockquote>
<tt>I've long since been keeping up with these, because most</tt>
<br><tt>of the hardwired page flag definitions that are #define'd</tt>
<br><tt>in memory.c are not used anymore.  For example, there's</tt>
<br><tt>this construct in dump_mem_map() which just displays the</tt>
<br><tt>hex value:</tt><tt></tt>
<p><tt>  if (v22) {</tt>
<br><tt>       ...translate hardwired flags...</tt>
<br><tt>  } else if (THIS_KERNEL_VERSION > LINUX(2,4,9)) {</tt>
<br><tt>       fprintf(fp, "%lx\n", flags);</tt>
<br><tt>  } else {</tt>
<br><tt>       ...translate old hardwired
2.4 flags...</tt>
<br><tt>  }</tt><tt></tt>
<p><tt>But there are a few other places that need to know about</tt>
<br><tt>specific flags, like PG_reserved and PG_slab for example,</tt>
<br><tt>whose bits get determined in vm_init().  Which one has</tt>
<br><tt>changed that upsets "kmem -i"?</tt><tt></tt>
<p><tt>Dave</tt>
<blockquote TYPE=CITE> 
<br>--
<br>David Wilder
<br>IBM Linux Technology Center
<br>Beaverton, Oregon, USA
<br>dwilder@us.ibm.com
<br>(503)578-3789
<p>--
<br>Crash-utility mailing list
<br>Crash-utility@redhat.com
<br><a href="https://www.redhat.com/mailman/listinfo/crash-utility">https://www.redhat.com/mailman/listinfo/crash-utility</a></blockquote>
</html>