Skip to contentSkip to conversation

kselftest-alloc_tag-add-kselftest-for-ioctl-interface.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Aug 25

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kselftest: alloc_tag: add kselftest for ioctl interface
has been removed from the -mm tree. Its filename was
kselftest-alloc_tag-add-kselftest-for-ioctl-interface.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Abhishek Bapat <[email protected]>
Subject: kselftest: alloc_tag: add kselftest for ioctl interface
Date: Wed, 8 Jul 2026 18:01:27 +0000

Introduce a kselftest to verify the new IOCTL-based interface for /proc/allocinfo. The test covers:

1. Validation of the filename filter.
2. Validation of the function filter.

The first test validates the functionality of the filename filter. Using "mm/memory.c" as the candidate filename filter, it retrieves filtered entries from both procfs and ioctl and matches the first VEC_MAX_ENTRIES entries.

The second test validates the functionality of the function filter. It uses "dup_mm" as the candidate function as we do not expect this function name to change frequently and hence won't be needing to modify this test often.

Note that both the tests match line no, function name and file name fields. Bytes allocated and calls are not matched as those values may change in the time when the data is being read from procfs and ioctl and hence can lead to false negatives.

---

 MAINTAINERS                                              |    1 
 tools/testing/selftests/Makefile                         |    1 
 tools/testing/selftests/alloc_tag/Makefile               |    8 
 tools/testing/selftests/alloc_tag/allocinfo_ioctl_test.c |  334 ++++++++++
 4 files changed, 344 insertions(+)
MAINTAINERS renamed from MAINTAINERS~kselftest-alloc_tag-add-kselftest-for-ioctl-interface +1 -0
@@ -16942,6 +16942,7 @@ F:	include/linux/alloc_tag.h
 F:	include/linux/pgalloc_tag.h
 F:	include/uapi/linux/alloc_tag.h
 F:	mm/alloc_tag.c
+F:	tools/testing/selftests/alloc_tag/
 
 MEMORY MANAGEMENT - BALLOON
 M:	Andrew Morton <[email protected]>
tools/testing/selftests/alloc_tag/allocinfo_ioctl_test.c new file +334 -0

334 lines not on this page · raw message

tools/testing/selftests/alloc_tag/Makefile new file +8 -0
new file mode 100644
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0
+
+TEST_GEN_PROGS := allocinfo_ioctl_test
+
+CFLAGS += -Wall
+CFLAGS += $(KHDR_INCLUDES)
+
+include ../lib.mk
tools/testing/selftests/Makefile renamed from tools/testing/selftests/Makefile~kselftest-alloc_tag-add-kselftest-for-ioctl-interface +1 -0
@@ -1,5 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 TARGETS += acct
+TARGETS += alloc_tag
 TARGETS += alsa
 TARGETS += amd-pstate
 TARGETS += arm64

_

Patches currently in -mm which might be from [email protected] are