linux/samples/ftrace
Jiri Olsa e1067a07cf 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>
2021-12-09 13:02:44 -05:00
..
ftrace-direct-modify.c samples: add s390 support for ftrace direct call samples 2021-10-19 15:39:54 +02:00
ftrace-direct-multi-modify.c ftrace/samples: Add module to test multi direct modify interface 2021-12-09 13:02:44 -05:00
ftrace-direct-multi.c ftrace/samples: add s390 support for ftrace direct multi sample 2021-11-18 17:50:54 +01:00
ftrace-direct-too.c samples: add s390 support for ftrace direct call samples 2021-10-19 15:39:54 +02:00
ftrace-direct.c samples: add s390 support for ftrace direct call samples 2021-10-19 15:39:54 +02:00
Makefile ftrace/samples: Add module to test multi direct modify interface 2021-12-09 13:02:44 -05:00
sample-trace-array.c sample-trace-array: Remove trace_array 'sample-instance' 2020-06-16 21:21:02 -04:00
sample-trace-array.h tracing: Sample module to demonstrate kernel access to Ftrace instances. 2019-11-22 19:41:08 -05:00