prctl: Add support for PR_SET_THP_DISABLE and PR_GET_THP_DISABLE

Change-Id: I04c5568a9eb78bcac632b734f34bba49cf602c4d
Refs: #1181
This commit is contained in:
Ken Sato
2018-12-12 15:41:32 +09:00
committed by Masamichi Takagi
parent eb184419ea
commit dfd23c3ebe
24 changed files with 773 additions and 1 deletions

30
test/issues/1181/Makefile Normal file
View File

@@ -0,0 +1,30 @@
include $(HOME)/.mck_test_config.mk
CC = gcc
TARGET=set_thp_and_exec check_thp mmap_large shm_large mmap_hugetlbfs
CPPFLAGS =
LDFLAGS =
all: $(TARGET)
set_thp_and_exec: set_thp_and_exec.c
$(CC) -o $@ $^ $(LDFLAGS)
check_thp: check_thp.c
$(CC) -o $@ $^ $(LDFLAGS)
mmap_large: mmap_large.c
$(CC) -o $@ $^ $(LDFLAGS)
shm_large: shm_large.c
$(CC) -o $@ $^ $(LDFLAGS)
mmap_hugetlbfs: mmap_hugetlbfs.c
$(CC) -o $@ $^ $(LDFLAGS)
test: all
@sh ./C1181.sh $(ARCH)
clean:
rm -f $(TARGET) *.o CT*.txt