Commit 6744c0b1 authored by Ian Rogers's avatar Ian Rogers Committed by Namhyung Kim
Browse files

perf stat: Allow no events to open if this is a "--null" run



It is intended that a "--null" run doesn't open any events.

Fixes: 2cc7aa99 ("perf stat: Refactor retry/skip/fatal error handling")
Tested-by: default avatarIngo Molnar <mingo@kernel.org>
Signed-off-by: default avatarIan Rogers <irogers@google.com>
Tested-by: default avatarThomas Richter <tmricht@linux.ibm.com>
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent b5826158
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -923,7 +923,7 @@ static int __run_perf_stat(int argc, const char **argv, int run_idx)
			goto err_out;
		}
	}
	if (!has_supported_counters) {
	if (!has_supported_counters && !stat_config.null_run) {
		evsel__open_strerror(evlist__first(evsel_list), &target, open_err,
				     msg, sizeof(msg));
		ui__error("No supported events found.\n%s\n", msg);