OpenCloudOS-Kernel/tools/testing/selftests/ftrace/test.d
Steven Rostedt (VMware) 04178ea130 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: 079db70794 ("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>
2021-09-08 15:29:16 -04:00
..
00basic selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
direct selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
dynevent selftests/ftrace: Exclude "(fault)" in testing add/remove eprobe events 2021-09-08 15:29:16 -04:00
event selftests/ftrace: fix event-no-pid on 1-core machine 2021-06-23 18:29:26 -06:00
ftrace selftests/ftrace: Use $FUNCTION_FORK to reference kernel fork function 2020-10-27 16:44:18 -06:00
instances selftests/ftrace: Convert required interface checks into requires list 2020-06-16 10:39:20 -06:00
kprobe selftests/ftrace: check for do_sys_openat2 in user-memory test 2020-10-27 16:45:51 -06:00
preemptirq selftests/ftrace: Support ":tracer" suffix for requires 2020-06-16 10:42:10 -06:00
selftest selftests/ftrace: Add checkbashisms meta-testcase 2019-05-24 13:38:29 -06:00
tracer selftests/ftrace: Support ":tracer" suffix for requires 2020-06-16 10:42:10 -06:00
trigger selftests/ftrace: Add selftest for testing eprobe events on synthetic events 2021-08-21 10:25:34 -04:00
functions selftests/ftrace: Fix requirement check of README file 2021-08-21 10:25:00 -04:00
template selftests/ftrace: Support ":README" suffix for requires 2020-06-16 10:42:47 -06:00