summaryrefslogtreecommitdiffstats
path: root/samples/ftrace/ftrace-direct.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* samples/ftrace: Fix asm function ELF annotationsJosh Poimboeuf2020-05-201-0/+2
| | | | | | | | | | | | Enable objtool coverage for the sample ftrace modules by adding ELF annotations to the asm trampoline functions. samples/ftrace/ftrace-direct.o: warning: objtool: .text+0x0: unreachable instruction samples/ftrace/ftrace-direct-modify.o: warning: objtool: .text+0x0: unreachable instruction samples/ftrace/ftrace-direct-too.o: warning: objtool: .text+0x0: unreachable instruction Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
* ftrace/selftests: Fix spelling mistake "wakeing" -> "waking"Colin Ian King2019-11-151-1/+1
| | | | | | | | | | | There is a spelling mistake in a trace_printk message. As well as in the selftests that search for this string. Link: http://lkml.kernel.org/r/20191115085938.38947-1-colin.king@canonical.com Link: http://lkml.kernel.org/r/20191115090356.39572-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
* ftrace: Add sample module that uses register_ftrace_direct()Steven Rostedt (VMware)2019-11-131-0/+45
Add a sample module that shows a simple use case for regsiter_ftrace_direct(), and how to use it. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>