diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 87866294a0e6..deaee42d5eb0 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -356,9 +356,6 @@ try_again: | |||
356 | if (fd[nr_cpu][counter] < 0) { | 356 | if (fd[nr_cpu][counter] < 0) { |
357 | int err = errno; | 357 | int err = errno; |
358 | 358 | ||
359 | if (verbose) | ||
360 | error("sys_perf_counter_open() syscall returned with %d (%s)\n", | ||
361 | fd[nr_cpu][counter], strerror(err)); | ||
362 | if (err == EPERM) | 359 | if (err == EPERM) |
363 | die("Permission error - are you root?\n"); | 360 | die("Permission error - are you root?\n"); |
364 | 361 | ||
@@ -376,6 +373,10 @@ try_again: | |||
376 | attr->config = PERF_COUNT_CPU_CLOCK; | 373 | attr->config = PERF_COUNT_CPU_CLOCK; |
377 | goto try_again; | 374 | goto try_again; |
378 | } | 375 | } |
376 | printf("\n"); | ||
377 | error("perfcounter syscall returned with %d (%s)\n", | ||
378 | fd[nr_cpu][counter], strerror(err)); | ||
379 | die("No CONFIG_PERF_COUNTERS=y kernel support configured?\n"); | ||
379 | exit(-1); | 380 | exit(-1); |
380 | } | 381 | } |
381 | 382 | ||