diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-09-07 17:06:27 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-09-07 17:06:27 +0200 |
commit | 31da4cc9cb5385124964107c6cd2aee9723f09be (patch) | |
tree | dda7e32900366241b7deb27a1edd6294e3d123e8 /testsuite/semok | |
parent | 8785346c7b4789a23559ab7811cac692513d0fbf (diff) | |
download | systemtap-steved-31da4cc9cb5385124964107c6cd2aee9723f09be.tar.gz systemtap-steved-31da4cc9cb5385124964107c6cd2aee9723f09be.tar.xz systemtap-steved-31da4cc9cb5385124964107c6cd2aee9723f09be.zip |
bz10475.exp: Use filp_open which has a constant const char argument for test.
For some reason the do_filp_open const char *pathname argument has changed
its name between different kernel versions. Luckily filp_open has a cont char
*filename argument that is constant between versions (the test needs a
const char* argument to do an array operation on).
* testsuite/semok/bz10475.stp: Use filp_open instead of do_filp_open.
Diffstat (limited to 'testsuite/semok')
-rwxr-xr-x | testsuite/semok/bz10475.stp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/testsuite/semok/bz10475.stp b/testsuite/semok/bz10475.stp index ee79b07d..160263a5 100755 --- a/testsuite/semok/bz10475.stp +++ b/testsuite/semok/bz10475.stp @@ -1,10 +1,9 @@ #! 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") +// struct file *filp_open(int dfd, const char *filename, int flags, int mode) +probe kernel.function("filp_open") { // check array access on a "complex" pointer type - println($pathname[0]) + println($filename[0]) } |