Go to the documentation of this file. 1 #ifndef _ASM_X86_PTRACE_H
2 #define _ASM_X86_PTRACE_H
4 #include <linux/compiler.h>
9 #include <asm/segment.h>
55 unsigned long orig_ax;
116 unsigned long orig_ax;
134 #ifdef CONFIG_PARAVIRT
142 #define profile_pc profile_pc
152 static inline unsigned long regs_return_value(
struct pt_regs *
regs)
169 return !!(regs->
cs & 3);
173 static inline int user_mode_vm(
struct pt_regs *regs)
183 static inline int v8086_mode(
struct pt_regs *regs)
186 return (regs->
flags & X86_VM_MASK);
193 static inline bool user_64bit_mode(
struct pt_regs *regs)
195 #ifndef CONFIG_PARAVIRT
217 #define GET_IP(regs) ((regs)->ip)
218 #define GET_FP(regs) ((regs)->bp)
219 #define GET_USP(regs) ((regs)->sp)
226 #define MAX_REG_OFFSET (offsetof(struct pt_regs, ss))
242 return *(
unsigned long *)((
unsigned long)regs +
offset);
280 #define arch_has_single_step() (1)
281 #ifdef CONFIG_X86_DEBUGCTLMSR
282 #define arch_has_block_step() (1)
284 #define arch_has_block_step() (boot_cpu_data.x86 >= 6)
287 #define ARCH_HAS_USER_SINGLE_STEP_INFO