perf tools: Introduce regs_query_register_offset() for x86