diff options
author | Josh Stone <jistone@redhat.com> | 2010-03-31 15:29:08 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-03-31 15:29:08 -0700 |
commit | 8a5f80d8b69c9d3497887c21dba64b5604651d17 (patch) | |
tree | f233bcc3ae1945f60871d41c406c9125f317c316 | |
parent | 4df79aaf86a9b6dfbccc3c51946024a30ba43726 (diff) | |
download | systemtap-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-x | testsuite/systemtap.examples/process/pfiles.stp | 7 |
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 - |