kprobes.h 824 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _SPARC64_KPROBES_H
  2. #define _SPARC64_KPROBES_H
  3. #include <linux/config.h>
  4. #include <linux/types.h>
  5. typedef u32 kprobe_opcode_t;
  6. #define BREAKPOINT_INSTRUCTION 0x91d02070 /* ta 0x70 */
  7. #define BREAKPOINT_INSTRUCTION_2 0x91d02071 /* ta 0x71 */
  8. #define MAX_INSN_SIZE 2
  9. #define JPROBE_ENTRY(pentry) (kprobe_opcode_t *)pentry
  10. /* Architecture specific copy of original instruction*/
  11. struct arch_specific_insn {
  12. /* copy of the original instruction */
  13. kprobe_opcode_t insn[MAX_INSN_SIZE];
  14. };
  15. #ifdef CONFIG_KPROBES
  16. extern int kprobe_exceptions_notify(struct notifier_block *self,
  17. unsigned long val, void *data);
  18. #else /* !CONFIG_KPROBES */
  19. static inline int kprobe_exceptions_notify(struct notifier_block *self,
  20. unsigned long val, void *data)
  21. {
  22. return 0;
  23. }
  24. #endif
  25. #endif /* _SPARC64_KPROBES_H */