Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277355
b: refs/heads/master
c: 18e6093
h: refs/heads/master
i:
  277353: 0a1762b
  277351: fc9dc04
v: v3
  • Loading branch information
Nelson Elhage authored and Arnaldo Carvalho de Melo committed Dec 23, 2011
1 parent 8246163 commit a08f2dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f41612f43be9575e1160460b08c3a760e6e27e1b
refs/heads/master: 18e6093904abfd51671ff5846c2fdaba9ebbf21b
9 changes: 8 additions & 1 deletion trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,15 @@ static void perf_record__open(struct perf_record *rec)
exit(-1);
}

if (perf_evlist__mmap(evlist, opts->mmap_pages, false) < 0)
if (perf_evlist__mmap(evlist, opts->mmap_pages, false) < 0) {
if (errno == EPERM)
die("Permission error mapping pages.\n"
"Consider increasing "
"/proc/sys/kernel/perf_event_mlock_kb,\n"
"or try again with a smaller value of -m/--mmap_pages.\n"
"(current value: %d)\n", opts->mmap_pages);
die("failed to mmap with %d (%s)\n", errno, strerror(errno));
}

if (rec->file_new)
session->evlist = evlist;
Expand Down

0 comments on commit a08f2dd

Please sign in to comment.