summaryrefslogtreecommitdiffstats
path: root/tapset/vfs.stp
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2008-08-03 21:07:10 -0400
committerWenji Huang <wenji.huang@oracle.com>2008-08-03 21:07:10 -0400
commit3611665d5350e471975c16b756ba5d414a661392 (patch)
tree3011de48289b6cd47b6eee63a62fb424cef6cb14 /tapset/vfs.stp
parent32cc940e7d1a12f3feb63fee3e7712a0a2d1e993 (diff)
downloadsystemtap-steved-3611665d5350e471975c16b756ba5d414a661392.tar.gz
systemtap-steved-3611665d5350e471975c16b756ba5d414a661392.tar.xz
systemtap-steved-3611665d5350e471975c16b756ba5d414a661392.zip
Correct several tests for 2.6.27
Diffstat (limited to 'tapset/vfs.stp')
-rw-r--r--tapset/vfs.stp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tapset/vfs.stp b/tapset/vfs.stp
index 46bc3d21..1ea8fc8e 100644
--- a/tapset/vfs.stp
+++ b/tapset/vfs.stp
@@ -744,7 +744,11 @@ probe vfs.do_mpage_readpage.return = kernel.function ("do_mpage_readpage").retur
units = "pages"
}
+%( kernel_v > "2.6.26" %?
+probe vfs.add_to_page_cache = kernel.function ("add_to_page_cache_locked")
+%:
probe vfs.add_to_page_cache = kernel.function ("add_to_page_cache")
+%)
{
dev = $mapping->host->i_sb->s_dev
devname = __find_bdevname(dev, $mapping->host->i_sb->s_bdev)
@@ -756,7 +760,12 @@ probe vfs.add_to_page_cache = kernel.function ("add_to_page_cache")
name = "vfs.add_to_page_cache"
argstr = sprintf("%d, %d", ino, index)
}
+
+%( kernel_v > "2.6.26" %?
+probe vfs.add_to_page_cache.return = kernel.function ("add_to_page_cache_locked").return
+%:
probe vfs.add_to_page_cache.return = kernel.function ("add_to_page_cache").return
+%)
{
name = "vfs.add_to_page_cache"
retstr = sprintf("%d", $return)