probes.h 650 B

123456789101112131415161718192021222324252627282930
  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 u32 probe_opcode_t;
  11. typedef void (probes_handler_t) (u32 opcode, long addr, struct pt_regs *);
  12. /* architecture specific copy of original instruction */
  13. struct arch_probe_insn {
  14. probe_opcode_t *insn;
  15. pstate_check_t *pstate_cc;
  16. probes_handler_t *handler;
  17. /* restore address after step xol */
  18. unsigned long restore;
  19. };
  20. #ifdef CONFIG_KPROBES
  21. typedef u32 kprobe_opcode_t;
  22. struct arch_specific_insn {
  23. struct arch_probe_insn api;
  24. };
  25. #endif
  26. #endif