[PATCH v4 11/29] selftests/resctrl: Split measure_cache_vals()