aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-09-27 06:38:12 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2012-09-27 06:46:22 -0400
commit27aa55c5e5123fa8b8ad0156559d34d7edff58ca (patch)
tree51b07e057fe8bd8320a770f82bde61e43f6da520 /arch/arm64
parent0d0109a440ea211e398118752c26d4bad540e604 (diff)
arm64: ptrace: remove obsolete ptrace request numbers from user headers
The use of regsets has removed the need for many private ptrace requests, so remove the corresponding definitions from the user-visible ptrace.h Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/include/asm/ptrace.h17
-rw-r--r--arch/arm64/kernel/ptrace.c12
2 files changed, 12 insertions, 17 deletions
diff --git a/arch/arm64/include/asm/ptrace.h b/arch/arm64/include/asm/ptrace.h
index b0a2e1f441fb..0fa5d6c9ef76 100644
--- a/arch/arm64/include/asm/ptrace.h
+++ b/arch/arm64/include/asm/ptrace.h
@@ -23,20 +23,15 @@
23 23
24#include <asm/hwcap.h> 24#include <asm/hwcap.h>
25 25
26#define PTRACE_GETREGS 12
27#define PTRACE_SETREGS 13
28#define PTRACE_GETFPSIMDREGS 14
29#define PTRACE_SETFPSIMDREGS 15
30/* PTRACE_ATTACH is 16 */
31/* PTRACE_DETACH is 17 */
32#define PTRACE_GET_THREAD_AREA 22
33#define PTRACE_SET_SYSCALL 23
34#define PTRACE_GETHBPREGS 29
35#define PTRACE_SETHBPREGS 30
36
37/* AArch32-specific ptrace requests */ 26/* AArch32-specific ptrace requests */
27#define COMPAT_PTRACE_GETREGS 12
28#define COMPAT_PTRACE_SETREGS 13
29#define COMPAT_PTRACE_GET_THREAD_AREA 22
30#define COMPAT_PTRACE_SET_SYSCALL 23
38#define COMPAT_PTRACE_GETVFPREGS 27 31#define COMPAT_PTRACE_GETVFPREGS 27
39#define COMPAT_PTRACE_SETVFPREGS 28 32#define COMPAT_PTRACE_SETVFPREGS 28
33#define COMPAT_PTRACE_GETHBPREGS 29
34#define COMPAT_PTRACE_SETHBPREGS 30
40 35
41/* 36/*
42 * PSR bits 37 * PSR bits
diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c
index 490f7537a270..ac3550ecc7b5 100644
--- a/arch/arm64/kernel/ptrace.c
+++ b/arch/arm64/kernel/ptrace.c
@@ -1005,7 +1005,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
1005 ret = compat_ptrace_write_user(child, addr, data); 1005 ret = compat_ptrace_write_user(child, addr, data);
1006 break; 1006 break;
1007 1007
1008 case PTRACE_GETREGS: 1008 case COMPAT_PTRACE_GETREGS:
1009 ret = copy_regset_to_user(child, 1009 ret = copy_regset_to_user(child,
1010 &user_aarch32_view, 1010 &user_aarch32_view,
1011 REGSET_COMPAT_GPR, 1011 REGSET_COMPAT_GPR,
@@ -1013,7 +1013,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
1013 datap); 1013 datap);
1014 break; 1014 break;
1015 1015
1016 case PTRACE_SETREGS: 1016 case COMPAT_PTRACE_SETREGS:
1017 ret = copy_regset_from_user(child, 1017 ret = copy_regset_from_user(child,
1018 &user_aarch32_view, 1018 &user_aarch32_view,
1019 REGSET_COMPAT_GPR, 1019 REGSET_COMPAT_GPR,
@@ -1021,12 +1021,12 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
1021 datap); 1021 datap);
1022 break; 1022 break;
1023 1023
1024 case PTRACE_GET_THREAD_AREA: 1024 case COMPAT_PTRACE_GET_THREAD_AREA:
1025 ret = put_user((compat_ulong_t)child->thread.tp_value, 1025 ret = put_user((compat_ulong_t)child->thread.tp_value,
1026 (compat_ulong_t __user *)datap); 1026 (compat_ulong_t __user *)datap);
1027 break; 1027 break;
1028 1028
1029 case PTRACE_SET_SYSCALL: 1029 case COMPAT_PTRACE_SET_SYSCALL:
1030 task_pt_regs(child)->syscallno = data; 1030 task_pt_regs(child)->syscallno = data;
1031 ret = 0; 1031 ret = 0;
1032 break; 1032 break;
@@ -1048,11 +1048,11 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
1048 break; 1048 break;
1049 1049
1050#ifdef CONFIG_HAVE_HW_BREAKPOINT 1050#ifdef CONFIG_HAVE_HW_BREAKPOINT
1051 case PTRACE_GETHBPREGS: 1051 case COMPAT_PTRACE_GETHBPREGS:
1052 ret = compat_ptrace_gethbpregs(child, addr, datap); 1052 ret = compat_ptrace_gethbpregs(child, addr, datap);
1053 break; 1053 break;
1054 1054
1055 case PTRACE_SETHBPREGS: 1055 case COMPAT_PTRACE_SETHBPREGS:
1056 ret = compat_ptrace_sethbpregs(child, addr, datap); 1056 ret = compat_ptrace_sethbpregs(child, addr, datap);
1057 break; 1057 break;
1058#endif 1058#endif