diff options
author | Josh Stone <jistone@redhat.com> | 2009-08-03 14:20:46 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-03 14:20:46 -0700 |
commit | 28ad563d57d03e0d21936e394061e3380607d83b (patch) | |
tree | 2142018c159bd8b1b99d2ef08129d7db5228c477 /testsuite | |
parent | 79a7b65cf99ca7ec258d11c41af5d8ab13abf609 (diff) | |
download | systemtap-steved-28ad563d57d03e0d21936e394061e3380607d83b.tar.gz systemtap-steved-28ad563d57d03e0d21936e394061e3380607d83b.tar.xz systemtap-steved-28ad563d57d03e0d21936e394061e3380607d83b.zip |
PR10475: ensure that loc2c can find its array size
* loc2c.c (array_stride): iterate DIEs past typedef/const/volatile
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/semok/bz10475.stp | 10 |
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]) +} |