summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKamal Mostafa <kamal@canonical.com>2020-12-16 10:13:53 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-21 13:27:06 +0100
commita840e37ef8003d70c3aa5ce2ee1a3e5ce4647431 (patch)
treec217c2d84feb606f4f00f30215a9dee5ea763167
parentaa17a20d640d5a1f5c8e78d2a1c7efb6020660b7 (diff)
downloadlinux-stable-a840e37ef8003d70c3aa5ce2ee1a3e5ce4647431.tar.gz
linux-stable-a840e37ef8003d70c3aa5ce2ee1a3e5ce4647431.tar.bz2
linux-stable-a840e37ef8003d70c3aa5ce2ee1a3e5ce4647431.zip
Revert "selftests/ftrace: check for do_sys_openat2 in user-memory test"
This reverts commit 9110e2f2633dc9383a3a4711a0067094f6948783. This commit is not suitable for 5.4-stable because the openat2 system call does not exist in v5.4. Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc
index a753c73d869a..0f60087583d8 100644
--- a/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc
+++ b/tools/testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc
@@ -11,16 +11,12 @@ grep -A10 "fetcharg:" README | grep -q '\[u\]<offset>' || exit_unsupported
:;: "user-memory access syntax and ustring working on user memory";:
echo 'p:myevent do_sys_open path=+0($arg2):ustring path2=+u0($arg2):string' \
> kprobe_events
-echo 'p:myevent2 do_sys_openat2 path=+0($arg2):ustring path2=+u0($arg2):string' \
- >> kprobe_events
grep myevent kprobe_events | \
grep -q 'path=+0($arg2):ustring path2=+u0($arg2):string'
echo 1 > events/kprobes/myevent/enable
-echo 1 > events/kprobes/myevent2/enable
echo > /dev/null
echo 0 > events/kprobes/myevent/enable
-echo 0 > events/kprobes/myevent2/enable
grep myevent trace | grep -q 'path="/dev/null" path2="/dev/null"'