* buildok/twenty.stp, semok/seventeen.stp: Adapt to kernel 2.6.20.
+2007-03-09 Pierre Peiffer <pierre.peiffer@bull.net>
+
+ * buildok/twenty.stp, semok/seventeen.stp: Adapt to kernel 2.6.20.
+
2007-03-19 David Smith <dsmith@redhat.com>
* .cvsignore: Added systemtap.syscall test programs.
probe kernel.function("vfs_readdir")
{
+%( kernel_v >= "2.6.20" %?
+ $file->f_path->dentry->d_name->len = 1
+%:
$file->f_dentry->d_name->len = 1
+%)
}
#! stap -p2
global foo
-probe kernel.function("pipe_writev")
+probe kernel.function(
+%( kernel_v < "2.6.19" %? "pipe_writev" %: "pipe_write" %) )
{
a = $nr_segs
foo [a] = 1