Function x86_64::instructions::read_rip

source ·
pub fn read_rip() -> VirtAddr
Available on crate feature instructions only.
Expand description

Gets the current instruction pointer. Note that this is only approximate as it requires a few instructions to execute.