Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
kprobes-common.h File Reference

Go to the source code of this file.

Macros

#define SAVE_REGS_STRING
 
#define RESTORE_REGS_STRING
 

Functions

int can_boost (kprobe_opcode_t *instruction)
 
unsigned long recover_probed_instruction (kprobe_opcode_t *buf, unsigned long addr)
 
int __copy_instruction (u8 *dest, u8 *src)
 
void synthesize_reljump (void *from, void *to)
 
void synthesize_relcall (void *from, void *to)
 

Macro Definition Documentation

#define RESTORE_REGS_STRING
Value:
" popl %ebx\n" \
" popl %ecx\n" \
" popl %edx\n" \
" popl %esi\n" \
" popl %edi\n" \
" popl %ebp\n" \
" popl %eax\n" \
/* Skip ds, es, fs, gs, orig_ax, and ip. Note: don't pop cs here*/\
" addl $24, %esp\n"

Definition at line 57 of file kprobes-common.h.

#define SAVE_REGS_STRING
Value:
/* Skip cs, ip, orig_ax and gs. */ \
" subl $16, %esp\n" \
" pushl %fs\n" \
" pushl %es\n" \
" pushl %ds\n" \
" pushl %eax\n" \
" pushl %ebp\n" \
" pushl %edi\n" \
" pushl %esi\n" \
" pushl %edx\n" \
" pushl %ecx\n" \
" pushl %ebx\n"

Definition at line 44 of file kprobes-common.h.

Function Documentation

int __copy_instruction ( u8 dest,
u8 src 
)

Definition at line 325 of file kprobes.c.

int can_boost ( kprobe_opcode_t instruction)

Definition at line 162 of file kprobes.c.

unsigned long recover_probed_instruction ( kprobe_opcode_t buf,
unsigned long  addr 
)

Definition at line 251 of file kprobes.c.

void synthesize_relcall ( void from,
void to 
)

Definition at line 134 of file kprobes.c.

void synthesize_reljump ( void from,
void to 
)

Definition at line 128 of file kprobes.c.