kprobes.h 978 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Kernel Probes (KProbes)
  3. *
  4. * Copyright (C) 2005-2006 Atmel Corporation
  5. * Copyright (C) IBM Corporation, 2002, 2004
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __ASM_AVR32_KPROBES_H
  12. #define __ASM_AVR32_KPROBES_H
  13. #include <linux/types.h>
  14. typedef u16 kprobe_opcode_t;
  15. #define BREAKPOINT_INSTRUCTION 0xd673 /* breakpoint */
  16. #define MAX_INSN_SIZE 2
  17. #define kretprobe_blacklist_size 0
  18. #define arch_remove_kprobe(p) do { } while (0)
  19. /* Architecture specific copy of original instruction */
  20. struct arch_specific_insn {
  21. kprobe_opcode_t insn[MAX_INSN_SIZE];
  22. };
  23. extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
  24. extern int kprobe_exceptions_notify(struct notifier_block *self,
  25. unsigned long val, void *data);
  26. #define flush_insn_slot(p) do { } while (0)
  27. #endif /* __ASM_AVR32_KPROBES_H */