summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-31 15:29:08 -0700
committerJosh Stone <jistone@redhat.com>2010-03-31 15:29:08 -0700
commit8a5f80d8b69c9d3497887c21dba64b5604651d17 (patch)
treef233bcc3ae1945f60871d41c406c9125f317c316
parent4df79aaf86a9b6dfbccc3c51946024a30ba43726 (diff)
downloadsystemtap-steved-8a5f80d8b69c9d3497887c21dba64b5604651d17.tar.gz
systemtap-steved-8a5f80d8b69c9d3497887c21dba64b5604651d17.tar.xz
systemtap-steved-8a5f80d8b69c9d3497887c21dba64b5604651d17.zip
Use a different PATH approach for pfiles
//bin/true && exec stap -g $0 ${1+"$@"} This keeps it as an entirely valid stap script, so manual stap invocation still works (as in pfiles.meta).
-rwxr-xr-xtestsuite/systemtap.examples/process/pfiles.stp7
1 files changed, 2 insertions, 5 deletions
diff --git a/testsuite/systemtap.examples/process/pfiles.stp b/testsuite/systemtap.examples/process/pfiles.stp
index e7a16732..ac137887 100755
--- a/testsuite/systemtap.examples/process/pfiles.stp
+++ b/testsuite/systemtap.examples/process/pfiles.stp
@@ -1,6 +1,7 @@
#! /bin/sh
-exec stap -g - ${1+"$@"} << 'END'
+//bin/true && exec stap -g $0 ${1+"$@"}
+
# pfiles
# Copyright (C) 2007-2010 Red Hat, Inc., Eugene Teo <eteo@redhat.com>
#
@@ -609,7 +610,3 @@ probe begin {
exit()
}
-
-
-END
-