diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:30:54 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:54 -0500 |
commit | 10faa81e102e2b7695f386812055cd2ef9e44b4c (patch) | |
tree | bd21d2094eacca5b07d5ee5977cb0ad57ebc5c02 /include/asm-x86/ptrace.h | |
parent | 7e9916040b3020d0f36d68bb7512e3b80b623097 (diff) |
x86: debugctlmsr arch_has_block_step
This implements user-mode step-until-branch on x86 using the BTF bit
in MSR_IA32_DEBUGCTLMSR. It's just like single-step, only less so.
Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/ptrace.h')
-rw-r--r-- | include/asm-x86/ptrace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h index d223decd7b01..04204f359298 100644 --- a/include/asm-x86/ptrace.h +++ b/include/asm-x86/ptrace.h | |||
@@ -150,6 +150,13 @@ enum { | |||
150 | extern void user_enable_single_step(struct task_struct *); | 150 | extern void user_enable_single_step(struct task_struct *); |
151 | extern void user_disable_single_step(struct task_struct *); | 151 | extern void user_disable_single_step(struct task_struct *); |
152 | 152 | ||
153 | extern void user_enable_block_step(struct task_struct *); | ||
154 | #ifdef CONFIG_X86_DEBUGCTLMSR | ||
155 | #define arch_has_block_step() (1) | ||
156 | #else | ||
157 | #define arch_has_block_step() (boot_cpu_data.x86 >= 6) | ||
158 | #endif | ||
159 | |||
153 | struct user_desc; | 160 | struct user_desc; |
154 | extern int do_get_thread_area(struct task_struct *p, int idx, | 161 | extern int do_get_thread_area(struct task_struct *p, int idx, |
155 | struct user_desc __user *info); | 162 | struct user_desc __user *info); |