All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/ftrace: check for do_sys_openat2 in user-memory test
@ 2020-10-01  8:56 ` Colin King
  0 siblings, 0 replies; 14+ messages in thread
From: Colin King @ 2020-10-01  8:56 UTC (permalink / raw)
  To: Steven Rostedt, Ingo Molnar, Shuah Khan, Masami Hiramatsu,
	Tom Zanussi, linux-kselftest
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

More recent libc implementations are now using openat/openat2 system
calls so also add do_sys_openat2 to the tracing so that the test
passes on these systems because do_sys_open may not be called.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 .../testing/selftests/ftrace/test.d/kprobe/kprobe_args_user.tc  | 2 ++
 1 file changed, 2 insertions(+)

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 a30a9c07290d..cf1b4c3e9e6b 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
@@ -9,6 +9,8 @@ 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'
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-10-02 13:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01  8:56 [PATCH] selftests/ftrace: check for do_sys_openat2 in user-memory test Colin King
2020-10-01  8:56 ` Colin King
2020-10-01 14:44 ` Steven Rostedt
2020-10-01 14:44   ` Steven Rostedt
2020-10-01 15:40   ` Colin Ian King
2020-10-01 15:40     ` Colin Ian King
2020-10-01 15:56     ` Steven Rostedt
2020-10-01 15:56       ` Steven Rostedt
2020-10-02  7:32     ` Masami Hiramatsu
2020-10-02  7:32       ` Masami Hiramatsu
2020-10-02 13:07 ` Masami Hiramatsu
2020-10-02 13:07   ` Masami Hiramatsu
2020-10-02 13:20   ` Colin Ian King
2020-10-02 13:20     ` Colin Ian King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.