diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-09-25 15:38:41 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-09-25 15:38:41 +0200 |
commit | 8ff751a496bca1089f297adc0ff5ca65a0e6be24 (patch) | |
tree | e79dc7f142c486439d07a5331f9648f687c6d6ac /testsuite/buildok | |
parent | e8a9b507f1235e7a86a8a37fe0fc08dc519b8001 (diff) | |
download | systemtap-steved-8ff751a496bca1089f297adc0ff5ca65a0e6be24.tar.gz systemtap-steved-8ff751a496bca1089f297adc0ff5ca65a0e6be24.tar.xz systemtap-steved-8ff751a496bca1089f297adc0ff5ca65a0e6be24.zip |
Purge warnings from buildok testsuite.
* testsuite/buildok/fortysix.stp: Add -w.
* testsuite/buildok/fortytwo.stp: Likewise.
* testsuite/buildok/four.stp: Avoid empty begin.
* testsuite/buildok/memory-all-probes.stp: Add -w.
* testsuite/buildok/nfsd-all-probes.stp: Likewise.
* testsuite/buildok/nine.stp: Likewise.
* testsuite/buildok/one.stp: Use q.
* testsuite/buildok/printf.stp: Remove unused foo(), printf x.
* testsuite/buildok/process-all-probes.stp: Add -w.
* testsuite/buildok/scheduler-all-probes.stp: Likewise.
* testsuite/buildok/scsi-all-probes.stp: Likewise.
* testsuite/buildok/signal-all-probes.stp: Likewise.
* testsuite/buildok/sixteen.stp: log in foo().
* testsuite/buildok/socket-all-probes.stp: Add -w.
* testsuite/buildok/stat_insert.stp: Declare x, y global.
* testsuite/buildok/syscall.stp: Add -w.
* testsuite/buildok/tcp-all-probes.stp: Likewise.
* testsuite/buildok/thirtyone.stp: Likewise.
* testsuite/buildok/twentyeight.stp: log absolute.
* testsuite/buildok/twentyfour.stp: Add -w.
* testsuite/buildok/udp-all-probes.stp: Likewise.
* testsuite/buildok/vfs-all-probes.stp: Likewise.
Diffstat (limited to 'testsuite/buildok')
-rwxr-xr-x | testsuite/buildok/fortysix.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/fortytwo.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/four.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/memory-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/nfsd-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/nine.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/one.stp | 1 | ||||
-rwxr-xr-x | testsuite/buildok/printf.stp | 6 | ||||
-rwxr-xr-x | testsuite/buildok/process-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/scheduler-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/scsi-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/signal-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/sixteen.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/socket-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/stat_insert.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/syscall.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/tcp-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/thirtyone.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/twentyeight.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/twentyfour.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/udp-all-probes.stp | 2 | ||||
-rwxr-xr-x | testsuite/buildok/vfs-all-probes.stp | 2 |
22 files changed, 23 insertions, 24 deletions
diff --git a/testsuite/buildok/fortysix.stp b/testsuite/buildok/fortysix.stp index 013ca5bc..4714283b 100755 --- a/testsuite/buildok/fortysix.stp +++ b/testsuite/buildok/fortysix.stp @@ -1,3 +1,3 @@ -#! stap -p4 +#! stap -wp4 // PR 3498 + wildcarded modules probe module("*scsi*").function("*").call { } diff --git a/testsuite/buildok/fortytwo.stp b/testsuite/buildok/fortytwo.stp index c37d19af..a59df7ab 100755 --- a/testsuite/buildok/fortytwo.stp +++ b/testsuite/buildok/fortytwo.stp @@ -7,7 +7,7 @@ set -e fn="do_readv_writev@fs/read_write.c" var="file" -fullfn=`stap -p2 -e 'probe kernel.statement("'$fn'") {}' | grep kernel | cut -f2 -d'"'` +fullfn=`stap -wp2 -e 'probe kernel.statement("'$fn'") {}' | grep kernel | cut -f2 -d'"'` lineno=`echo $fullfn | cut -f2 -d:` echo "$0: $fn found, starting line $lineno" diff --git a/testsuite/buildok/four.stp b/testsuite/buildok/four.stp index 7ecbc5c8..d8b8eefd 100755 --- a/testsuite/buildok/four.stp +++ b/testsuite/buildok/four.stp @@ -8,5 +8,5 @@ probe module("ext3").function("*") ? /*to avoid empty file*/ probe begin { - + log("begin") } diff --git a/testsuite/buildok/memory-all-probes.stp b/testsuite/buildok/memory-all-probes.stp index 2b7845bc..df82ae05 100755 --- a/testsuite/buildok/memory-all-probes.stp +++ b/testsuite/buildok/memory-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in memory.stp are resolvable. diff --git a/testsuite/buildok/nfsd-all-probes.stp b/testsuite/buildok/nfsd-all-probes.stp index 9a290bed..c9363007 100755 --- a/testsuite/buildok/nfsd-all-probes.stp +++ b/testsuite/buildok/nfsd-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in nfsd.stp are resolvable. diff --git a/testsuite/buildok/nine.stp b/testsuite/buildok/nine.stp index a0ca1d40..a9146bf1 100755 --- a/testsuite/buildok/nine.stp +++ b/testsuite/buildok/nine.stp @@ -1,4 +1,4 @@ -#! stap -p2 +#! stap -wp2 function f () { } function g (arg) { } diff --git a/testsuite/buildok/one.stp b/testsuite/buildok/one.stp index 76cdcca8..f5a8825c 100755 --- a/testsuite/buildok/one.stp +++ b/testsuite/buildok/one.stp @@ -20,6 +20,7 @@ probe begin q = baz[223] print("hello from systemtap\n") + print(q) } diff --git a/testsuite/buildok/printf.stp b/testsuite/buildok/printf.stp index 481892a2..aa533f9d 100755 --- a/testsuite/buildok/printf.stp +++ b/testsuite/buildok/printf.stp @@ -1,14 +1,10 @@ #! stap -p4 # test the translatability of the formatted printing operators - -function foo() { - return 10 -} - probe begin { x = sprintf("take %d steps forward, %d steps back\n", 3, 2) + printf("%s", x); printf("take %d steps forward, %d steps back\n", 3, 2) printf("take %d steps forward, %d steps back\n", 3+1, 2*2) diff --git a/testsuite/buildok/process-all-probes.stp b/testsuite/buildok/process-all-probes.stp index c754462b..354945b6 100755 --- a/testsuite/buildok/process-all-probes.stp +++ b/testsuite/buildok/process-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in the process tapset are resolvable. diff --git a/testsuite/buildok/scheduler-all-probes.stp b/testsuite/buildok/scheduler-all-probes.stp index 0e06997b..7d4ae2c9 100755 --- a/testsuite/buildok/scheduler-all-probes.stp +++ b/testsuite/buildok/scheduler-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in the scheduler tapset are resolvable. diff --git a/testsuite/buildok/scsi-all-probes.stp b/testsuite/buildok/scsi-all-probes.stp index d23759c1..84c6eb84 100755 --- a/testsuite/buildok/scsi-all-probes.stp +++ b/testsuite/buildok/scsi-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in the scsi tapset are resolvable. diff --git a/testsuite/buildok/signal-all-probes.stp b/testsuite/buildok/signal-all-probes.stp index 6e7a080a..ed4faf5f 100755 --- a/testsuite/buildok/signal-all-probes.stp +++ b/testsuite/buildok/signal-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in the signal tapset are resolvable. diff --git a/testsuite/buildok/sixteen.stp b/testsuite/buildok/sixteen.stp index 97721a2d..b5c6ca75 100755 --- a/testsuite/buildok/sixteen.stp +++ b/testsuite/buildok/sixteen.stp @@ -3,7 +3,7 @@ global a function foo () { - if (a[4] == "sayonara") { return 2 } + if (a[4] == "sayonara") { return 2 } else { log ("no sayonara") } } diff --git a/testsuite/buildok/socket-all-probes.stp b/testsuite/buildok/socket-all-probes.stp index 3fe9d488..916ee719 100755 --- a/testsuite/buildok/socket-all-probes.stp +++ b/testsuite/buildok/socket-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in the socket tapset are resolvable. diff --git a/testsuite/buildok/stat_insert.stp b/testsuite/buildok/stat_insert.stp index 7d7eb98e..9915910b 100755 --- a/testsuite/buildok/stat_insert.stp +++ b/testsuite/buildok/stat_insert.stp @@ -10,6 +10,8 @@ global linemap global numbers global strings +global x, y + function wibble() { i = 0 diff --git a/testsuite/buildok/syscall.stp b/testsuite/buildok/syscall.stp index 2fdab5b0..b3af7100 100755 --- a/testsuite/buildok/syscall.stp +++ b/testsuite/buildok/syscall.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 probe syscall.*, syscall.*.return { if (retstr != "") diff --git a/testsuite/buildok/tcp-all-probes.stp b/testsuite/buildok/tcp-all-probes.stp index dec6ecf7..9ec9ace5 100755 --- a/testsuite/buildok/tcp-all-probes.stp +++ b/testsuite/buildok/tcp-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in the tcp tapset are resolvable. diff --git a/testsuite/buildok/thirtyone.stp b/testsuite/buildok/thirtyone.stp index a3afd519..ccba6609 100755 --- a/testsuite/buildok/thirtyone.stp +++ b/testsuite/buildok/thirtyone.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 probe kprobe.function("vfs_stat") {} probe kprobe.function("do_sys_open") {} diff --git a/testsuite/buildok/twentyeight.stp b/testsuite/buildok/twentyeight.stp index 03946bb0..381419a3 100755 --- a/testsuite/buildok/twentyeight.stp +++ b/testsuite/buildok/twentyeight.stp @@ -1,3 +1,3 @@ #! stap -gp4 -probe kernel.statement(0).absolute { } +probe kernel.statement(0).absolute { log("absolute zero reached") } diff --git a/testsuite/buildok/twentyfour.stp b/testsuite/buildok/twentyfour.stp index a889fe56..40df6fae 100755 --- a/testsuite/buildok/twentyfour.stp +++ b/testsuite/buildok/twentyfour.stp @@ -1,4 +1,4 @@ -#! stap -gp4 +#! stap -wgp4 # If the optimizer is working, this function will get elided, # and thus will compile successfully. diff --git a/testsuite/buildok/udp-all-probes.stp b/testsuite/buildok/udp-all-probes.stp index 6e421c7e..dde26842 100755 --- a/testsuite/buildok/udp-all-probes.stp +++ b/testsuite/buildok/udp-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in the udp tapset are resolvable. diff --git a/testsuite/buildok/vfs-all-probes.stp b/testsuite/buildok/vfs-all-probes.stp index d6b6fb0b..bc6b3b72 100755 --- a/testsuite/buildok/vfs-all-probes.stp +++ b/testsuite/buildok/vfs-all-probes.stp @@ -1,4 +1,4 @@ -#! stap -p4 +#! stap -wp4 // Tests if all probes in the vfs.stp are resolvable. |