selftest/powerpc: Add additional option to mmap_bench test
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 28 Nov 2017 08:36:39 +0000 (14:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 12:37:43 +0000 (23:37 +1100)
commitbe68fb64f763b7b6ddb202e0a931f41ae62f71b0
tree3b9efff6a564842fc9a2e05ef17adc83b07f90ba
parent10527e808123f4b12db604993638b368220e7814
selftest/powerpc: Add additional option to mmap_bench test

This patch adds --pgfault and --iterations options to mmap_bench test. With
--pgfault we touch every page mapped. This helps in measuring impact in the
page fault path with a patch series.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/benchmarks/mmap_bench.c