From ac505f97f1e85d95c9fe2b0401a375c2c8cd1cb9 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 16 Sep 2009 15:52:17 -0700 Subject: Add the badname.stp example This is a toy script I wrote a while back to demonstrate how SystemTap could be used to enforce filesystem naming rules. --- testsuite/systemtap.examples/general/badname.meta | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testsuite/systemtap.examples/general/badname.meta (limited to 'testsuite/systemtap.examples/general/badname.meta') diff --git a/testsuite/systemtap.examples/general/badname.meta b/testsuite/systemtap.examples/general/badname.meta new file mode 100644 index 00000000..9b4e7390 --- /dev/null +++ b/testsuite/systemtap.examples/general/badname.meta @@ -0,0 +1,13 @@ +title: Bad Filename Filter +name: badname.stp +version: 1.0 +keywords: filesystem hack +author: Josh Stone +subsystem: filesystem +status: experimental +exit: user-controlled +output: none +scope: system-wide +description: The badname.stp script shows how one could prevent the creation of files with undesirable names. +test_check: stap -p4 badname.stp +test_installcheck: stap badname.stp -c "sleep 0.2" -- cgit From 15a53fb7e8f0e3eb7cc2476d390da7f8a06d2c5f Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 17 Sep 2009 15:30:56 +0200 Subject: Mark badname example as needing guru mode in meta file so it doesn't FAIL. --- testsuite/systemtap.examples/general/badname.meta | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuite/systemtap.examples/general/badname.meta') diff --git a/testsuite/systemtap.examples/general/badname.meta b/testsuite/systemtap.examples/general/badname.meta index 9b4e7390..9a01763c 100644 --- a/testsuite/systemtap.examples/general/badname.meta +++ b/testsuite/systemtap.examples/general/badname.meta @@ -8,6 +8,6 @@ status: experimental exit: user-controlled output: none scope: system-wide -description: The badname.stp script shows how one could prevent the creation of files with undesirable names. -test_check: stap -p4 badname.stp -test_installcheck: stap badname.stp -c "sleep 0.2" +description: The badname.stp script shows how one could prevent the creation of files with undesirable names using guru mode. +test_check: stap -g -p4 badname.stp +test_installcheck: stap -g badname.stp -c "sleep 0.2" -- cgit