File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
tools/testing/selftests/mm Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,9 @@ endif
116
116
117
117
ifneq (,$(filter $(ARCH ) ,arm64 mips64 parisc64 powerpc riscv64 s390x sparc64 x86_64 s390) )
118
118
TEST_GEN_FILES += va_high_addr_switch
119
+ ifneq ($(ARCH ) ,riscv64)
119
120
TEST_GEN_FILES += virtual_address_range
121
+ endif
120
122
TEST_GEN_FILES += write_to_hugetlbfs
121
123
endif
122
124
Original file line number Diff line number Diff line change @@ -347,10 +347,12 @@ if [ $VADDR64 -ne 0 ]; then
347
347
# allows high virtual address allocation requests independent
348
348
# of platform's physical memory.
349
349
350
- prev_policy=$( cat /proc/sys/vm/overcommit_memory)
351
- echo 1 > /proc/sys/vm/overcommit_memory
352
- CATEGORY=" hugevm" run_test ./virtual_address_range
353
- echo $prev_policy > /proc/sys/vm/overcommit_memory
350
+ if [ -x ./virtual_address_range ]; then
351
+ prev_policy=$( cat /proc/sys/vm/overcommit_memory)
352
+ echo 1 > /proc/sys/vm/overcommit_memory
353
+ CATEGORY=" hugevm" run_test ./virtual_address_range
354
+ echo $prev_policy > /proc/sys/vm/overcommit_memory
355
+ fi
354
356
355
357
# va high address boundary switch test
356
358
ARCH_ARM64=" arm64"
You can’t perform that action at this time.
0 commit comments