summaryrefslogtreecommitdiff
path: root/samples/ftrace/ftrace-direct-too.c
AgeCommit message (Collapse)AuthorFilesLines
2020-05-20samples/ftrace: Fix asm function ELF annotationsJosh Poimboeuf1-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>
2019-11-13ftrace: Add another example of register_ftrace_direct() use caseSteven Rostedt (VMware)1-0/+51
Add another module sample that registers a direct trampoline to a function via register_ftrace_direct(). Having another module that does this allows to test the use case of multiple direct callers registered, as more than one direct caller goes into another path, and is needed to perform proper testing of the register_ftrace_direct() call. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>