Function x86_64::instructions::read_rip[][src]

pub fn read_rip() -> VirtAddr
This is supported on crate features nightly or inline_asm only.
Expand description

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