x86_64::registers
pub fn read_rip() -> u64
Gets the current instruction pointer. Note that this is only approximate as it requires a few instructions to execute.