summaryrefslogtreecommitdiffstats
path: root/samples/ftrace/ftrace-direct-modify.c
Commit message (Collapse)AuthorAgeFilesLines
* samples/ftrace: Fix asm function ELF annotationsJosh Poimboeuf2020-05-201-0/+4
| | | | | | | | | | | | 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/samples: Add a sample module that implements modify_ftrace_direct()Steven Rostedt (VMware)2019-11-141-0/+88
Add a sample module that tests modify_ftrace_direct(), and this can be used by the selftests as well. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>