]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3cdbe13bf63cb590ea0d558c22bea7434a4a46c
treeaf4f2cb7490b9d59d2cadcf19458005d5582130a
parentd27d2736a0c585886a24302150e8795b15fb4ef3
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