uprobes.h 777 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2014-2016 Pratyush Anand <panand@redhat.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef _ASM_UPROBES_H
  9. #define _ASM_UPROBES_H
  10. #include <asm/debug-monitors.h>
  11. #include <asm/insn.h>
  12. #include <asm/probes.h>
  13. #define MAX_UINSN_BYTES AARCH64_INSN_SIZE
  14. #define UPROBE_SWBP_INSN BRK64_OPCODE_UPROBES
  15. #define UPROBE_SWBP_INSN_SIZE AARCH64_INSN_SIZE
  16. #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES
  17. typedef u32 uprobe_opcode_t;
  18. struct arch_uprobe_task {
  19. };
  20. struct arch_uprobe {
  21. union {
  22. u8 insn[MAX_UINSN_BYTES];
  23. u8 ixol[MAX_UINSN_BYTES];
  24. };
  25. struct arch_probe_insn api;
  26. bool simulate;
  27. };
  28. #endif