summaryrefslogtreecommitdiffstats
path: root/stap_tutorial-1.0/examples/helloworld.stp
diff options
context:
space:
mode:
Diffstat (limited to 'stap_tutorial-1.0/examples/helloworld.stp')
-rwxr-xr-xstap_tutorial-1.0/examples/helloworld.stp6
1 files changed, 6 insertions, 0 deletions
diff --git a/stap_tutorial-1.0/examples/helloworld.stp b/stap_tutorial-1.0/examples/helloworld.stp
new file mode 100755
index 0000000..e08ecb8
--- /dev/null
+++ b/stap_tutorial-1.0/examples/helloworld.stp
@@ -0,0 +1,6 @@
+#!/usr/bin/env stap
+
+probe begin {
+ printf("Hello World!\n")
+ exit()
+}