x86_64::instructions

Function read_rip

Source
pub fn read_rip() -> VirtAddr
Expand description

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