Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fault.c File Reference
#include <linux/kernel_stat.h>
#include <linux/perf_event.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/ptrace.h>
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/compat.h>
#include <linux/smp.h>
#include <linux/kdebug.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/module.h>
#include <linux/hardirq.h>
#include <linux/kprobes.h>
#include <linux/uaccess.h>
#include <linux/hugetlb.h>
#include <asm/asm-offsets.h>
#include <asm/pgtable.h>
#include <asm/irq.h>
#include <asm/mmu_context.h>
#include <asm/facility.h>
#include "../kernel/entry.h"

Go to the source code of this file.

Macros

#define __FAIL_ADDR_MASK   0x7ffff000
 
#define __SUBCODE_MASK   0x0200
 
#define __PF_RES_FIELD   0ULL
 
#define VM_FAULT_BADCONTEXT   0x010000
 
#define VM_FAULT_BADMAP   0x020000
 
#define VM_FAULT_BADACCESS   0x040000
 
#define VM_FAULT_SIGNAL   0x080000
 

Functions

void fault_init (void)
 
void bust_spinlocks (int yes)
 
void __kprobes do_protection_exception (struct pt_regs *regs)
 
void __kprobes do_dat_exception (struct pt_regs *regs)
 
int __handle_fault (unsigned long uaddr, unsigned long pgm_int_code, int write)
 

Macro Definition Documentation

#define __FAIL_ADDR_MASK   0x7ffff000

Definition at line 40 of file fault.c.

#define __PF_RES_FIELD   0ULL

Definition at line 42 of file fault.c.

#define __SUBCODE_MASK   0x0200

Definition at line 41 of file fault.c.

#define VM_FAULT_BADACCESS   0x040000

Definition at line 51 of file fault.c.

#define VM_FAULT_BADCONTEXT   0x010000

Definition at line 49 of file fault.c.

#define VM_FAULT_BADMAP   0x020000

Definition at line 50 of file fault.c.

#define VM_FAULT_SIGNAL   0x080000

Definition at line 52 of file fault.c.

Function Documentation

int __handle_fault ( unsigned long  uaddr,
unsigned long  pgm_int_code,
int  write 
)

Definition at line 450 of file fault.c.

void bust_spinlocks ( int  yes)

Definition at line 81 of file fault.c.

void __kprobes do_dat_exception ( struct pt_regs regs)

Definition at line 409 of file fault.c.

void __kprobes do_protection_exception ( struct pt_regs regs)

Definition at line 387 of file fault.c.

void fault_init ( void  )

Definition at line 56 of file fault.c.