]> 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)
commit26f228310b0697003d0032a86116e6e8c189b9ed
treeaf4f2cb7490b9d59d2cadcf19458005d5582130a
parent39d55ebb9666303b837859828fd91cfe1823fbcb
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