[PATCH v4 27/29] selftests/resctrl: Add helper to convert L2/3 to integer