uprobes.h 631 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2014-2016 Pratyush Anand <[email protected]>
  4. */
  5. #ifndef _ASM_UPROBES_H
  6. #define _ASM_UPROBES_H
  7. #include <asm/debug-monitors.h>
  8. #include <asm/insn.h>
  9. #include <asm/probes.h>
  10. #define MAX_UINSN_BYTES AARCH64_INSN_SIZE
  11. #define UPROBE_SWBP_INSN BRK64_OPCODE_UPROBES
  12. #define UPROBE_SWBP_INSN_SIZE AARCH64_INSN_SIZE
  13. #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES
  14. typedef u32 uprobe_opcode_t;
  15. struct arch_uprobe_task {
  16. };
  17. struct arch_uprobe {
  18. union {
  19. u8 insn[MAX_UINSN_BYTES];
  20. u8 ixol[MAX_UINSN_BYTES];
  21. };
  22. struct arch_probe_insn api;
  23. bool simulate;
  24. };
  25. #endif