selftest/ftrace: Move kprobe selftest function to separate compile unit
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 30 Jul 2018 10:20:42 +0000 (19:20 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 30 Jul 2018 22:41:04 +0000 (18:41 -0400)
commitd899926f552bbd2e132b339fe40c06b9a1152e1a
tree01b28ea1ca153517d98ef1f6afa0a8469c2bea75
parent45408c4f92506dbdfef1721f2613e1426de00894
selftest/ftrace: Move kprobe selftest function to separate compile unit

Move selftest function to its own compile unit so it can be compiled
with the ftrace cflags (CC_FLAGS_FTRACE) allowing it to be probed
during the ftrace startup tests.

Link: http://lkml.kernel.org/r/153294604271.32740.16490677128630177030.stgit@devbox
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/Makefile
kernel/trace/trace_kprobe.c
kernel/trace/trace_kprobe_selftest.c [new file with mode: 0644]
kernel/trace/trace_kprobe_selftest.h [new file with mode: 0644]