diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-07-23 07:37:33 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-07-23 07:37:33 (GMT) |
commit | 4f16d61f80d77a7c44bdf0b9ceccdb304e4c890f (patch) | |
tree | c01080efc6f4c25114e3e9183de8fcce241da9d6 /tools/perf/bench/mem-memcpy.c | |
parent | ea8596bb2d8d37957f3e92db9511c50801689180 (diff) | |
parent | f9ea55d0ddf66ed030b2a478625cd5792d30df16 (diff) | |
download | linux-fsl-qoriq-4f16d61f80d77a7c44bdf0b9ceccdb304e4c890f.tar.xz |
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:
* Fix memcpy benchmark for large sizes, from Andi Kleen.
* Support callchain sorting based on addresses, from Andi Kleen
* Move weight back to common sort keys, From Andi Kleen.
* Fix named threads support in 'perf script', from David Ahern.
* Handle ENODEV on default cycles event, fix from David Ahern.
* More install tests, from Jiri Olsa.
* Fix build with perl 5.18, from Kirill A. Shutemov.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/bench/mem-memcpy.c b/tools/perf/bench/mem-memcpy.c index 25fd3f1..8cdca43 100644 --- a/tools/perf/bench/mem-memcpy.c +++ b/tools/perf/bench/mem-memcpy.c @@ -117,6 +117,8 @@ static void alloc_mem(void **dst, void **src, size_t length) *src = zalloc(length); if (!*src) die("memory allocation failed - maybe length is too large?\n"); + /* Make sure to always replace the zero pages even if MMAP_THRESH is crossed */ + memset(*src, 0, length); } static u64 do_memcpy_cycle(memcpy_t fn, size_t len, bool prefault) |