]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita519adc037e2f4ddd0bb380b2cd293208380b267
tree3534e0f252b8e037fd434806a93f2cb851480140
parent8b1f527b0db54a842085ba69fce985d9b6084396
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]