intel/perf: move perf-related state into gen_perf_context