Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Current State

Functions to get the current state. More...

Functions

unsigned long _stp_ret_addr (struct pt_regs *regs)
 Get the current return address.

Detailed Description

Functions to get the current state.


Function Documentation

unsigned long _stp_ret_addr struct pt_regs *  regs  ) 
 

Get the current return address.

Call from kprobes (not jprobes).

Parameters:
regs The pt_regs saved by the kprobe.
Returns:
The return address saved in esp or rsp.
Note:
i386 and x86_64 only so far.

Definition at line 21 of file current.c.