Page faults

Paddie O'Brien paddieobrien@gmail.com
Mon Sep 9 20:36:00 GMT 2013


Hi,

I run the attached to print out the offsets of faulting pages. Both
probes should (I think) print the same number but instead I get this:

hello: filemap_fault
Page: 1678263179
hello: find_get_page
Page: 15

hello: filemap_fault
Page: 1678263179
hello: find_get_page
Page: 1

hello: filemap_fault
Page: 1678263179
hello: find_get_page
Page: 10

etc. etc.

Both functions are from mm/filemap.c. filemap_fault does this:

pgoff_t offset = vmf->offset;
find_get_page(mapping, offset);

Basically, printing the offset in find_get_page works but printing
vmf->offset in filemap_fault doesn't.

Why?

Thanks,
P
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pages.stp
Type: application/octet-stream
Size: 330 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20130909/e9abb2ac/attachment.obj>


More information about the Systemtap mailing list