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