uprobes.h 770 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. #ifndef _ASM_UPROBES_H
  3. #define _ASM_UPROBES_H
  4. /*
  5. * User-space Probes (UProbes) for powerpc
  6. *
  7. * Copyright IBM Corporation, 2007-2012
  8. *
  9. * Adapted from the x86 port by Ananth N Mavinakayanahalli <[email protected]>
  10. */
  11. #include <linux/notifier.h>
  12. #include <asm/probes.h>
  13. typedef u32 uprobe_opcode_t;
  14. #define MAX_UINSN_BYTES 8
  15. #define UPROBE_XOL_SLOT_BYTES (MAX_UINSN_BYTES)
  16. /* The following alias is needed for reference from arch-agnostic code */
  17. #define UPROBE_SWBP_INSN BREAKPOINT_INSTRUCTION
  18. #define UPROBE_SWBP_INSN_SIZE 4 /* swbp insn size in bytes */
  19. struct arch_uprobe {
  20. union {
  21. u32 insn[2];
  22. u32 ixol[2];
  23. };
  24. };
  25. struct arch_uprobe_task {
  26. unsigned long saved_trap_nr;
  27. };
  28. #endif /* _ASM_UPROBES_H */