samples/ftrace: Fix asm function ELF annotations
authorJosh Poimboeuf <jpoimboe@redhat.com>
Fri, 24 Apr 2020 20:40:43 +0000 (15:40 -0500)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Wed, 20 May 2020 13:30:43 +0000 (08:30 -0500)
commit9d907f1ae80b8a67d5397e26912b9d56d0b70a02
tree41f4d1ad71da46105e5eb5de02fbb60416ee5979
parent7c0577f4e609f7278ebd6d21e2de82b42f110944
samples/ftrace: Fix asm function ELF annotations

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>
samples/ftrace/ftrace-direct-modify.c
samples/ftrace/ftrace-direct-too.c
samples/ftrace/ftrace-direct.c