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

Go to the source code of this file.

Data Structures

struct  arch_specific_insn
 
struct  prev_kprobe
 
struct  kprobe_ctlblk
 

Macros

#define BREAKPOINT_INSTRUCTION   0x0002
 
#define MAX_INSN_SIZE   0x0003
 
#define MAX_STACK_SIZE   64
 
#define MIN_STACK_SIZE(ADDR)
 
#define kretprobe_blacklist_size   0
 
#define KPROBE_SWAP_INST   0x10
 
#define FIXUP_PSW_NORMAL   0x08
 
#define FIXUP_BRANCH_NOT_TAKEN   0x04
 
#define FIXUP_RETURN_REGISTER   0x02
 
#define FIXUP_NOT_REQUIRED   0x01
 
#define flush_insn_slot(p)   do { } while (0)
 

Typedefs

typedef u16 kprobe_opcode_t
 

Functions

void arch_remove_kprobe (struct kprobe *p)
 
void kretprobe_trampoline (void)
 
int kprobe_fault_handler (struct pt_regs *regs, int trapnr)
 
int kprobe_exceptions_notify (struct notifier_block *self, unsigned long val, void *data)
 

Macro Definition Documentation

#define BREAKPOINT_INSTRUCTION   0x0002

Definition at line 38 of file kprobes.h.

#define FIXUP_BRANCH_NOT_TAKEN   0x04

Definition at line 53 of file kprobes.h.

#define FIXUP_NOT_REQUIRED   0x01

Definition at line 55 of file kprobes.h.

#define FIXUP_PSW_NORMAL   0x08

Definition at line 52 of file kprobes.h.

#define FIXUP_RETURN_REGISTER   0x02

Definition at line 54 of file kprobes.h.

#define flush_insn_slot (   p)    do { } while (0)

Definition at line 85 of file kprobes.h.

#define KPROBE_SWAP_INST   0x10

Definition at line 50 of file kprobes.h.

#define kretprobe_blacklist_size   0

Definition at line 48 of file kprobes.h.

#define MAX_INSN_SIZE   0x0003

Definition at line 41 of file kprobes.h.

#define MAX_STACK_SIZE   64

Definition at line 42 of file kprobes.h.

#define MIN_STACK_SIZE (   ADDR)
Value:
(((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR))) \
: (((unsigned long)current_thread_info()) + THREAD_SIZE - (ADDR)))

Definition at line 43 of file kprobes.h.

Typedef Documentation

Definition at line 35 of file kprobes.h.

Function Documentation

void arch_remove_kprobe ( struct kprobe p)

Definition at line 158 of file kprobes.c.

int kprobe_exceptions_notify ( struct notifier_block self,
unsigned long  val,
void data 
)

Definition at line 359 of file kprobes.c.

int kprobe_fault_handler ( struct pt_regs regs,
int  trapnr 
)

Definition at line 186 of file kprobes.c.

void kretprobe_trampoline ( void  )

Definition at line 377 of file kprobes.c.