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