decode-insn.h 404 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef _RISCV_KERNEL_KPROBES_DECODE_INSN_H
  3. #define _RISCV_KERNEL_KPROBES_DECODE_INSN_H
  4. #include <asm/sections.h>
  5. #include <asm/kprobes.h>
  6. enum probe_insn {
  7. INSN_REJECTED,
  8. INSN_GOOD_NO_SLOT,
  9. INSN_GOOD,
  10. };
  11. enum probe_insn __kprobes
  12. riscv_probe_decode_insn(probe_opcode_t *addr, struct arch_probe_insn *asi);
  13. #endif /* _RISCV_KERNEL_KPROBES_DECODE_INSN_H */