summaryrefslogtreecommitdiffstats
path: root/lib/fdt.c
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@axis.com>2014-12-02 16:50:41 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-12-09 09:14:08 -0300
commit1182f883113483cefbc3be0178a2df2dc9ae8b77 (patch)
tree5cf56d031e524a814e58f9d2a53233a7842c760a /lib/fdt.c
parent5bce1a5772cb52aad7e0466484ba07cfbfec2478 (diff)
downloadop-kernel-dev-1182f883113483cefbc3be0178a2df2dc9ae8b77.zip
op-kernel-dev-1182f883113483cefbc3be0178a2df2dc9ae8b77.tar.gz
perf bench: Fix memcpy/memset output
The memcpy and memset benchmarks return bogus results when iterations > 0 because the iterations value is not taken into account when calculating the final result: $ perf bench mem memset --only-prefault --length 1GB --iterations 1 # Running 'mem/memset' benchmark: # Copying 1GB Bytes ... 20.798669 GB/Sec (with prefault) $ perf bench mem memset --only-prefault --length 1GB --iterations 10 # Running 'mem/memset' benchmark: # Copying 1GB Bytes ... 2.086576 GB/Sec (with prefault) $ perf bench mem memset --only-prefault --length 1GB --iterations 100 # Running 'mem/memset' benchmark: # Copying 1GB Bytes ... 212.840917 MB/Sec (with prefault) Fix this. Signed-off-by: Rabin Vincent <rabin.vincent@axis.com> Acked-by: Ingo Molnar <mingo@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Rabin Vincent <rabin@rab.in> Cc: Rabin Vincent <rabinv@axis.com> Link: http://lkml.kernel.org/r/1417535441-3965-3-git-send-email-rabin.vincent@axis.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'lib/fdt.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud