This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Retrieving filename / inode from page fault probe


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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]