selftests/ftrace: Exclude "(fault)" in testing add/remove eprobe events
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 8 Sep 2021 03:04:29 +0000 (23:04 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 8 Sep 2021 19:29:16 +0000 (15:29 -0400)
commit04178ea130a64a50826f17c7cc92774ada7ea9d0
treef965320289306e9b2dd9b2e0a9e6f46c9a10e7bb
parentc910db943d35d4ac4b77570ece76e0799af24233
selftests/ftrace: Exclude "(fault)" in testing add/remove eprobe events

The original test for adding and removing eprobes used synthetic events
and retrieved the filename from the open system call at the end of the
system call. This would allow it to always be loaded into the page tables
when accessed.

Masami suggested that the test was too complex for just testing add and
remove, so it was changed to test just adding and removing an event probe
on top of the start of the open system call event. Now it is possible that
the filename will not be loaded into memory at the time the eprobe is
triggered, and will result in "(fault)" being displayed in the event. This
causes the test to fail.

Account for "(fault)" also being one of the values of the filename field
of the event probe.

Link: https://lkml.kernel.org/r/20210907230429.5783d519@rorschach.local.home
Fixes: 079db70794ec5 ("selftests/ftrace: Add test case to test adding and removing of event probe")
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/ftrace/test.d/dynevent/add_remove_eprobe.tc