selftests/ftrace: Add selftest for testing eprobe events on synthetic events
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 20 Aug 2021 20:46:49 +0000 (16:46 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 21 Aug 2021 14:25:34 +0000 (10:25 -0400)
commit8f022d3a769c5460c325d3444cf5f0c948d5bb52
tree3534e0f252b8e037fd434806a93f2cb851480140
parent079db70794ec5494a9e1091a1788e671d30b9103
selftests/ftrace: Add selftest for testing eprobe events on synthetic events

Add a test to test event probes, by creating a synthetic event across
sys_enter_openat and sys_exit_openat that passes the filename pointer from
the enter of the system call to the exit, and then add an event probe to
the synthetic event to make sure that the file name is seen.

Link: https://lore.kernel.org/linux-kselftest/20210819152825.526931866@goodmis.org/
Link: https://lkml.kernel.org/r/20210820204742.463259900@goodmis.org
Cc: "Tzvetomir Stoyanov" <tz.stoyanov@gmail.com>
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-kselftest@vger.kernel.org
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-synthetic-eprobe.tc [new file with mode: 0644]