summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mwielaard@redhat.com>2008-08-11 12:24:47 +0200
committerMark Wielaard <mwielaard@redhat.com>2008-08-11 12:24:47 +0200
commita81c61ac1947cb5c13d3a758fc793a119b88b4e0 (patch)
tree5ff0d5324bbc81d361d054ce630118869063ad61
parent5b8561dccfd6d79184c044cec6bd7d01ef415acc (diff)
downloadsystemtap-steved-a81c61ac1947cb5c13d3a758fc793a119b88b4e0.tar.gz
systemtap-steved-a81c61ac1947cb5c13d3a758fc793a119b88b4e0.tar.xz
systemtap-steved-a81c61ac1947cb5c13d3a758fc793a119b88b4e0.zip
PR2895. Add proper #! /usr/bin/env stap line. Make example scripts executable.
-rw-r--r--testsuite/systemtap.examples/ChangeLog14
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/general/graphs.stp2
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/general/para-callgraph.stp2
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/io/disktop.stp0
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/io/io_submit.stp2
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/io/iotop.stp2
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/io/traceio.stp2
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/io/traceio2.stp0
-rwxr-xr-xtestsuite/systemtap.examples/process/proc_snoop.stp2
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/process/sigkill.stp2
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/process/sleepingBeauties.stp0
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/profiling/functioncallcount.stp0
-rwxr-xr-x[-rw-r--r--]testsuite/systemtap.examples/profiling/thread-times.stp0
-rw-r--r--testsuite/systemtap.samples/iotask.stp1
-rw-r--r--testsuite/systemtap.samples/pfaults.stp2
-rw-r--r--testsuite/systemtap.samples/profile.stp2
16 files changed, 26 insertions, 7 deletions
diff --git a/testsuite/systemtap.examples/ChangeLog b/testsuite/systemtap.examples/ChangeLog
index a7fcd069..e2389993 100644
--- a/testsuite/systemtap.examples/ChangeLog
+++ b/testsuite/systemtap.examples/ChangeLog
@@ -1,3 +1,17 @@
+2008-08-11 Mark Wielaard <mwielaard@redhat.com>
+
+ PR2895. Reported by Eugeniy Meshcheryakov <eugen@debian.org>
+ * general/graphs.stp: Add proper #! /usr/bin/env stap line.
+ * general/para-callgraph.stp: Likewise.
+ * io/io_submit.stp: Likewise.
+ * io/iotop.stp: Likewise.
+ * io/traceio.stp: Likewise.
+ * process/proc_snoop.stp: Likewise.
+ * process/sigkill.stp: Likewise.
+ * iotask.stp: Likewise.
+ * pfaults.stp: Likewise.
+ * profile.stp: Likewise.
+
2008-08-08 Mark Wielaard <mwielaard@redhat.com>
* examples-index-gen.pl: Add index of subsystem and keywords at top of
diff --git a/testsuite/systemtap.examples/general/graphs.stp b/testsuite/systemtap.examples/general/graphs.stp
index 0c8e3796..f55d6cee 100644..100755
--- a/testsuite/systemtap.examples/general/graphs.stp
+++ b/testsuite/systemtap.examples/general/graphs.stp
@@ -1,4 +1,4 @@
-#! stap
+#! /usr/bin/stap
# ------------------------------------------------------------------------
# data collection
diff --git a/testsuite/systemtap.examples/general/para-callgraph.stp b/testsuite/systemtap.examples/general/para-callgraph.stp
index 1afb8837..e28f5d6b 100644..100755
--- a/testsuite/systemtap.examples/general/para-callgraph.stp
+++ b/testsuite/systemtap.examples/general/para-callgraph.stp
@@ -1,3 +1,5 @@
+#! /usr/bin/env stap
+
function trace(entry_p) {
if(tid() in trace)
printf("%s%s%s\n",thread_indent(entry_p),
diff --git a/testsuite/systemtap.examples/io/disktop.stp b/testsuite/systemtap.examples/io/disktop.stp
index 2637d735..2637d735 100644..100755
--- a/testsuite/systemtap.examples/io/disktop.stp
+++ b/testsuite/systemtap.examples/io/disktop.stp
diff --git a/testsuite/systemtap.examples/io/io_submit.stp b/testsuite/systemtap.examples/io/io_submit.stp
index 735dd6f9..7f350305 100644..100755
--- a/testsuite/systemtap.examples/io/io_submit.stp
+++ b/testsuite/systemtap.examples/io/io_submit.stp
@@ -1,4 +1,4 @@
-#!/bin/env stap
+#! /bin/env stap
#
# Copyright (C) 2007 Oracle Corp. Chris Mason <chris.mason@oracle.com>
#
diff --git a/testsuite/systemtap.examples/io/iotop.stp b/testsuite/systemtap.examples/io/iotop.stp
index 6050343c..2fa3e3ae 100644..100755
--- a/testsuite/systemtap.examples/io/iotop.stp
+++ b/testsuite/systemtap.examples/io/iotop.stp
@@ -1,3 +1,5 @@
+#! /usr/bin/env stap
+
global reads, writes, total_io
probe kernel.function("vfs_read") {
diff --git a/testsuite/systemtap.examples/io/traceio.stp b/testsuite/systemtap.examples/io/traceio.stp
index d3757c23..cb667be5 100644..100755
--- a/testsuite/systemtap.examples/io/traceio.stp
+++ b/testsuite/systemtap.examples/io/traceio.stp
@@ -1,4 +1,4 @@
-#!/usr/bin/env stap
+#! /usr/bin/env stap
# traceio.stp
# Copyright (C) 2007 Red Hat, Inc., Eugene Teo <eteo@redhat.com>
#
diff --git a/testsuite/systemtap.examples/io/traceio2.stp b/testsuite/systemtap.examples/io/traceio2.stp
index 656c38b3..656c38b3 100644..100755
--- a/testsuite/systemtap.examples/io/traceio2.stp
+++ b/testsuite/systemtap.examples/io/traceio2.stp
diff --git a/testsuite/systemtap.examples/process/proc_snoop.stp b/testsuite/systemtap.examples/process/proc_snoop.stp
index 24499b4b..5203c93f 100755
--- a/testsuite/systemtap.examples/process/proc_snoop.stp
+++ b/testsuite/systemtap.examples/process/proc_snoop.stp
@@ -1,4 +1,4 @@
-#!/usr/bin/env stap
+#! /usr/bin/env stap
global start_ts
diff --git a/testsuite/systemtap.examples/process/sigkill.stp b/testsuite/systemtap.examples/process/sigkill.stp
index 8f754219..6cb6ed1e 100644..100755
--- a/testsuite/systemtap.examples/process/sigkill.stp
+++ b/testsuite/systemtap.examples/process/sigkill.stp
@@ -1,4 +1,4 @@
-#!/usr/bin/env stap
+#! /usr/bin/env stap
# sigkill.stp
# Copyright (C) 2007 Red Hat, Inc., Eugene Teo <eteo@redhat.com>
#
diff --git a/testsuite/systemtap.examples/process/sleepingBeauties.stp b/testsuite/systemtap.examples/process/sleepingBeauties.stp
index 64c563a3..64c563a3 100644..100755
--- a/testsuite/systemtap.examples/process/sleepingBeauties.stp
+++ b/testsuite/systemtap.examples/process/sleepingBeauties.stp
diff --git a/testsuite/systemtap.examples/profiling/functioncallcount.stp b/testsuite/systemtap.examples/profiling/functioncallcount.stp
index e393b612..e393b612 100644..100755
--- a/testsuite/systemtap.examples/profiling/functioncallcount.stp
+++ b/testsuite/systemtap.examples/profiling/functioncallcount.stp
diff --git a/testsuite/systemtap.examples/profiling/thread-times.stp b/testsuite/systemtap.examples/profiling/thread-times.stp
index 1aeb2037..1aeb2037 100644..100755
--- a/testsuite/systemtap.examples/profiling/thread-times.stp
+++ b/testsuite/systemtap.examples/profiling/thread-times.stp
diff --git a/testsuite/systemtap.samples/iotask.stp b/testsuite/systemtap.samples/iotask.stp
index ee0ae4b4..1b4c7243 100644
--- a/testsuite/systemtap.samples/iotask.stp
+++ b/testsuite/systemtap.samples/iotask.stp
@@ -1,3 +1,4 @@
+#! /usr/bin/env stap
# iotask.stp
# A reimplementation of user script: iotask.stp given at OLS 2005
# in the current language.
diff --git a/testsuite/systemtap.samples/pfaults.stp b/testsuite/systemtap.samples/pfaults.stp
index 525aa511..577e93cd 100644
--- a/testsuite/systemtap.samples/pfaults.stp
+++ b/testsuite/systemtap.samples/pfaults.stp
@@ -1,4 +1,4 @@
-#! stap
+#! /usr/bin/env stap
global pidnames, faults, fault_types
diff --git a/testsuite/systemtap.samples/profile.stp b/testsuite/systemtap.samples/profile.stp
index d052f091..62af76ae 100644
--- a/testsuite/systemtap.samples/profile.stp
+++ b/testsuite/systemtap.samples/profile.stp
@@ -1,4 +1,4 @@
-#! stap
+#! /usr/bin/env stap
global command, syscall_count, syscall_times, this_syscall_time, this_syscall