Linux 6.14-rc1
[linux.git] / arch / hexagon / include / asm / ptrace.h
blobed35da1ee685a55f6f2630de1030d64e387cae8e
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Ptrace definitions for the Hexagon architecture
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
6 */
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() \
18 ((struct 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)
23 #endif
25 #endif