[PATCH v4 17/29] selftests/resctrl: Convert perf related globals to locals