]> git.baikalelectronics.ru Git - kernel.git/commit
perf bench: Fix order of arguments to memcpy_alloc_mem
authorBruce Merry <bmerry@ska.ac.za>
Thu, 15 Jan 2015 09:20:22 +0000 (11:20 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 Feb 2015 02:10:56 +0000 (23:10 -0300)
commit1f2ceebf52f4d88679668db09614cd4ec8adab4d
tree6fcf188b779d1db89c2ff54f98584105ae30ac60
parent8ae7ee85eb2abcb7e214dbd4fd33a475a637d4ab
perf bench: Fix order of arguments to memcpy_alloc_mem

This was causing the destination instead of the source to be filled.  As
a result, the source was typically all mapped to one zero page, and
hence very cacheable.

Signed-off-by: Bruce Merry <bmerry@ska.ac.za>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20150115092022.GA11292@kryton
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/mem-memcpy.c