]> sourceware.org Git - systemtap.git/commitdiff
2007-11-09 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Fri, 9 Nov 2007 21:06:11 +0000 (21:06 +0000)
committerhunt <hunt>
Fri, 9 Nov 2007 21:06:11 +0000 (21:06 +0000)
* README: New.

* *.stp. Fix path.  See PR 4718.

18 files changed:
examples/ChangeLog
examples/README [new file with mode: 0644]
examples/futexes.stp [changed mode: 0644->0755]
examples/helloworld.stp [changed mode: 0644->0755]
examples/iostat-scsi.stp [changed mode: 0644->0755]
examples/iotime.stp [changed mode: 0644->0755]
examples/nettop.stp [changed mode: 0644->0755]
examples/pf2.stp [changed mode: 0644->0755]
examples/sig_by_pid.stp
examples/sig_by_proc.stp
examples/sigmon.stp
examples/sleeptime.stp [changed mode: 0644->0755]
examples/small_demos/close.stp
examples/small_demos/fileopen.stp [changed mode: 0644->0755]
examples/socket-trace.stp [changed mode: 0644->0755]
examples/syscalls_by_pid.stp
examples/syscalls_by_proc.stp
examples/wait4time.stp [changed mode: 0644->0755]

index 1999521f2aa74abc84c64378759fbe58b151ebfd..ded655b457fdb11ae98364bbdb0d565aaebf724c 100644 (file)
@@ -1,3 +1,9 @@
+2007-11-09  Martin Hunt  <hunt@redhat.com>
+
+       * README: New.
+
+       * *.stp. Fix path.  See PR 4718.
+
 2007-10-10  Mike Mason
 
        * syscalltimes, syscalltime.txt:  New combination shell/SystemTap script
diff --git a/examples/README b/examples/README
new file mode 100644 (file)
index 0000000..6718a55
--- /dev/null
@@ -0,0 +1,9 @@
+This directory contains example scripts.  
+
+Each script should be checked in as executable.
+
+The first line should be
+#! /usr/bin/env stap
+
+There should be an accompanying ".txt" file describing what the
+script does and how to use it.
old mode 100644 (file)
new mode 100755 (executable)
index 515a8db..16c6293
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 # This script tries to identify contended user-space locks by hooking
 # into the futex system call.
old mode 100644 (file)
new mode 100755 (executable)
index c1e50c0..efe45b7
@@ -1,2 +1,2 @@
-#! /usr/bin/stap
-probe begin { log("hello world") exit () }
+#! /usr/bin/env stap
+probe begin { println("hello world") exit () }
old mode 100644 (file)
new mode 100755 (executable)
index 63b0496..ec1aeeb
@@ -1,4 +1,4 @@
-#!/bin/env stap
+#! /usr/bin/env stap
 
 global devices, reads, writes
 
old mode 100644 (file)
new mode 100755 (executable)
index c9b1704..a5b3644
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 /*
  * Copyright (C) 2006 Daniel Berrange, Red Hat Inc.
old mode 100644 (file)
new mode 100755 (executable)
index c756f82..1310f5b
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 global ifxmit, ifrecv, ifdevs, ifpid, execname, user
 
old mode 100644 (file)
new mode 100755 (executable)
index fbac4e5..96fdb7e
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 global profile, pcount
 probe timer.profile {
index 4e0600f18d374952bb06b52246830c89e0651f90..9c1493f532fb0ebe4cc408834cf8a98ede3e2851 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 # Copyright (C) 2006 IBM Corp.
 #
index 18b236d3e1d9efa35b82c29b67729d424a9a523b..ce845aed89002d8f5ef146757f036130303a39cc 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 # Copyright (C) 2006 IBM Corp.
 #
index 42cb1892f054b2ad2d585595ed93d636ce9db65f..31d7822e57d019aaa63df27bdec09a84994804ab 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 # Copyright (C) 2006 IBM Corp.
 #
old mode 100644 (file)
new mode 100755 (executable)
index 3234048..252e50c
@@ -1,4 +1,5 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
+
 /*
  * Copyright (C) 2006 Daniel Berrange, Red Hat Inc.
  * Copyright (C) 2007 Will Cohen, Red Hat, Inc.
index 53f53b2596fa943764ffbbba8596efacb0e1a122..7ba2a0369939f31a627ac6c6829e723b48a25b61 100755 (executable)
@@ -7,3 +7,8 @@ probe syscall.close {
 probe syscall.close.return {
        printf("%s\n", returnstr(returnp))
 }
+
+probe end {
+       printf("DONE\n")
+}
+
old mode 100644 (file)
new mode 100755 (executable)
index 5d59ee5..c1298f9
@@ -1,9 +1,14 @@
+#! /usr/bin/env stap
+
+#
 # fileopen.stp
 #
 # This is based on dtrace script from 
 # http://www.gnome.org/~gman/blog/2006/Jan
 #
-#stap  fileopen.stp  -c "zenity --about"
+# stap  fileopen.stp  -c "zenity --about"
+# or
+# ./fileopen.stp -c "program or script"
 
 global opens
 
old mode 100644 (file)
new mode 100755 (executable)
index e574205..13ab8e0
@@ -1,4 +1,5 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
+
 probe kernel.function("*@net/socket.c").call {
   printf ("%s -> %s\n", thread_indent(1), probefunc())
 }
index ceb5821aec0e4d6c1fae089af9bbbf3bf27a3d34..47aa4955a4a32b32fbce4c0cf4dc7a08a3dbf1ed 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 # Copyright (C) 2006 IBM Corp.
 #
index 1807a46cf8c99abda616523a3dfad78bcf627067..af7d69321fa87ff3cb6e2121a459131158e75581 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 # Copyright (C) 2006 IBM Corp.
 #
old mode 100644 (file)
new mode 100755 (executable)
index cf74fa5..bd1628e
@@ -1,4 +1,4 @@
-#! /usr/bin/stap
+#! /usr/bin/env stap
 
 /*
  * Copyright (C) 2006 Daniel Berrange, Red Hat Inc.
This page took 0.043422 seconds and 5 git commands to generate.