xref: /linux/arch/hexagon/include/asm/ptrace.h (revision 24168c5e6dfbdd5b414f048f47f75d64533296ca)
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 
8 #ifndef _ASM_HEXAGON_PTRACE_H
9 #define _ASM_HEXAGON_PTRACE_H
10 
11 #include <uapi/asm/ptrace.h>
12 
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);
16 
17 #define current_pt_regs() \
18 	((struct pt_regs *) \
19 	 ((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
20 
21 #if CONFIG_HEXAGON_ARCH_VERSION >= 4
22 #define arch_has_single_step()	(1)
23 #endif
24 
25 #endif
26