Add a test program for variable page sizes in mmap/shmget
Subsystems (2)
PATCH 1/1 Add a test program for variable page sizes in mmap/shmget
From: Andi Kleen <[email protected]>
Not hooked up to the harness so far, because it usually needs special boot options for 1GB pages.
Signed-off-by Andi Kleen <[email protected]>
--- tools/testing/selftests/vm/Makefile | 4 +- tools/testing/selftests/vm/thuge-gen.c | 218 ++++++++++++++++++++++++++++++++ 2 files changed, 220 insertions(+), 2 deletions(-) create mode 100644 tools/testing/selftests/vm/thuge-gen.c
tools/testing/selftests/vm/Makefile +2 -2
@@ -1,9 +1,9 @@ # Makefile for vm selftests CC = $(CROSS_COMPILE)gcc -CFLAGS = -Wall -Wextra +CFLAGS = -Wall -all: hugepage-mmap hugepage-shm map_hugetlb +all: hugepage-mmap hugepage-shm map_hugetlb thuge-gen %: %.c $(CC) $(CFLAGS) -o $@ $^
tools/testing/selftests/vm/thuge-gen.c new file +218 -0
218 lines not on this page · raw message
Signature · 7 lines
1.7.7.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Andrew Morton
maintainerQuoted 2 lines · On Thu, 8 Nov 2012 12:21:03 -0800 Andi Kleen <[email protected]> wrote:
Not hooked up to the harness so far, because it usually needs special boot options for 1GB pages.
Can we detect that situation within thuge-gen.c? Emit a polite message then exit(0).
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>