[PATCH v6 0/2] selftests/resctrl: Bug fix and optimization