Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ptrace.c File Reference
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/errno.h>
#include <linux/ptrace.h>
#include <linux/user.h>
#include <linux/signal.h>
#include <linux/tracehook.h>
#include <asm/uaccess.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/processor.h>

Go to the source code of this file.


#define SR_MASK   0x001f
#define TRACE_BITS   0xC000
#define T1_BIT   0x8000
#define T0_BIT   0x4000
#define PT_REG(reg)   ((long)&((struct pt_regs *)0)->reg)
#define SW_REG(reg)


void ptrace_disable (struct task_struct *child)
void user_enable_single_step (struct task_struct *child)
void user_disable_single_step (struct task_struct *child)
long arch_ptrace (struct task_struct *child, long request, unsigned long addr, unsigned long data)
asmlinkage void syscall_trace (void)
asmlinkage int syscall_trace_enter (void)
asmlinkage void syscall_trace_leave (void)

Macro Definition Documentation

#define PT_REG (   reg)    ((long)&((struct pt_regs *)0)->reg)

Definition at line 43 of file ptrace.c.

#define SR_MASK   0x001f

Definition at line 35 of file ptrace.c.

#define SW_REG (   reg)
((long)&((struct switch_stack *)0)->reg \
- sizeof(struct switch_stack))

Definition at line 44 of file ptrace.c.

#define T0_BIT   0x4000

Definition at line 40 of file ptrace.c.

#define T1_BIT   0x8000

Definition at line 39 of file ptrace.c.

#define TRACE_BITS   0xC000

Definition at line 38 of file ptrace.c.

Function Documentation

long arch_ptrace ( struct task_struct child,
long  request,
unsigned long  addr,
unsigned long  data 

Definition at line 161 of file ptrace.c.

void ptrace_disable ( struct task_struct child)

Definition at line 136 of file ptrace.c.

asmlinkage void syscall_trace ( void  )

Definition at line 274 of file ptrace.c.

Definition at line 290 of file ptrace.c.

asmlinkage void syscall_trace_leave ( void  )

Definition at line 299 of file ptrace.c.

void user_disable_single_step ( struct task_struct child)

Definition at line 156 of file ptrace.c.

void user_enable_single_step ( struct task_struct child)

Definition at line 141 of file ptrace.c.