summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/xtime.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/buildok/xtime.stp')
-rwxr-xr-xtestsuite/buildok/xtime.stp7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/buildok/xtime.stp b/testsuite/buildok/xtime.stp
new file mode 100755
index 00000000..e41f9b16
--- /dev/null
+++ b/testsuite/buildok/xtime.stp
@@ -0,0 +1,7 @@
+#! stap -p4
+
+# Test for getting at an external global variable PR10622
+probe kernel.function("do_gettimeofday")
+{
+ printf("xtime.tv_sec:%d\n", $xtime->tv_sec); exit();
+}