kdb
[Top] [All Lists]

Re: [PATCH] add page lookup to page command

To: linas@xxxxxxxxxxxxxx
Subject: Re: [PATCH] add page lookup to page command
From: Anton Blanchard <anton@xxxxxxxxx>
Date: Thu, 4 Mar 2004 13:03:29 +1100
Cc: kaos@xxxxxxx, kdb@xxxxxxxxxxx, linuxppc64-dev@xxxxxxxxxxxxxxxxxx
In-reply-to: <20040303191207.N74832@xxxxxxxxxxxxxxxxxxxx>
References: <20040303191207.N74832@xxxxxxxxxxxxxxxxxxxx>
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.5.1+cvs20040105i
 
Hi Linas,

> The attached patch adds support for automatic struct page * lookup
> for the 'page' command.  By typing 'page -s <vaddr>', it will find
> the mem_map[] entry that corresponds to vaddr, and display that.
> (To do this manually is a bit tedious; besides chasing non-exported
> symbols in System.map, one has to do some hex multiplication by
> sizeof(struct page); so this patch automates that.)

We cant play with mem_map directly when NUMA/DISCONTIGMEM is enabled,
check out discontigmem_pfn_to_page for the nasty details.

Anton
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>