diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/evlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 0582f67fbefc..1c173ccb0ef2 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -607,6 +607,8 @@ static int __perf_evlist__mmap(struct perf_evlist *evlist, | |||
607 | evlist->mmap[idx].base = mmap(NULL, evlist->mmap_len, prot, | 607 | evlist->mmap[idx].base = mmap(NULL, evlist->mmap_len, prot, |
608 | MAP_SHARED, fd, 0); | 608 | MAP_SHARED, fd, 0); |
609 | if (evlist->mmap[idx].base == MAP_FAILED) { | 609 | if (evlist->mmap[idx].base == MAP_FAILED) { |
610 | pr_debug2("failed to mmap perf event ring buffer, error %d\n", | ||
611 | errno); | ||
610 | evlist->mmap[idx].base = NULL; | 612 | evlist->mmap[idx].base = NULL; |
611 | return -1; | 613 | return -1; |
612 | } | 614 | } |