public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* help-inode-watch error
@ 2006-03-30 11:31 Kevin Jia
  2006-03-30 14:48 ` William Cohen
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Jia @ 2006-03-30 11:31 UTC (permalink / raw)
  To: systemtap

inode-watch.stp  (in systemtap tutorial) source code:

probe kernel.function ("vfs_write"),
      kernel.function ("vfs_read")
{
        dev_nr = $file->f_dentry->d_inode->i_sb->s_dev
        inode_nr = $file->f_dentry->d_inode->i_ino
        if (dev_nr == ($1 << 20 | $2) && inode_nr == $3)
        printf ("%s(%d) %s 0x%x/%u\n",
        execname(), pid(), probefunc(), dev_nr, inode_nr)
}

but have errors about $1,$2,$3, the information:

semantic error: unable to find local '1' near pc 0xc015b304:
identifier '$1' at inode-watch.stp:7:17
semantic error: unable to find local '2' near pc 0xc015b304:
identifier '$2' at inode-watch.stp:7:28
semantic error: unable to find local '3' near pc 0xc015b304:
identifier '$3' at inode-watch.stp:7:47
semantic error: due to failed target variable resolution
semantic error: no match for probe point
         while: resolving probe point kernel.function("vfs_write")
semantic error: unable to find local '1' near pc 0xc015b096:
identifier '$1' at inode-watch.stp:7:17
semantic error: unable to find local '2' near pc 0xc015b096:
identifier '$2' at inode-watch.stp:7:28
semantic error: unable to find local '3' near pc 0xc015b096:
identifier '$3' at inode-watch.stp:7:47
semantic error: due to failed target variable resolution
semantic error: no match for probe point
         while: resolving probe point kernel.function("vfs_read")
Pass 2: analysis failed.  Try again with '-v' (verbose) option.

Why? Thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-31  3:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-30 11:31 help-inode-watch error Kevin Jia
2006-03-30 14:48 ` William Cohen
     [not found]   ` <30c154100603301724u4a967b8bgab10156c5d4befca@mail.gmail.com>
2006-03-31  3:45     ` William Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).