Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ptrace.h File Reference
#include <generated/user_constants.h>
#include <sysdep/faultinfo.h>
#include "ptrace_64.h"

Go to the source code of this file.

Data Structures

struct  syscall_args
 
struct  uml_pt_regs
 

Macros

#define MAX_REG_OFFSET   (UM_FRAME_SIZE)
 
#define MAX_REG_NR   ((MAX_REG_OFFSET) / sizeof(unsigned long))
 
#define REGS_IP(r)   ((r)[HOST_IP])
 
#define REGS_SP(r)   ((r)[HOST_SP])
 
#define REGS_EFLAGS(r)   ((r)[HOST_EFLAGS])
 
#define REGS_AX(r)   ((r)[HOST_AX])
 
#define REGS_BX(r)   ((r)[HOST_BX])
 
#define REGS_CX(r)   ((r)[HOST_CX])
 
#define REGS_DX(r)   ((r)[HOST_DX])
 
#define REGS_SI(r)   ((r)[HOST_SI])
 
#define REGS_DI(r)   ((r)[HOST_DI])
 
#define REGS_BP(r)   ((r)[HOST_BP])
 
#define REGS_CS(r)   ((r)[HOST_CS])
 
#define REGS_SS(r)   ((r)[HOST_SS])
 
#define REGS_DS(r)   ((r)[HOST_DS])
 
#define REGS_ES(r)   ((r)[HOST_ES])
 
#define UPT_IP(r)   REGS_IP((r)->gp)
 
#define UPT_SP(r)   REGS_SP((r)->gp)
 
#define UPT_EFLAGS(r)   REGS_EFLAGS((r)->gp)
 
#define UPT_AX(r)   REGS_AX((r)->gp)
 
#define UPT_BX(r)   REGS_BX((r)->gp)
 
#define UPT_CX(r)   REGS_CX((r)->gp)
 
#define UPT_DX(r)   REGS_DX((r)->gp)
 
#define UPT_SI(r)   REGS_SI((r)->gp)
 
#define UPT_DI(r)   REGS_DI((r)->gp)
 
#define UPT_BP(r)   REGS_BP((r)->gp)
 
#define UPT_CS(r)   REGS_CS((r)->gp)
 
#define UPT_SS(r)   REGS_SS((r)->gp)
 
#define UPT_DS(r)   REGS_DS((r)->gp)
 
#define UPT_ES(r)   REGS_ES((r)->gp)
 
#define SYSCALL_ARGS(r)
 
#define EMPTY_UML_PT_REGS   { }
 
#define UPT_SYSCALL_NR(r)   ((r)->syscall)
 
#define UPT_FAULTINFO(r)   (&(r)->faultinfo)
 
#define UPT_IS_USER(r)   ((r)->is_user)
 

Functions

int user_context (unsigned long sp)
 

Macro Definition Documentation

#define EMPTY_UML_PT_REGS   { }

Definition at line 66 of file ptrace.h.

#define MAX_REG_NR   ((MAX_REG_OFFSET) / sizeof(unsigned long))

Definition at line 8 of file ptrace.h.

#define MAX_REG_OFFSET   (UM_FRAME_SIZE)

Definition at line 7 of file ptrace.h.

#define REGS_AX (   r)    ((r)[HOST_AX])

Definition at line 13 of file ptrace.h.

#define REGS_BP (   r)    ((r)[HOST_BP])

Definition at line 19 of file ptrace.h.

#define REGS_BX (   r)    ((r)[HOST_BX])

Definition at line 14 of file ptrace.h.

#define REGS_CS (   r)    ((r)[HOST_CS])

Definition at line 20 of file ptrace.h.

#define REGS_CX (   r)    ((r)[HOST_CX])

Definition at line 15 of file ptrace.h.

#define REGS_DI (   r)    ((r)[HOST_DI])

Definition at line 18 of file ptrace.h.

#define REGS_DS (   r)    ((r)[HOST_DS])

Definition at line 22 of file ptrace.h.

#define REGS_DX (   r)    ((r)[HOST_DX])

Definition at line 16 of file ptrace.h.

#define REGS_EFLAGS (   r)    ((r)[HOST_EFLAGS])

Definition at line 12 of file ptrace.h.

#define REGS_ES (   r)    ((r)[HOST_ES])

Definition at line 23 of file ptrace.h.

#define REGS_IP (   r)    ((r)[HOST_IP])

Definition at line 10 of file ptrace.h.

#define REGS_SI (   r)    ((r)[HOST_SI])

Definition at line 17 of file ptrace.h.

#define REGS_SP (   r)    ((r)[HOST_SP])

Definition at line 11 of file ptrace.h.

#define REGS_SS (   r)    ((r)[HOST_SS])

Definition at line 21 of file ptrace.h.

#define SYSCALL_ARGS (   r)
Value:
((struct syscall_args) \
{ .args = { UPT_SYSCALL_ARG1(r), \
UPT_SYSCALL_ARG2(r), \
UPT_SYSCALL_ARG3(r), \
UPT_SYSCALL_ARG4(r), \
UPT_SYSCALL_ARG5(r), \
UPT_SYSCALL_ARG6(r) } } )

Definition at line 50 of file ptrace.h.

#define UPT_AX (   r)    REGS_AX((r)->gp)

Definition at line 28 of file ptrace.h.

#define UPT_BP (   r)    REGS_BP((r)->gp)

Definition at line 34 of file ptrace.h.

#define UPT_BX (   r)    REGS_BX((r)->gp)

Definition at line 29 of file ptrace.h.

#define UPT_CS (   r)    REGS_CS((r)->gp)

Definition at line 35 of file ptrace.h.

#define UPT_CX (   r)    REGS_CX((r)->gp)

Definition at line 30 of file ptrace.h.

#define UPT_DI (   r)    REGS_DI((r)->gp)

Definition at line 33 of file ptrace.h.

#define UPT_DS (   r)    REGS_DS((r)->gp)

Definition at line 37 of file ptrace.h.

#define UPT_DX (   r)    REGS_DX((r)->gp)

Definition at line 31 of file ptrace.h.

#define UPT_EFLAGS (   r)    REGS_EFLAGS((r)->gp)

Definition at line 27 of file ptrace.h.

#define UPT_ES (   r)    REGS_ES((r)->gp)

Definition at line 38 of file ptrace.h.

#define UPT_FAULTINFO (   r)    (&(r)->faultinfo)

Definition at line 69 of file ptrace.h.

#define UPT_IP (   r)    REGS_IP((r)->gp)

Definition at line 25 of file ptrace.h.

#define UPT_IS_USER (   r)    ((r)->is_user)

Definition at line 70 of file ptrace.h.

#define UPT_SI (   r)    REGS_SI((r)->gp)

Definition at line 32 of file ptrace.h.

#define UPT_SP (   r)    REGS_SP((r)->gp)

Definition at line 26 of file ptrace.h.

#define UPT_SS (   r)    REGS_SS((r)->gp)

Definition at line 36 of file ptrace.h.

#define UPT_SYSCALL_NR (   r)    ((r)->syscall)

Definition at line 68 of file ptrace.h.

Function Documentation

int user_context ( unsigned long  sp)

Definition at line 248 of file process.c.