This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Retrieving filename / inode from page fault probe
- From: Yunchih Chen <yunchih dot cat at gmail dot com>
- To: Yun-Chih Chen <b03902074 at ntu dot edu dot tw>
- Cc: systemtap at sourceware dot org
- Date: Sun, 28 May 2017 23:40:45 +0800
- Subject: Re: Retrieving filename / inode from page fault probe
- Authentication-results: sourceware.org; auth=none
- References: <CANeCTtQnRr6BQ6T2_ySopO831Ky0a1AmMVavoe8NhCcD9OBfxw@mail.gmail.com>
Well, I have managed to make it work with the following script:
probe kernel.trace("mm_filemap_add_to_page_cache") {
if($page->mapping->host->i_ino){
f = inode_path($page->mapping->host)
printf("%s Added %s \n", tz_ctime(gettimeofday_s()), f);
}
}
Some inode turn out to be 0 and causes the read fault!