From 31da4cc9cb5385124964107c6cd2aee9723f09be Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 7 Sep 2009 17:06:27 +0200 Subject: 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. --- testsuite/semok/bz10475.stp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'testsuite') 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]) } -- cgit