This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
help-inode-watch error
- From: "Kevin Jia" <jiaminghao at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 30 Mar 2006 20:31:19 +0900
- Subject: help-inode-watch error
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=j3JeSuiY5Vch6seyRxcGGdgKRY2tdY23yeMmZW7M2AJe1CHHNyKZG8mdhy0vMCAjTlccav6sidEozI2xzddf/+aqojkB8CAkYfolycHI3VySlDBEYV/lNzzgG5QzZSW4aUBJ4E7MUbSNipYcNn/Vp89V6584Hroy3tfB4exnQA0=
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.