probes.h 549 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * arch/arm64/include/asm/probes.h
  4. *
  5. * Copyright (C) 2013 Linaro Limited
  6. */
  7. #ifndef _ARM_PROBES_H
  8. #define _ARM_PROBES_H
  9. #include <asm/insn.h>
  10. typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
  11. struct arch_probe_insn {
  12. probes_handler_t *handler;
  13. };
  14. #ifdef CONFIG_KPROBES
  15. typedef __le32 kprobe_opcode_t;
  16. struct arch_specific_insn {
  17. struct arch_probe_insn api;
  18. kprobe_opcode_t *xol_insn;
  19. /* restore address after step xol */
  20. unsigned long xol_restore;
  21. };
  22. #endif
  23. #endif