Cc: Kirill Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: Dave Hansen <dave.hansen@xxxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Signed-off-by: Keith Busch <keith.busch@xxxxxxxxx> --- tools/testing/selftests/vm/gup_benchmark.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/gup_benchmark.c b/tools/testing/selftests/vm/gup_benchmark.c index f2c99e2436f8..5d96e2b3d2f1 100644 --- a/tools/testing/selftests/vm/gup_benchmark.c +++ b/tools/testing/selftests/vm/gup_benchmark.c @@ -38,7 +38,7 @@ int main(int argc, char **argv) char *file = NULL; char *p; - while ((opt = getopt(argc, argv, "m:r:n:f:tTLU")) != -1) { + while ((opt = getopt(argc, argv, "m:r:n:f:tTLUH")) != -1) { switch (opt) { case 'm': size = atoi(optarg) * MB; @@ -64,6 +64,9 @@ int main(int argc, char **argv) case 'w': write = 1; break; + case 'H': + flags |= MAP_HUGETLB; + break; case 'f': file = optarg; flags &= ~(MAP_PRIVATE | MAP_ANONYMOUS); -- 2.14.4