aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/builtin-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index be4e1eee782e..10b1f1f25ed7 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -245,7 +245,7 @@ try_again:
245 * based cpu-clock-tick sw counter, which 245 * based cpu-clock-tick sw counter, which
246 * is always available even if no PMU support: 246 * is always available even if no PMU support:
247 */ 247 */
248 if (attr->type == PERF_TYPE_HARDWARE 248 if (err == ENOENT && attr->type == PERF_TYPE_HARDWARE
249 && attr->config == PERF_COUNT_HW_CPU_CYCLES) { 249 && attr->config == PERF_COUNT_HW_CPU_CYCLES) {
250 250
251 if (verbose) 251 if (verbose)