We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e84ba4e commit 0089fa9Copy full SHA for 0089fa9
tools/perf/builtin-record.c
@@ -363,7 +363,8 @@ static int perf_record__open(struct perf_record *rec)
363
"or try again with a smaller value of -m/--mmap_pages.\n"
364
"(current value: %d)\n", opts->mmap_pages);
365
rc = -errno;
366
- } else if (!is_power_of_2(opts->mmap_pages)) {
+ } else if (!is_power_of_2(opts->mmap_pages) &&
367
+ (opts->mmap_pages != UINT_MAX)) {
368
pr_err("--mmap_pages/-m value must be a power of two.");
369
rc = -EINVAL;
370
} else {
0 commit comments