]> sourceware.org Git - systemtap.git/commitdiff
none
authorfche <fche>
Thu, 18 Aug 2005 01:14:52 +0000 (01:14 +0000)
committerfche <fche>
Thu, 18 Aug 2005 01:14:52 +0000 (01:14 +0000)
testsuite/buildok/thirteen.stp [new file with mode: 0755]
testsuite/semok/seventeen.stp

diff --git a/testsuite/buildok/thirteen.stp b/testsuite/buildok/thirteen.stp
new file mode 100755 (executable)
index 0000000..1113913
--- /dev/null
@@ -0,0 +1,6 @@
+#! stap -p4
+
+probe kernel.function("sys_read")
+{
+ log ("count=" . string($count))
+}
index 4ea039271f6f7d47681ab9c0f08f2500544613c5..dcb269525ad448b846e921a88341bca34f64bad5 100755 (executable)
@@ -5,6 +5,7 @@ probe kernel.function("pipe_writev")
 {
    a = $nr_segs
    foo [a] = 1
-   # $nr_segs is not an lvalue here
+   # $nr_segs is not an lvalue here (foo is), so this should compile
+   # even in non-guru mode
    foo [$nr_segs] ++
 }
This page took 0.0268 seconds and 5 git commands to generate.