intel/perf: use temporary pointers to simplify access to perf state