[PATCH] add page lookup to page command

Anton Blanchard anton at samba.org
Thu Mar 4 13:03:29 EST 2004



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

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list