summaryrefslogtreecommitdiffstats
path: root/samples/ftrace/Makefile
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2021-12-06 19:20:32 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-12-09 13:02:44 -0500
commite1067a07cfbc5a36abad3752fafe4c79e06db1bb (patch)
tree94d47183b6eae6f63d83a179728f99cc64b67ecf /samples/ftrace/Makefile
parentfea3ffa48c6d42a11dca766c89284d22eaf5603f (diff)
downloadlinux-e1067a07cfbc5a36abad3752fafe4c79e06db1bb.tar.gz
linux-e1067a07cfbc5a36abad3752fafe4c79e06db1bb.tar.bz2
linux-e1067a07cfbc5a36abad3752fafe4c79e06db1bb.zip
ftrace/samples: Add module to test multi direct modify interface
Adding ftrace-direct-multi-modify.ko kernel module that uses modify_ftrace_direct_multi API. The core functionality is taken from ftrace-direct-modify.ko kernel module and changed to fit multi direct interface. The init function creates kthread that periodically calls modify_ftrace_direct_multi to change the trampoline address for the direct ftrace_ops. The ftrace trace_pipe then shows trace from both trampolines. Link: https://lkml.kernel.org/r/20211206182032.87248-4-jolsa@kernel.org Cc: Ingo Molnar <mingo@redhat.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Tested-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'samples/ftrace/Makefile')
-rw-r--r--samples/ftrace/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/ftrace/Makefile b/samples/ftrace/Makefile
index b9198e2eef28..faf8cdb79c5f 100644
--- a/samples/ftrace/Makefile
+++ b/samples/ftrace/Makefile
@@ -4,6 +4,7 @@ obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct.o
obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct-too.o
obj-$(CONFIG_SAMPLE_FTRACE_DIRECT) += ftrace-direct-modify.o
obj-$(CONFIG_SAMPLE_FTRACE_DIRECT_MULTI) += ftrace-direct-multi.o
+obj-$(CONFIG_SAMPLE_FTRACE_DIRECT_MULTI) += ftrace-direct-multi-modify.o
CFLAGS_sample-trace-array.o := -I$(src)
obj-$(CONFIG_SAMPLE_TRACE_ARRAY) += sample-trace-array.o