diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-12-28 03:53:47 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-28 03:53:47 -0500 |
commit | 34d0b5af50a063cded842716633501b38ff815fb (patch) | |
tree | c729b349fd43e40530a65d073a8476ff754b4b2d /arch/sh/include/asm/ptrace.h | |
parent | 22648735405f73299b717bb5933767e9a9c335ca (diff) |
sh: Convert ptrace to hw_breakpoint API.
This is the initial step for converting singlestep handling via ptrace
over to hw_breakpoints.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/ptrace.h')
-rw-r--r-- | arch/sh/include/asm/ptrace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/include/asm/ptrace.h b/arch/sh/include/asm/ptrace.h index 1dc12cb44a2d..201d11ef211f 100644 --- a/arch/sh/include/asm/ptrace.h +++ b/arch/sh/include/asm/ptrace.h | |||
@@ -124,6 +124,12 @@ struct task_struct; | |||
124 | extern void user_enable_single_step(struct task_struct *); | 124 | extern void user_enable_single_step(struct task_struct *); |
125 | extern void user_disable_single_step(struct task_struct *); | 125 | extern void user_disable_single_step(struct task_struct *); |
126 | 126 | ||
127 | struct perf_event; | ||
128 | struct perf_sample_data; | ||
129 | |||
130 | extern void ptrace_triggered(struct perf_event *bp, int nmi, | ||
131 | struct perf_sample_data *data, struct pt_regs *regs); | ||
132 | |||
127 | #define task_pt_regs(task) \ | 133 | #define task_pt_regs(task) \ |
128 | ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1) | 134 | ((struct pt_regs *) (task_stack_page(task) + THREAD_SIZE) - 1) |
129 | 135 | ||