summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/four.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/semok/four.stp')
-rwxr-xr-xtestsuite/semok/four.stp23
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/semok/four.stp b/testsuite/semok/four.stp
new file mode 100755
index 00000000..e11b644a
--- /dev/null
+++ b/testsuite/semok/four.stp
@@ -0,0 +1,23 @@
+#! semtest
+
+# these will ultimately be somehow associated with "providers"
+# and have a syntax of their own
+global kernel_jiffies, kernel_current_comm;
+
+function kernel_netlink(a, b) {
+ # this should be a builtin function
+ return 0
+}
+
+function stamp (syscall)
+{
+ return kernel_netlink (4, kernel_jiffies . " " . kernel_current_comm . " " . syscall)
+}
+
+# probe kernel:syscall:read = kernel:function("sys_read");
+
+
+probe kernel:syscall:read
+{
+ stamp ("read");
+}