Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
traps.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/user.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/prctl.h>
#include <linux/delay.h>
#include <linux/kprobes.h>
#include <linux/kexec.h>
#include <linux/backlight.h>
#include <linux/bug.h>
#include <linux/kdebug.h>
#include <linux/debugfs.h>
#include <linux/ratelimit.h>
#include <asm/emulated_ops.h>
#include <asm/pgtable.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/machdep.h>
#include <asm/rtas.h>
#include <asm/pmc.h>
#include <asm/kexec.h>
#include <asm/ppc-opcode.h>
#include <asm/rio.h>
#include <asm/fadump.h>
#include <asm/switch_to.h>
#include <asm/debug.h>

Go to the source code of this file.

Macros

#define get_reason(regs)   ((regs)->msr)
 
#define get_mc_reason(regs)   ((regs)->msr)
 
#define REASON_FP   0x100000
 
#define REASON_ILLEGAL   0x80000
 
#define REASON_PRIVILEGED   0x40000
 
#define REASON_TRAP   0x20000
 
#define single_stepping(regs)   ((regs)->msr & MSR_SE)
 
#define clear_single_step(regs)   ((regs)->msr &= ~MSR_SE)
 

Functions

void die (const char *str, struct pt_regs *regs, long err)
 
void user_single_step_siginfo (struct task_struct *tsk, struct pt_regs *regs, siginfo_t *info)
 
void _exception (int signr, struct pt_regs *regs, int code, unsigned long addr)
 
int machine_check_generic (struct pt_regs *regs)
 
void machine_check_exception (struct pt_regs *regs)
 
void SMIException (struct pt_regs *regs)
 
void unknown_exception (struct pt_regs *regs)
 
void instruction_breakpoint_exception (struct pt_regs *regs)
 
void RunModeException (struct pt_regs *regs)
 
void __kprobes single_step_exception (struct pt_regs *regs)
 
int is_valid_bugaddr (unsigned long addr)
 
void __kprobes program_check_exception (struct pt_regs *regs)
 
void alignment_exception (struct pt_regs *regs)
 
void StackOverflow (struct pt_regs *regs)
 
void nonrecoverable_exception (struct pt_regs *regs)
 
void trace_syscall (struct pt_regs *regs)
 
void kernel_fp_unavailable_exception (struct pt_regs *regs)
 
void altivec_unavailable_exception (struct pt_regs *regs)
 
void vsx_unavailable_exception (struct pt_regs *regs)
 
void performance_monitor_exception (struct pt_regs *regs)
 
void TAUException (struct pt_regs *regs)
 
void unrecoverable_exception (struct pt_regs *regs)
 
void kernel_bad_stack (struct pt_regs *regs)
 
void __init trap_init (void)
 

Macro Definition Documentation

#define clear_single_step (   regs)    ((regs)->msr &= ~MSR_SE)

Definition at line 359 of file traps.c.

#define get_mc_reason (   regs)    ((regs)->msr)

Definition at line 352 of file traps.c.

#define get_reason (   regs)    ((regs)->msr)

Definition at line 351 of file traps.c.

#define REASON_FP   0x100000

Definition at line 353 of file traps.c.

#define REASON_ILLEGAL   0x80000

Definition at line 354 of file traps.c.

#define REASON_PRIVILEGED   0x40000

Definition at line 355 of file traps.c.

#define REASON_TRAP   0x20000

Definition at line 356 of file traps.c.

#define single_stepping (   regs)    ((regs)->msr & MSR_SE)

Definition at line 358 of file traps.c.

Function Documentation

void _exception ( int  signr,
struct pt_regs regs,
int  code,
unsigned long  addr 
)

Definition at line 232 of file traps.c.

void alignment_exception ( struct pt_regs regs)

Definition at line 1072 of file traps.c.

void altivec_unavailable_exception ( struct pt_regs regs)

Definition at line 1135 of file traps.c.

void die ( const char str,
struct pt_regs regs,
long  err 
)

Definition at line 214 of file traps.c.

void instruction_breakpoint_exception ( struct pt_regs regs)

Definition at line 716 of file traps.c.

int is_valid_bugaddr ( unsigned long  addr)

Definition at line 986 of file traps.c.

void kernel_bad_stack ( struct pt_regs regs)

Definition at line 1541 of file traps.c.

void kernel_fp_unavailable_exception ( struct pt_regs regs)

Definition at line 1128 of file traps.c.

void machine_check_exception ( struct pt_regs regs)

Definition at line 659 of file traps.c.

int machine_check_generic ( struct pt_regs regs)

Definition at line 622 of file traps.c.

void nonrecoverable_exception ( struct pt_regs regs)

Definition at line 1113 of file traps.c.

void performance_monitor_exception ( struct pt_regs regs)

Definition at line 1163 of file traps.c.

void __kprobes program_check_exception ( struct pt_regs regs)

Definition at line 991 of file traps.c.

void RunModeException ( struct pt_regs regs)

Definition at line 726 of file traps.c.

void __kprobes single_step_exception ( struct pt_regs regs)

Definition at line 731 of file traps.c.

void SMIException ( struct pt_regs regs)

Definition at line 703 of file traps.c.

void StackOverflow ( struct pt_regs regs)

Definition at line 1104 of file traps.c.

void TAUException ( struct pt_regs regs)

Definition at line 1354 of file traps.c.

void trace_syscall ( struct pt_regs regs)

Definition at line 1121 of file traps.c.

void __init trap_init ( void  )

Definition at line 1548 of file traps.c.

void unknown_exception ( struct pt_regs regs)

Definition at line 708 of file traps.c.

void unrecoverable_exception ( struct pt_regs regs)

Definition at line 1511 of file traps.c.

void user_single_step_siginfo ( struct task_struct tsk,
struct pt_regs regs,
siginfo_t info 
)

Definition at line 223 of file traps.c.

void vsx_unavailable_exception ( struct pt_regs regs)

Definition at line 1149 of file traps.c.