How to dump physical address during execution time?

jeng (jeng@ccit.edu.tw)
Wed, 5 Jan 2000 16:51:36 +0800


Dear all:

Under Linux operating system, I want to dump the physical address of
processes.
I also do not have any emulation tool to do the job. The network is simply
too slow to download.
I also want to know when will the Linux swap another page.
I knew that the paging mechanism can be found in the following directory:
linux-2.x.x/mm
linux-2.x.x/include/asm-i386
The major programs include:
linux-2.x.x/mm/
memory.c page_alloc.c vmalloc.c vmscan.c
swap.c
linux-2.x.x/include/asm-i386:
pgtable.h
During execution time, I've been able to dump some information like:
(through modifying the Linux source code)

address is 8089010 and shifted is 20 and pgd is 3f92000
pgd_offset is 3f92080
The pmd_offset dir is 3f92080
dir is 3f92080 and *dir is 3f71067 and pmd_page(dir) is 3f71000
The address before is 8089010 and calculated is 89
The pte_offset is 3f71224

In other words, even I can dump the addresses of :
pgd : page directory
pmd : page middle directory
pte : page table
I still cannot obtain the physical address during the program execution
time.

Can anyone provide some idea about it?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/