diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-06-25 01:42:24 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-06-25 01:42:24 -0400 |
commit | 06c654ca8b824e04f59f3f99d403494a140c181f (patch) | |
tree | 75c82621d95feab7b7e01e31e85bd7a95f7f28dc /tools/perf/bench/mem-memcpy.c | |
parent | 98d350cf7ae077eb8083ccc7c1bfc838344ac590 (diff) | |
parent | ecdac96899e3db3f428e4d2e978f25e3f8d35a6c (diff) |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
User visible changes:
* Add --repeat global option to 'perf bench' to be used in benchmarks
such as the existing 'futex' one, that was modified to use it instead
of a local option. (Davidlohr Bueso)
* Fix fd -> pathname resolution in 'trace', be it using /proc or
a vfs_getname probe point. (Arnaldo Carvalho de Melo)
* Add suggestion of how to set perf_event_paranoid sysctl, to help
non-root users trying tools like 'trace' to get a working environment.
(Arnaldo Carvalho de Melo)
Fixes:
* Fix memory leak in the 'sched-messaging' perf bench test. (Davidlohr Bueso)
* The -o and -n 'perf bench mem' options are mutually exclusive, emit error
when both are specified. (Davidlohr Bueso)
* Fix scrollbar refresh row index in the ui browser, problem exposed now
that headers will be added and will be allowed to be switched on/off.
(Jiri Olsa)
Cleanups:
* Remove needless reassignments in 'trace' (Arnaldo Carvalho de Melo)
* Cache the is_exit syscall test in 'trace) (Arnaldo Carvalho de Melo)
* No need to reimplement err() in 'perf bench sched-messaging', drop barf().
(Davidlohr Bueso).
* Remove ev_name argument from perf_evsel__hists_browse, can be obtained
from the other parameters. (Jiri Olsa)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/bench/mem-memcpy.c')
-rw-r--r-- | tools/perf/bench/mem-memcpy.c | 5 |
1 files changed, 5 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 | ||