ftrace.h 757 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _FTRACE_H
  3. #define _FTRACE_H
  4. #include <asm/types.h>
  5. struct ftrace_hotpatch_trampoline {
  6. u16 brasl_opc;
  7. s32 brasl_disp;
  8. s16: 16;
  9. u64 rest_of_intercepted_function;
  10. u64 interceptor;
  11. } __packed;
  12. extern struct ftrace_hotpatch_trampoline __ftrace_hotpatch_trampolines_start[];
  13. extern struct ftrace_hotpatch_trampoline __ftrace_hotpatch_trampolines_end[];
  14. extern const char ftrace_shared_hotpatch_trampoline_br[];
  15. extern const char ftrace_shared_hotpatch_trampoline_br_end[];
  16. extern const char ftrace_shared_hotpatch_trampoline_exrl[];
  17. extern const char ftrace_shared_hotpatch_trampoline_exrl_end[];
  18. extern const char ftrace_plt_template[];
  19. extern const char ftrace_plt_template_end[];
  20. #endif /* _FTRACE_H */