prctl: Add support for PR_SET_THP_DISABLE and PR_GET_THP_DISABLE
Change-Id: I04c5568a9eb78bcac632b734f34bba49cf602c4d Refs: #1181
This commit is contained in:
committed by
Masamichi Takagi
parent
eb184419ea
commit
dfd23c3ebe
30
test/issues/1181/Makefile
Normal file
30
test/issues/1181/Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user