ptrace.h 626 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Ptrace definitions for the Hexagon architecture
  4. *
  5. * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
  6. */
  7. #ifndef _ASM_HEXAGON_PTRACE_H
  8. #define _ASM_HEXAGON_PTRACE_H
  9. #include <uapi/asm/ptrace.h>
  10. /* kprobe-based event tracer support */
  11. extern int regs_query_register_offset(const char *name);
  12. extern const char *regs_query_register_name(unsigned int offset);
  13. #define current_pt_regs() \
  14. ((struct pt_regs *) \
  15. ((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
  16. #if CONFIG_HEXAGON_ARCH_VERSION >= 4
  17. #define arch_has_single_step() (1)
  18. #endif
  19. #endif