Retrieving filename / inode from page fault probe

Yunchih Chen yunchih.cat@gmail.com
Sun May 28 15:40:00 GMT 2017


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!



More information about the Systemtap mailing list