decode-insn.h 456 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef __CSKY_KERNEL_KPROBES_DECODE_INSN_H
  3. #define __CSKY_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. #define is_insn32(insn) ((insn & 0xc000) == 0xc000)
  12. enum probe_insn __kprobes
  13. csky_probe_decode_insn(probe_opcode_t *addr, struct arch_probe_insn *asi);
  14. #endif /* __CSKY_KERNEL_KPROBES_DECODE_INSN_H */