summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/gtod.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.samples/gtod.stp')
-rw-r--r--testsuite/systemtap.samples/gtod.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/systemtap.samples/gtod.stp b/testsuite/systemtap.samples/gtod.stp
new file mode 100644
index 00000000..f252dc0a
--- /dev/null
+++ b/testsuite/systemtap.samples/gtod.stp
@@ -0,0 +1,8 @@
+global count = 0
+
+probe syscall.setsid {
+ if (pid() == target()) {
+ printf("%014d :%02d kern\n", gettimeofday_us(), count);
+ count ++;
+ }
+}