Skip to contentSkip to conversation

selftests/mm: respect build verbosity settings for 32/64-bit targets

PATCH Superseded Li Wang 3 participants 12 messages Mar 31 – Apr 1

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/4 selftests/mm: respect build verbosity settings for 32/64-bit targets

The 32-bit and 64-bit compilation rules invoke $(CC) directly, bypassing the $(Q) quiet prefix and $(call msg,...) helper used by the rest of the selftests build system. This causes these rules to always print the full compiler command line, even when V=0 (the default).

Wrap the commands with $(Q) and $(call msg,CC,,$@) to match the convention used by lib.mk, so that quiet and verbose builds behave consistently across all targets.

==== Build logs ====
...

  CC       merge
  CC       rmap
  CC       soft-dirty

gcc -Wall -O2 -I /usr/src/25/tools/testing/selftests/../../..
-isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests -m32 -mxsave protection_keys.c vm_util.c thp_settings.c pkey_util.c -lrt -lpthread -lm -lrt -ldl -lm
-o /usr/src/25/tools/testing/selftests/mm/protection_keys_32
gcc -Wall -O2 -I /usr/src/25/tools/testing/selftests/../../..
-isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests -m32 -mxsave pkey_sighandler_tests.c vm_util.c thp_settings.c pkey_util.c -lrt -lpthread -lm -lrt -ldl -lm
-o /usr/src/25/tools/testing/selftests/mm/pkey_sighandler_tests_32
...

---
 tools/testing/selftests/mm/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
tools/testing/selftests/mm/Makefile +4 -2
index 7a5de4e9bf52..3b222cd6a048 100644
@@ -215,7 +215,8 @@ ifeq ($(CAN_BUILD_I386),1)
 $(BINARIES_32): CFLAGS += -m32 -mxsave
 $(BINARIES_32): LDLIBS += -lrt -ldl -lm
 $(BINARIES_32): $(OUTPUT)/%_32: %.c
-	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(notdir $^) $(LDLIBS) -o $@
+	$(call msg,CC,,$@)
+	$(Q)$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(notdir $^) $(LDLIBS) -o $@
 $(foreach t,$(VMTARGETS),$(eval $(call gen-target-rule-32,$(t))))
 endif
 
@@ -223,7 +224,8 @@ ifeq ($(CAN_BUILD_X86_64),1)
 $(BINARIES_64): CFLAGS += -m64 -mxsave
 $(BINARIES_64): LDLIBS += -lrt -ldl
 $(BINARIES_64): $(OUTPUT)/%_64: %.c
-	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(notdir $^) $(LDLIBS) -o $@
+	$(call msg,CC,,$@)
+	$(Q)$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(notdir $^) $(LDLIBS) -o $@
 $(foreach t,$(VMTARGETS),$(eval $(call gen-target-rule-64,$(t))))
 endif
 
Signature · 1 line
2.53.0
author
#1 lore raw

PATCH 2/4 selftests/mm: serialize local_config generation for parallel builds

The mm selftests generate both local_config.mk and local_config.h from check_config.sh. With high parallelism (-jN), this can race and lead to incomplete target builds (e.g. only a few binaries get built after 'make -j100', while 'make -j1' builds everything).

Switch to a stamp-based dependency:

local_config.stamp: check_config.sh

        ... run check_config.sh ...
        touch local_config.stamp

and make local_config.mk/local_config.h depend on the stamp.

This ensures check_config.sh is executed once per update decision and removes the parallel race window. Also hook local_config.stamp into EXTRA_CLEAN.

No functional change intended for non-parallel builds.

---
 tools/testing/selftests/mm/Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
tools/testing/selftests/mm/Makefile +7 -3
index 3b222cd6a048..78496f705386 100644
@@ -261,10 +261,14 @@ $(OUTPUT)/migration: LDLIBS += -lnuma
 
 $(OUTPUT)/rmap: LDLIBS += -lnuma
 
-local_config.mk local_config.h: check_config.sh
-	CC="$(CC)" CFLAGS="$(CFLAGS)" ./check_config.sh
+local_config.stamp: check_config.sh
+	$(call msg,CHK,config,$@)
+	$(Q)CC="$(CC)" CFLAGS="$(CFLAGS)" ./check_config.sh
+	$(Q)touch $@
 
-EXTRA_CLEAN += local_config.mk local_config.h
+local_config.mk local_config.h: local_config.stamp
+
+EXTRA_CLEAN += local_config.mk local_config.h local_config.stamp
 
 ifeq ($(IOURING_EXTRA_LIBS),)
 all: warn_missing_liburing
Signature · 1 line
2.53.0
maintainer
#2 lore raw

Re: [PATCH 2/4] selftests/mm: serialize local_config generation for parallel builds

Quoted 13 lines · On Tue, 31 Mar 2026 12:01:54 +0800 Li Wang <[email protected]> wrote:

The mm selftests generate both local_config.mk and local_config.h from check_config.sh. With high parallelism (-jN), this can race and lead to incomplete target builds (e.g. only a few binaries get built after 'make -j100', while 'make -j1' builds everything).

Switch to a stamp-based dependency:

local_config.stamp: check_config.sh

        ... run check_config.sh ...
        touch local_config.stamp

and make local_config.mk/local_config.h depend on the stamp.

Quoted 7 lines

This ensures check_config.sh is executed once per update decision and removes the parallel race window. Also hook local_config.stamp into EXTRA_CLEAN.

No functional change intended for non-parallel builds.

Well, the wind changed direction. I saw this race a single time today but now I'm trying to produce a reliable before-and-after report, it isn't cooperating - everything is now building with -j100 with and without this patch.

So not very helpful, sorry.

author
#3 lore raw

Re: [PATCH 2/4] selftests/mm: serialize local_config generation for parallel builds

Quoted 21 lines · Andrew Morton
Quoted 19 lines · On Tue, 31 Mar 2026 12:01:54 +0800 Li Wang <[email protected]> wrote:

The mm selftests generate both local_config.mk and local_config.h from check_config.sh. With high parallelism (-jN), this can race and lead to incomplete target builds (e.g. only a few binaries get built after 'make -j100', while 'make -j1' builds everything).

Switch to a stamp-based dependency:

local_config.stamp: check_config.sh

        ... run check_config.sh ...
        touch local_config.stamp

and make local_config.mk/local_config.h depend on the stamp.

This ensures check_config.sh is executed once per update decision and removes the parallel race window. Also hook local_config.stamp into EXTRA_CLEAN.

No functional change intended for non-parallel builds.

Quoted 8 lines
Quoted 1 line

Well, the wind changed direction. I saw this race a single time today but now I'm trying to produce a reliable before-and-after report, it isn't cooperating - everything is now building with -j100 with and without this patch.

So not very helpful, sorry.

No worries, we can hang this one as well.

Let me send to kbuild ML with the two valid fix (1/4, 4/4), I will reformat them.

Signature · 2 lines
Regards,
Li Wang
author
#4 lore raw

PATCH 3/4 selftests/lib.mk: set PWD from CURDIR to avoid wrong extmod path

In reply to Li Wang

When running selftests from the kernel top-level (e.g. make kselftest-all), sub-makes might still inherit the caller's PWD from the environment.

Some selftests use $(PWD) in recursive kbuild invocations, which can then incorrectly resolve to the kernel top directory instead of the current test directory.

In that case, kbuild may generate an external-module wrapper Makefile in the wrong location, potentially clobbering the top-level Makefile and causing recursive include failures ("Too many open files").

Export PWD := $(CURDIR) in selftests/lib.mk so $(PWD) always matches the actual current selftest directory.

---
 tools/testing/selftests/lib.mk                | 2 ++
 tools/testing/selftests/mm/local_config.stamp | 0
 2 files changed, 2 insertions(+)
 create mode 100644 tools/testing/selftests/mm/local_config.stamp
tools/testing/selftests/lib.mk +2 -0
index f02cc8a2e4ae..2840e98c225c 100644
@@ -60,6 +60,8 @@ endif
 selfdir = $(realpath $(dir $(filter %/lib.mk,$(MAKEFILE_LIST))))
 top_srcdir = $(selfdir)/../../..
 
+export PWD := $(CURDIR)
+
 # msg: emit succinct information message describing current building step
 # $1 - generic step name (e.g., CC, LINK, etc);
 # $2 - optional "flavor" specifier; if provided, will be emitted as [flavor];
tools/testing/selftests/mm/local_config.stamp new file +0 -0
new file mode 100644
index 000000000000..e69de29bb2d1
Signature · 1 line
2.53.0
maintainer
#5 lore raw

Re: [PATCH 3/4] selftests/lib.mk: set PWD from CURDIR to avoid wrong extmod path

Quoted 11 lines · On Tue, 31 Mar 2026 12:01:55 +0800 Li Wang <[email protected]> wrote:

When running selftests from the kernel top-level (e.g. make kselftest-all), sub-makes might still inherit the caller's PWD from the environment.

Some selftests use $(PWD) in recursive kbuild invocations, which can then incorrectly resolve to the kernel top directory instead of the current test directory.

In that case, kbuild may generate an external-module wrapper Makefile in the wrong location, potentially clobbering the top-level Makefile and causing recursive include failures ("Too many open files").

Quoted 5 lines

Export PWD := $(CURDIR) in selftests/lib.mk so $(PWD) always matches the actual current selftest directory.

I couldn't clearly figure out what I was doing to cause kbuild to destroy my top-level Makefile. It happened three times and it wasn't fun so I Stopped Doing That.

I tried a bunch of things *without* this patch and of course, Makefile is still intact. So I cannot confirm or deny, sorry.

I've switched my script so I'll henceforth be running -j100, shall keep an eye on things.

I have no comment on [4/4] - it addresses something I haven't seen.

I'll assume this patchset will be handled via the kbuild tree.

author
#6 lore raw

Re: [PATCH 3/4] selftests/lib.mk: set PWD from CURDIR to avoid wrong extmod path

Quoted 23 lines · Andrew Morton
Quoted 11 lines · On Tue, 31 Mar 2026 12:01:55 +0800 Li Wang <[email protected]> wrote:

When running selftests from the kernel top-level (e.g. make kselftest-all), sub-makes might still inherit the caller's PWD from the environment.

Some selftests use $(PWD) in recursive kbuild invocations, which can then incorrectly resolve to the kernel top directory instead of the current test directory.

In that case, kbuild may generate an external-module wrapper Makefile in the wrong location, potentially clobbering the top-level Makefile and causing recursive include failures ("Too many open files").

Quoted 5 lines

Export PWD := $(CURDIR) in selftests/lib.mk so $(PWD) always matches the actual current selftest directory.

I couldn't clearly figure out what I was doing to cause kbuild to destroy my top-level Makefile. It happened three times and it wasn't fun so I Stopped Doing That.

Quoted 5 lines

I tried a bunch of things *without* this patch and of course, Makefile is still intact. So I cannot confirm or deny, sorry.

I've switched my script so I'll henceforth be running -j100, shall keep an eye on things.

No problem, actually I wasn't able to reproduce it, the patch just worked out based on your description. We can kick out it from patchset unless someone confirm it is needed.

Signature · 2 lines
Regards,
Li Wang
author
#7 lore raw

PATCH 4/4 selftests/mm: fix cow/gup_longterm link failures when liburing flags are missing

In reply to Li Wang

mm selftests rely on IOURING_EXTRA_LIBS (typically from local_config.mk) to link io_uring-based tests (cow and gup_longterm). On some systems with liburing installed, IOURING_EXTRA_LIBS can still be empty, causing link failures with unresolved io_uring symbols.

Add a fallback detection:

  IOURING_EXTRA_LIBS := $(shell pkg-config --libs liburing)

when IOURING_EXTRA_LIBS was not set by local_config.mk.

Also gate io_uring-dependent test binaries (cow and gup_longterm) on IOURING_EXTRA_LIBS being non-empty, so missing liburing support cleanly skips those tests instead of failing the build.

---
 tools/testing/selftests/mm/Makefile | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
tools/testing/selftests/mm/Makefile +10 -3
index 78496f705386..01bdd25e04e4 100644
@@ -10,6 +10,11 @@ LOCAL_HDRS += $(selfdir)/mm/mseal_helpers.h
 
 include local_config.mk
 
+PKG_CONFIG ?= pkg-config
+ifeq ($(IOURING_EXTRA_LIBS),)
+IOURING_EXTRA_LIBS := $(shell $(PKG_CONFIG) --libs liburing 2>/dev/null)
+endif
+
 ifeq ($(ARCH),)
 
 ifeq ($(CROSS_COMPILE),)
@@ -55,10 +60,12 @@ else
 PAGE_FRAG_WARNING = "missing Module.symvers, please have the kernel built first"
 endif
 
-TEST_GEN_FILES = cow
-TEST_GEN_FILES += compaction_test
-TEST_GEN_FILES += gup_longterm
+TEST_GEN_FILES = compaction_test
 TEST_GEN_FILES += gup_test
+ifneq ($(IOURING_EXTRA_LIBS),)
+TEST_GEN_FILES += cow
+TEST_GEN_FILES += gup_longterm
+endif
 TEST_GEN_FILES += hmm-tests
 TEST_GEN_FILES += hugetlb-madvise
 TEST_GEN_FILES += hugetlb-read-hwpoison
Signature · 1 line
2.53.0
author
#8 lore raw

Re: [PATCH 4/4] selftests/mm: fix cow/gup_longterm link failures when liburing flags are missing

Quoted 17 lines
tools/testing/selftests/mm/Makefile +5 -0
@@ -10,6 +10,11 @@ LOCAL_HDRS += $(selfdir)/mm/mseal_helpers.h
 
 include local_config.mk
 
+PKG_CONFIG ?= pkg-config
+ifeq ($(IOURING_EXTRA_LIBS),)
+IOURING_EXTRA_LIBS := $(shell $(PKG_CONFIG) --libs liburing 2>/dev/null)
+endif
+
 ifeq ($(ARCH),)
 
 ifeq ($(CROSS_COMPILE),)
@@ -55,10 +60,12 @@ else
 PAGE_FRAG_WARNING = "missing Module.symvers, please have the kernel built first"
 endif

tools/testing/selftests/mm/Makefile else · line 68

Quoted 10 lines
tools/testing/selftests/mm/Makefile +5 -3
 
-TEST_GEN_FILES = cow
-TEST_GEN_FILES += compaction_test
-TEST_GEN_FILES += gup_longterm
+TEST_GEN_FILES = compaction_test
 TEST_GEN_FILES += gup_test
+ifneq ($(IOURING_EXTRA_LIBS),)
+TEST_GEN_FILES += cow
+TEST_GEN_FILES += gup_longterm
+endif

Please ignore this one, as Sashiko points:

"The io_uring specific test cases within them are already isolated via #ifdef LOCAL_CONFIG_HAVE_LIBURING and do not require liburing to compile the rest of the tests."

I overlooked that two tests can be built without liburing-devel pkg. Sashiko is correct here, we don't need define IOURING_EXTRA_LIBS.

The compiling error comes from a temp file in check_config.sh, and I am not sure whether we should hide the error:

/tmp/tmp.kIIOIqwe3n.c:2:10: fatal error: liburing.h: No such file or directory
2 | #include <liburing.h>
| ^~~~~~~~~~~~

Signature · 2 lines
Regards,
Li Wang
#9 lore raw

Re: [PATCH 4/4] selftests/mm: fix cow/gup_longterm link failures when liburing flags are missing

Quoted 18 lines · Li Wang
Quoted 18 lines
tools/testing/selftests/mm/Makefile +5 -0
@@ -10,6 +10,11 @@ LOCAL_HDRS += $(selfdir)/mm/mseal_helpers.h
 
 include local_config.mk
 
+PKG_CONFIG ?= pkg-config
+ifeq ($(IOURING_EXTRA_LIBS),)
+IOURING_EXTRA_LIBS := $(shell $(PKG_CONFIG) --libs liburing 2>/dev/null)
+endif
+
 ifeq ($(ARCH),)
 
 ifeq ($(CROSS_COMPILE),)
@@ -55,10 +60,12 @@ else
 PAGE_FRAG_WARNING = "missing Module.symvers, please have the kernel built first"
 endif
 
Quoted 11 lines

tools/testing/selftests/mm/Makefile else · line 68

Quoted 9 lines
tools/testing/selftests/mm/Makefile +5 -3
-TEST_GEN_FILES = cow
-TEST_GEN_FILES += compaction_test
-TEST_GEN_FILES += gup_longterm
+TEST_GEN_FILES = compaction_test
 TEST_GEN_FILES += gup_test
+ifneq ($(IOURING_EXTRA_LIBS),)
+TEST_GEN_FILES += cow
+TEST_GEN_FILES += gup_longterm
+endif

Please ignore this one, as Sashiko points:

Right, this should be dropped.

Signature · 3 lines
Cheers,

David
maintainer Tested-by on v1 1/4
#10 lore raw
In reply to Li Wang
Quoted 32 lines · On Tue, 31 Mar 2026 12:01:53 +0800 Li Wang <[email protected]> wrote:

The 32-bit and 64-bit compilation rules invoke $(CC) directly, bypassing the $(Q) quiet prefix and $(call msg,...) helper used by the rest of the selftests build system. This causes these rules to always print the full compiler command line, even when V=0 (the default).

Wrap the commands with $(Q) and $(call msg,CC,,$@) to match the convention used by lib.mk, so that quiet and verbose builds behave consistently across all targets.

==== Build logs ====
...

  CC       merge
  CC       rmap
  CC       soft-dirty

gcc -Wall -O2 -I /usr/src/25/tools/testing/selftests/../../..
-isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests -m32 -mxsave protection_keys.c vm_util.c thp_settings.c pkey_util.c -lrt -lpthread -lm -lrt -ldl -lm
-o /usr/src/25/tools/testing/selftests/mm/protection_keys_32
gcc -Wall -O2 -I /usr/src/25/tools/testing/selftests/../../..
-isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests -m32 -mxsave pkey_sighandler_tests.c vm_util.c thp_settings.c pkey_util.c -lrt -lpthread -lm -lrt -ldl -lm
-o /usr/src/25/tools/testing/selftests/mm/pkey_sighandler_tests_32
...

Quoted 1 line

wow, thanks, do you want my credit card number?

Quoted 1 line
 tools/testing/selftests/mm/Makefile | 6 ++++--

Before:

ts:/usr/src/25/tools/testing/selftests/mm> make -j100
CC="gcc" CFLAGS="-Wall -O2 -I /usr/src/25/tools/testing/selftests/../../.. -isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests " ./check_config.sh

  CC       cow
  CC       compaction_test
  CC       gup_longterm
  CC       gup_test
  CC       hmm-tests
  CC       hugetlb-madvise
  CC       hugetlb-read-hwpoison
  CC       hugetlb-soft-offline
  CC       hugepage-mmap
  CC       hugepage-mremap
  CC       hugepage-shm
  CC       hugepage-vmemmap
  CC       khugepaged
  CC       madv_populate
  CC       map_fixed_noreplace
  CC       map_populate
  CC       map_hugetlb
  CC       memfd_secret
  CC       memory-failure
  CC       migration
  CC       mkdirty
  CC       mlock-random-test
  CC       mlock2-tests
  CC       mremap_dontunmap
  CC       mrelease_test

...
CC merge
CC rmap
gcc -Wall -O2 -I /usr/src/25/tools/testing/selftests/../../.. -isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests -m32 -mxsave protection_keys.c vm_util.c thp_settings.c pkey_util.c -lrt -lpthread -lm -lrt -ldl -lm -o /usr/src/25/tools/testing/selftests/mm/protection_keys_32
CC folio_split_race_test
CC soft-dirty

gcc -Wall -O2 -I /usr/src/25/tools/testing/selftests/../../..  -isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests  -m32 -mxsave  pkey_sighandler_tests.c vm_util.c thp_settings.c pkey_util.c -lrt -lpthread -lm -lrt -ldl -lm -o /usr/src/25/tools/testing/selftests/mm/pkey_sighandler_tests_32
gcc -Wall -O2 -I /usr/src/25/tools/testing/selftests/../../..  -isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests  -m64 -mxsave  protection_keys.c vm_util.c thp_settings.c pkey_util.c -lrt -lpthread -lm -lrt -ldl -o /usr/src/25/tools/testing/selftests/mm/protection_keys_64
gcc -Wall -O2 -I /usr/src/25/tools/testing/selftests/../../..  -isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests  -m64 -mxsave  pkey_sighandler_tests.c vm_util.c thp_settings.c pkey_util.c -lrt -lpthread -lm -lrt -ldl -o /usr/src/25/tools/testing/selftests/mm/pkey_sighandler_tests_64

CC write_to_hugetlbfs

after:

ts:/usr/src/25/tools/testing/selftests/mm> make clean
...
ts:/usr/src/25/tools/testing/selftests/mm> make -j100
CC="gcc" CFLAGS="-Wall -O2 -I /usr/src/25/tools/testing/selftests/../../.. -isystem /usr/src/25/tools/testing/selftests/../../../usr/include -isystem /usr/src/25/tools/testing/selftests/../../../tools/include/uapi -Wunreachable-code -U_FORTIFY_SOURCE -no-pie -D_GNU_SOURCE= -I/usr/src/25/tools/testing/selftests/../../../tools/testing/selftests " ./check_config.sh

  CC       cow
  CC       compaction_test
  CC       gup_longterm
  CC       gup_test
  CC       hmm-tests
  CC       hugetlb-madvise
  CC       hugetlb-read-hwpoison
  CC       hugetlb-soft-offline
  CC       hugepage-mmap
  CC       hugepage-mremap
  CC       hugepage-shm
  CC       hugepage-vmemmap
  CC       khugepaged
  CC       madv_populate
  CC       map_fixed_noreplace
  CC       map_hugetlb
  CC       map_populate
  CC       memfd_secret
  CC       memory-failure
  CC       migration
  CC       mkdirty
  CC       mlock-random-test
  CC       mlock2-tests
  CC       mrelease_test
  CC       mremap_dontunmap
  CC       mremap_test
  CC       mseal_test
  CC       on-fault-limit
  CC       pagemap_ioctl
  CC       pfnmap
  CC       process_madv
  CC       prctl_thp_disable
  CC       thuge-gen
  CC       transhuge-stress
  CC       uffd-stress
  CC       uffd-unit-tests
  CC       uffd-wp-mremap
  CC       split_huge_page_test
  CC       ksm_tests
  CC       ksm_functional_tests
  CC       mdwe_test
  CC       hugetlb_fault_after_madv
  CC       hugetlb_madv_vs_map
  CC       hugetlb_dio
  CC       droppable
  CC       guard-regions
  CC       merge
  CC       rmap
  CC       folio_split_race_test
  CC       soft-dirty
  CC       protection_keys_32
  CC       pkey_sighandler_tests_32
  CC       protection_keys_64
  CC       pkey_sighandler_tests_64
  CC       va_high_addr_switch
  CC       write_to_hugetlbfs