Skip to contentSkip to conversation

Add a test program for variable page sizes in mmap/shmget

PATCH In review Andi Kleen 2 participants 2 messages Nov 8, 2012

Subsystems (2)
lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

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.

---
 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
index b336b24..7300d07 100644
@@ -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>
maintainer
#1 lore raw
Quoted 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>