summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/bz10475.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/semok/bz10475.stp')
-rwxr-xr-xtestsuite/semok/bz10475.stp10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/semok/bz10475.stp b/testsuite/semok/bz10475.stp
new file mode 100755
index 00000000..ee79b07d
--- /dev/null
+++ b/testsuite/semok/bz10475.stp
@@ -0,0 +1,10 @@
+#! stap -p2
+// bz10475: pointer-array confused about array element size
+
+// struct file *do_filp_open(int dfd, const char *pathname,
+// int open_flag, int mode, int acc_mode)
+probe kernel.function("do_filp_open")
+{
+ // check array access on a "complex" pointer type
+ println($pathname[0])
+}