diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 326e8a79cabf..04f335ef9a8c 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -281,7 +281,7 @@ try_again: | |||
281 | if (fd[nr_cpu][counter] < 0) { | 281 | if (fd[nr_cpu][counter] < 0) { |
282 | int err = errno; | 282 | int err = errno; |
283 | 283 | ||
284 | if (err == EPERM) | 284 | if (err == EPERM || err == EACCES) |
285 | die("Permission error - are you root?\n"); | 285 | die("Permission error - are you root?\n"); |
286 | else if (err == ENODEV && profile_cpu != -1) | 286 | else if (err == ENODEV && profile_cpu != -1) |
287 | die("No such device - did you specify an out-of-range profile CPU?\n"); | 287 | die("No such device - did you specify an out-of-range profile CPU?\n"); |