diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index ff3d25803400af60a00714b0e37d171cb15dca8d..b24ecee95fec1683d9d812e51e9392c260196c67 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c @@ -549,7 +549,10 @@ static int __run_perf_stat(int argc, const char **argv) ui__warning("%s event is not supported by the kernel.\n", perf_evsel__name(counter)); counter->supported = false; - continue; + + if ((counter->leader != counter) || + !(counter->leader->nr_members > 1)) + continue; } perf_evsel__open_strerror(counter, &target,