selftests/ftrace: Add new test case which checks for optimized probes
authorAkanksha J N <akanksha@linux.ibm.com>
Fri, 28 Apr 2023 16:38:42 +0000 (22:08 +0530)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 12 Jun 2023 22:39:11 +0000 (16:39 -0600)
commit1977ecea8c75547a35fdab8827937eb2dc6048be
treedb3ad6d519f1fae96453e23367d3539462df9874
parentc4f461a113ec3a523a0b5b35ed9ebd90d4145672
selftests/ftrace: Add new test case which checks for optimized probes

Add new test case kprobe_opt_types.tc which enables and checks
if each probe has been optimized in order to test potential issues with
optimized probes.
The '|| continue' is added with the echo statement to ignore errors that
are caused by trying to add kprobes to non probeable lines and continue
with the test.

Signed-off-by: Akanksha J N <akanksha@linux.ibm.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_opt_types.tc [new file with mode: 0644]