tools/selftest/vm: allow choosing mem size and page size in map_hugetlb
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 8 Feb 2019 15:02:55 +0000 (15:02 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:16 +0000 (00:10 +1100)
commitfa7b9a805c797b729022029aaa3a2b7c35fff4c6
treeaf4f2cb7490b9d59d2cadcf19458005d5582130a
parent6b9166f0786e6f24da9fb198bcf70ce131c88ee1
tools/selftest/vm: allow choosing mem size and page size in map_hugetlb

map_hugetlb maps 256Mbytes of memory with default hugepage size.

This patch allows the user to pass the size and page shift as an
argument in order to use different size and page size.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/vm/map_hugetlb.c