diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index c643ed669ef..2cb74343de3 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -297,8 +297,10 @@ try_again: | |||
297 | } | 297 | } |
298 | 298 | ||
299 | printf("\n"); | 299 | printf("\n"); |
300 | error("sys_perf_event_open() syscall returned with %d (%s). /bin/dmesg may provide additional information.\n", | 300 | error("sys_perf_event_open() syscall returned with %d " |
301 | err, strerror(err)); | 301 | "(%s) for event %s. /bin/dmesg may provide " |
302 | "additional information.\n", | ||
303 | err, strerror(err), perf_evsel__name(pos)); | ||
302 | 304 | ||
303 | #if defined(__i386__) || defined(__x86_64__) | 305 | #if defined(__i386__) || defined(__x86_64__) |
304 | if (attr->type == PERF_TYPE_HARDWARE && | 306 | if (attr->type == PERF_TYPE_HARDWARE && |