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

Go to the source code of this file.

Macros

#define instruction_pointer(regs)   pt_elr(regs)
 
#define user_stack_pointer(regs)   ((regs)->r29)
 
#define profile_pc(regs)   instruction_pointer(regs)
 

Functions

int regs_query_register_offset (const char *name)
 
const charregs_query_register_name (unsigned int offset)
 

Macro Definition Documentation

#define instruction_pointer (   regs)    pt_elr(regs)

Definition at line 26 of file ptrace.h.

#define profile_pc (   regs)    instruction_pointer(regs)

Definition at line 29 of file ptrace.h.

#define user_stack_pointer (   regs)    ((regs)->r29)

Definition at line 27 of file ptrace.h.

Function Documentation

const char* regs_query_register_name ( unsigned int  offset)

regs_query_register_name() - query register name from its offset : the offset of a register in struct pt_regs.

regs_query_register_name() returns the name of a register from its offset in struct pt_regs. If the is invalid, this returns NULL;

Definition at line 116 of file ptrace.c.

int regs_query_register_offset ( const char name)

Definition at line 100 of file ptrace.c.