summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/syscalls.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples/syscalls.stp')
-rw-r--r--testsuite/systemtap.samples/syscalls.stp7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/systemtap.samples/syscalls.stp b/testsuite/systemtap.samples/syscalls.stp
new file mode 100644
index 00000000..670b239d
--- /dev/null
+++ b/testsuite/systemtap.samples/syscalls.stp
@@ -0,0 +1,7 @@
+#! stap
+
+global count
+probe kernel.function("sys_*") {
+ print (sprint(pid()) . " " . pp() . "\n")
+ if (++count > 100) exit()
+}