diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | testsuite/systemtap.base/global_end.exp | 11 | ||||
-rw-r--r-- | testsuite/systemtap.base/global_end2.stp | 8 | ||||
-rw-r--r-- | testsuite/systemtap.examples/ChangeLog | 11 | ||||
-rwxr-xr-x | testsuite/systemtap.examples/io/iotop.stp | 4 | ||||
-rwxr-xr-x | testsuite/systemtap.examples/io/traceio.stp | 4 | ||||
-rwxr-xr-x | testsuite/systemtap.examples/io/traceio2.stp | 4 | ||||
-rw-r--r-- | testsuite/systemtap.printf/char1.stp | 5 |
8 files changed, 46 insertions, 11 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 2ec0fb0e..ec4cc401 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,4 +1,12 @@ -2008-10-20 Elliott Baron <ebaron@redhat.com> +2008-10-27 Josh Stone <joshua.i.stone@intel.com> + + * systemtap.printf/char1.stp: Expose i686 failure + +2008-10-27 Rajan Arora <rarora@redhat.com> + + * systemtap.base/global_end.exp: Spawn global_end2.stp + +2008-10-20 Elliott Baron <ebaron@redhat.com> PR6851 * systemtap.printf/char1.exp: New test. diff --git a/testsuite/systemtap.base/global_end.exp b/testsuite/systemtap.base/global_end.exp index b6b9fd30..b811bfff 100644 --- a/testsuite/systemtap.base/global_end.exp +++ b/testsuite/systemtap.base/global_end.exp @@ -23,4 +23,13 @@ expect { eof { } } wait -if {$ok == 11} { pass "$test ($ok)" } { fail "$test ($ok)" } + +spawn stap $srcdir/$subdir/global_end2.stp +# above should not do any tapset global variable display so +# ok should only change by 1 +expect { + -timeout 180 + -re {Avg time = ?} { incr ok; exp_continue } +} + +if {$ok == 12} { pass "$test ($ok)" } { fail "$test ($ok)" } diff --git a/testsuite/systemtap.base/global_end2.stp b/testsuite/systemtap.base/global_end2.stp new file mode 100644 index 00000000..f170a8fe --- /dev/null +++ b/testsuite/systemtap.base/global_end2.stp @@ -0,0 +1,8 @@ +probe begin { + qsq_start("test") + qs_wait("test") + qs_run("test") + qs_done("test") + log(sprintf("Avg time = %d", qsq_service_time("test", 1))) + exit() +} diff --git a/testsuite/systemtap.examples/ChangeLog b/testsuite/systemtap.examples/ChangeLog index 8d434357..3a0afda4 100644 --- a/testsuite/systemtap.examples/ChangeLog +++ b/testsuite/systemtap.examples/ChangeLog @@ -1,3 +1,14 @@ +2008-10-27 William Cohen <wcohen@redhat.com> + + * io/disktop.stp: Make use of devname added to vfs tapset. + +2008-10-24 William Cohen <wcohen@redhat.com> + + * io/traceio.stp: + * io/traceio2.stp: + * io/iotop.stp: + * io/disktop.stp: Use vfs tapset rather than kernel functions probes. + 2008-09-12 Frank Ch. Eigler <fche@elastic.org> * io/traceio2.stp: Make compatible with RHEL5. diff --git a/testsuite/systemtap.examples/io/iotop.stp b/testsuite/systemtap.examples/io/iotop.stp index 2fa3e3ae..f868169b 100755 --- a/testsuite/systemtap.examples/io/iotop.stp +++ b/testsuite/systemtap.examples/io/iotop.stp @@ -2,11 +2,11 @@ global reads, writes, total_io -probe kernel.function("vfs_read") { +probe vfs.read { reads[execname()] += $count } -probe kernel.function("vfs_write") { +probe vfs.write { writes[execname()] += $count } diff --git a/testsuite/systemtap.examples/io/traceio.stp b/testsuite/systemtap.examples/io/traceio.stp index cb667be5..4ca4dd4c 100755 --- a/testsuite/systemtap.examples/io/traceio.stp +++ b/testsuite/systemtap.examples/io/traceio.stp @@ -9,11 +9,11 @@ global reads, writes, total_io -probe kernel.function("vfs_read").return { +probe vfs.read.return { reads[execname()] += $return } -probe kernel.function("vfs_write").return { +probe vfs.write.return { writes[execname()] += $return } diff --git a/testsuite/systemtap.examples/io/traceio2.stp b/testsuite/systemtap.examples/io/traceio2.stp index 988ea36c..91445d3e 100755 --- a/testsuite/systemtap.examples/io/traceio2.stp +++ b/testsuite/systemtap.examples/io/traceio2.stp @@ -9,8 +9,8 @@ probe begin { device_of_interest = MKDEV(MAJOR(dev), MINOR(dev)) } -probe kernel.function ("vfs_write"), - kernel.function ("vfs_read") +probe vfs.write, + vfs.read { dev_nr = $file-> %( kernel_v < "2.6.19" %? f_dentry %: f_path->dentry %) diff --git a/testsuite/systemtap.printf/char1.stp b/testsuite/systemtap.printf/char1.stp index d7db1288..207d1bc5 100644 --- a/testsuite/systemtap.printf/char1.stp +++ b/testsuite/systemtap.printf/char1.stp @@ -2,8 +2,7 @@ probe begin { printf("%c", 115) printf("%c", 116) - printf("%c", 97) - printf("%c", 112) + printf("%c%c", 97, 112) print("\n") exit() -}
\ No newline at end of file +} |