summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/two.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/buildok/two.stp')
-rwxr-xr-xtestsuite/buildok/two.stp16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/buildok/two.stp b/testsuite/buildok/two.stp
new file mode 100755
index 00000000..83a4705c
--- /dev/null
+++ b/testsuite/buildok/two.stp
@@ -0,0 +1,16 @@
+#! stap -p4
+
+%{
+#include <linux/version.h>
+%}
+
+function get_release () %{
+strncpy(THIS->__retvalue, UTS_RELEASE, MAXSTRINGLEN);
+%}
+
+probe begin
+{
+ printk("hello from systemtap, kernel version " . get_release())
+}
+
+