Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
ptrace.h File Reference
#include <uapi/asm/ptrace.h>

Go to the source code of this file.

Macros

#define PS_S   (0x2000)
 
#define PS_M   (0x1000)
 
#define user_mode(regs)   (!((regs)->sr & PS_S))
 
#define instruction_pointer(regs)   ((regs)->pc)
 
#define profile_pc(regs)   instruction_pointer(regs)
 
#define current_pt_regs()   (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1
 
#define arch_has_single_step()   (1)
 

Macro Definition Documentation

#define arch_has_single_step ( )    (1)

Definition at line 19 of file ptrace.h.

#define current_pt_regs ( )    (struct pt_regs *)((char *)current_thread_info() + THREAD_SIZE) - 1

Definition at line 16 of file ptrace.h.

#define instruction_pointer (   regs)    ((regs)->pc)

Definition at line 14 of file ptrace.h.

#define profile_pc (   regs)    instruction_pointer(regs)

Definition at line 15 of file ptrace.h.

#define PS_M   (0x1000)

Definition at line 10 of file ptrace.h.

#define PS_S   (0x2000)

Definition at line 9 of file ptrace.h.

#define user_mode (   regs)    (!((regs)->sr & PS_S))

Definition at line 13 of file ptrace.h.