perf/core: Fix group {cpu,task} validation