From 41d9243cc9d107d1980e18537090ed358dc7920a Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 21 Apr 2009 10:49:15 -0500 Subject: Updated utrace tests. 2009-04-21 David Smith * testsuite/semok/utrace01.stp: New test. * testsuite/parseko/utrace01.stp: Updated test. * testsuite/semko/utrace03.stp: Ditto. * testsuite/semko/utrace04.stp: Ditto. * testsuite/semko/utrace01.stp: Deleted unneeded test. * testsuite/semko/utrace08.stp: Ditto. * testsuite/semko/utrace09.stp: Ditto. * testsuite/semko/utrace10.stp: Ditto. * testsuite/semko/utrace11.stp: Ditto. * testsuite/semko/utrace12.stp: Ditto. * testsuite/semko/utrace13.stp: Ditto. --- testsuite/parseko/utrace01.stp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/parseko') diff --git a/testsuite/parseko/utrace01.stp b/testsuite/parseko/utrace01.stp index 1cb4227f..9f3619b5 100755 --- a/testsuite/parseko/utrace01.stp +++ b/testsuite/parseko/utrace01.stp @@ -1,4 +1,4 @@ #! stap -p2 # process NAME must be a string -probe process(/bin/cat).death { } +probe process(/bin/cat).end { } -- cgit From f90da452b402af56c7f186798911ca5f49ee0cc4 Mon Sep 17 00:00:00 2001 From: Keiichi KII Date: Wed, 13 May 2009 16:55:11 -0400 Subject: PR 6930: Add additional testcases for flight recorder mode * testsuite/parseko/cmdline17.stp: command line check - bad combination with -D and -L * testsuite/parseko/cmdline18.stp: command line check - bad combination with -D and -d * testsuite/parseko/cmdline19.stp: command line check - bad combination with -D and -c * testsuite/parseko/cmdline20.stp: command line check - need output file with -D * testsuite/parseko/cmdline21.stp: command line check - need output file with -S * testsuite/systemtap.base/flightrec3.exp: New test case for file switching with bulk mode * testsuite/systemtap.base/flightrec3.stp: Test script for file switching per cpu --- testsuite/parseko/cmdline17.stp | 8 ++++++++ testsuite/parseko/cmdline18.stp | 10 ++++++++++ testsuite/parseko/cmdline19.stp | 10 ++++++++++ testsuite/parseko/cmdline20.stp | 9 +++++++++ testsuite/parseko/cmdline21.stp | 15 +++++++++++++++ 5 files changed, 52 insertions(+) create mode 100644 testsuite/parseko/cmdline17.stp create mode 100644 testsuite/parseko/cmdline18.stp create mode 100644 testsuite/parseko/cmdline19.stp create mode 100644 testsuite/parseko/cmdline20.stp create mode 100644 testsuite/parseko/cmdline21.stp (limited to 'testsuite/parseko') diff --git a/testsuite/parseko/cmdline17.stp b/testsuite/parseko/cmdline17.stp new file mode 100644 index 00000000..a9baf2d4 --- /dev/null +++ b/testsuite/parseko/cmdline17.stp @@ -0,0 +1,8 @@ +#!/bin/sh + +# options '-D' and '-L' are mutually exclusive +# +#-D Run in background. This requires '-o' option. +#-L Load module and start probes, then detach. + +staprun -L -D fake_module diff --git a/testsuite/parseko/cmdline18.stp b/testsuite/parseko/cmdline18.stp new file mode 100644 index 00000000..bbdfbcc5 --- /dev/null +++ b/testsuite/parseko/cmdline18.stp @@ -0,0 +1,10 @@ +#!/bin/sh + +# options '-D' and '-d' are mutually exclusive +# +#-D Run in background. This requires '-o' option. +#-d Delete a module. Only detached or unused modules +# the user has permission to access will be deleted. Use "*" +# (quoted) to delete all unused modules. + +staprun -d -D fake_module diff --git a/testsuite/parseko/cmdline19.stp b/testsuite/parseko/cmdline19.stp new file mode 100644 index 00000000..fbcef351 --- /dev/null +++ b/testsuite/parseko/cmdline19.stp @@ -0,0 +1,10 @@ +#!/bin/sh + +# options '-D' and '-c cmd' are mutually exclusive +# +#-D Run in background. This requires '-o' option. +#-c cmd Command 'cmd' will be run and staprun will +# exit when it does. The '_stp_target' variable +# will contain the pid for the command. + +staprun -c /bin/ls -D fake_module diff --git a/testsuite/parseko/cmdline20.stp b/testsuite/parseko/cmdline20.stp new file mode 100644 index 00000000..625cf20d --- /dev/null +++ b/testsuite/parseko/cmdline20.stp @@ -0,0 +1,9 @@ +#!/bin/sh + +# You have to specify ouput FILE with '-D' option +# +#-D Run in background. This requires '-o' option. +#-o FILE Send output to FILE. This supports strftime(3) +# formats for FILE. + +staprun -D fake_module diff --git a/testsuite/parseko/cmdline21.stp b/testsuite/parseko/cmdline21.stp new file mode 100644 index 00000000..d7496c8c --- /dev/null +++ b/testsuite/parseko/cmdline21.stp @@ -0,0 +1,15 @@ +#!/bin/sh + +# You have to specify ouput FILE with '-S' option +# +#-S size[,N] Switches output file to next file when the size +# of file reaches the specified size. The value +# should be an integer greater than 1 which is +# assumed to be the maximum file size in MB. +# When the number of output files reaches N, it +# switches to the first output file. You can omit +# the second argument. +#-o FILE Send output to FILE. This supports strftime(3) +# formats for FILE. + +staprun -S 1,1 fake_module -- cgit From a193df88803615221b3a15d230ab020cf7cdf214 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 15 May 2009 12:44:03 +0200 Subject: Mark all testsuite/parseko/cmdline21.stp as executable. --- testsuite/parseko/cmdline17.stp | 0 testsuite/parseko/cmdline18.stp | 0 testsuite/parseko/cmdline19.stp | 0 testsuite/parseko/cmdline20.stp | 0 testsuite/parseko/cmdline21.stp | 0 5 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 testsuite/parseko/cmdline17.stp mode change 100644 => 100755 testsuite/parseko/cmdline18.stp mode change 100644 => 100755 testsuite/parseko/cmdline19.stp mode change 100644 => 100755 testsuite/parseko/cmdline20.stp mode change 100644 => 100755 testsuite/parseko/cmdline21.stp (limited to 'testsuite/parseko') diff --git a/testsuite/parseko/cmdline17.stp b/testsuite/parseko/cmdline17.stp old mode 100644 new mode 100755 diff --git a/testsuite/parseko/cmdline18.stp b/testsuite/parseko/cmdline18.stp old mode 100644 new mode 100755 diff --git a/testsuite/parseko/cmdline19.stp b/testsuite/parseko/cmdline19.stp old mode 100644 new mode 100755 diff --git a/testsuite/parseko/cmdline20.stp b/testsuite/parseko/cmdline20.stp old mode 100644 new mode 100755 diff --git a/testsuite/parseko/cmdline21.stp b/testsuite/parseko/cmdline21.stp old mode 100644 new mode 100755 -- cgit