aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/ptrace/ptrace-decl.h
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2020-02-28 00:14:43 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2020-04-01 14:30:48 +1100
commit60ef9dbd9d2ada53f488f75ae7fef13bb4962636 (patch)
treed79961d033508b5aa8c1411f7fe4f7f16e989049 /arch/powerpc/kernel/ptrace/ptrace-decl.h
parentpowerpc/ptrace: split out ALTIVEC related functions. (diff)
downloadlinux-dev-60ef9dbd9d2ada53f488f75ae7fef13bb4962636.tar.xz
linux-dev-60ef9dbd9d2ada53f488f75ae7fef13bb4962636.zip
powerpc/ptrace: split out SPE related functions.
Move CONFIG_SPE functions out of ptrace.c, into ptrace-spe.c Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/0f17a331760310b5562fae3791cdd3cf9c64237b.1582848567.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/powerpc/kernel/ptrace/ptrace-decl.h')
-rw-r--r--arch/powerpc/kernel/ptrace/ptrace-decl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ptrace/ptrace-decl.h b/arch/powerpc/kernel/ptrace/ptrace-decl.h
index 0f9282cb52fc..8a362f97f1d6 100644
--- a/arch/powerpc/kernel/ptrace/ptrace-decl.h
+++ b/arch/powerpc/kernel/ptrace/ptrace-decl.h
@@ -26,6 +26,15 @@ int vr_set(struct task_struct *target, const struct user_regset *regset,
unsigned int pos, unsigned int count,
const void *kbuf, const void __user *ubuf);
+/* ptrace-spe */
+
+int evr_active(struct task_struct *target, const struct user_regset *regset);
+int evr_get(struct task_struct *target, const struct user_regset *regset,
+ unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf);
+int evr_set(struct task_struct *target, const struct user_regset *regset,
+ unsigned int pos, unsigned int count,
+ const void *kbuf, const void __user *ubuf);
+
/* ptrace */
#ifdef CONFIG_PPC_TRANSACTIONAL_MEM