-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hexagon: Remove unusable symbols from the ptrace.h uapi
Kernel-internal prototypes, references to current_thread_info() and code hidden behind a CONFIG_HEXAGON_ARCH_VERSION switch are certainly not usable in userspace, so this should not reside in a uapi header. Move the code into an internal version of ptrace.h instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
- Loading branch information
Thomas Huth
authored and
Arnd Bergmann
committed
Oct 25, 2023
1 parent
f820604
commit 550087a
Showing
3 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* Ptrace definitions for the Hexagon architecture | ||
* | ||
* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. | ||
*/ | ||
|
||
#ifndef _ASM_HEXAGON_PTRACE_H | ||
#define _ASM_HEXAGON_PTRACE_H | ||
|
||
#include <uapi/asm/ptrace.h> | ||
|
||
/* kprobe-based event tracer support */ | ||
extern int regs_query_register_offset(const char *name); | ||
extern const char *regs_query_register_name(unsigned int offset); | ||
|
||
#define current_pt_regs() \ | ||
((struct pt_regs *) \ | ||
((unsigned long)current_thread_info() + THREAD_SIZE) - 1) | ||
|
||
#if CONFIG_HEXAGON_ARCH_VERSION >= 4 | ||
#define arch_has_single_step() (1) | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters