diff options
| -rw-r--r-- | tools/perf/bench/mem-memcpy.c | 5 | ||||
| -rw-r--r-- | tools/perf/bench/mem-memset.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/bench/mem-memcpy.c b/tools/perf/bench/mem-memcpy.c index 5ce71d3b72cf..e622c3e96efc 100644 --- a/tools/perf/bench/mem-memcpy.c +++ b/tools/perf/bench/mem-memcpy.c | |||
| @@ -189,6 +189,11 @@ int bench_mem_memcpy(int argc, const char **argv, | |||
| 189 | argc = parse_options(argc, argv, options, | 189 | argc = parse_options(argc, argv, options, |
| 190 | bench_mem_memcpy_usage, 0); | 190 | bench_mem_memcpy_usage, 0); |
| 191 | 191 | ||
| 192 | if (no_prefault && only_prefault) { | ||
| 193 | fprintf(stderr, "Invalid options: -o and -n are mutually exclusive\n"); | ||
| 194 | return 1; | ||
| 195 | } | ||
| 196 | |||
| 192 | if (use_cycle) | 197 | if (use_cycle) |
| 193 | init_cycle(); | 198 | init_cycle(); |
| 194 | 199 | ||
diff --git a/tools/perf/bench/mem-memset.c b/tools/perf/bench/mem-memset.c index 9af79d2b18e5..2a65468619f0 100644 --- a/tools/perf/bench/mem-memset.c +++ b/tools/perf/bench/mem-memset.c | |||
| @@ -181,6 +181,11 @@ int bench_mem_memset(int argc, const char **argv, | |||
| 181 | argc = parse_options(argc, argv, options, | 181 | argc = parse_options(argc, argv, options, |
| 182 | bench_mem_memset_usage, 0); | 182 | bench_mem_memset_usage, 0); |
| 183 | 183 | ||
| 184 | if (no_prefault && only_prefault) { | ||
| 185 | fprintf(stderr, "Invalid options: -o and -n are mutually exclusive\n"); | ||
| 186 | return 1; | ||
| 187 | } | ||
| 188 | |||
| 184 | if (use_cycle) | 189 | if (use_cycle) |
| 185 | init_cycle(); | 190 | init_cycle(); |
| 186 | 191 | ||
