Skip to contentSkip to conversation

alloc_tag-add-ioctl-filters-to-proc-allocinfo.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: alloc_tag: add ioctl filters to /proc/allocinfo
has been removed from the -mm tree. Its filename was
alloc_tag-add-ioctl-filters-to-proc-allocinfo.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: alloc_tag: add ioctl filters to /proc/allocinfo
Date: Wed, 8 Jul 2026 18:01:24 +0000

Extend the capability of the IOCTL mechanism to filter allocations based on tag's module name, function name, file name and line number.

---

 include/uapi/linux/alloc_tag.h |   26 +++++++++++
 mm/alloc_tag.c                 |   68 +++++++++++++++++++++++++++++--
 2 files changed, 89 insertions(+), 5 deletions(-)
include/uapi/linux/alloc_tag.h renamed from include/uapi/linux/alloc_tag.h~alloc_tag-add-ioctl-filters-to-proc-allocinfo +25 -1
@@ -45,8 +45,32 @@ struct allocinfo_tag_data {
 	struct allocinfo_counter counter;
 };
 
+enum {
+	ALLOCINFO_FILTER_MODNAME,
+	ALLOCINFO_FILTER_FUNCTION,
+	ALLOCINFO_FILTER_FILENAME,
+	ALLOCINFO_FILTER_LINENO,
+	__ALLOCINFO_FILTER_LAST = ALLOCINFO_FILTER_LINENO
+};
+
+#define ALLOCINFO_FILTER_MASK_MODNAME		(1 << ALLOCINFO_FILTER_MODNAME)
+#define ALLOCINFO_FILTER_MASK_FUNCTION		(1 << ALLOCINFO_FILTER_FUNCTION)
+#define ALLOCINFO_FILTER_MASK_FILENAME		(1 << ALLOCINFO_FILTER_FILENAME)
+#define ALLOCINFO_FILTER_MASK_LINENO		(1 << ALLOCINFO_FILTER_LINENO)
+
+#define ALLOCINFO_FILTER_MASKS \
+	((1 << (__ALLOCINFO_FILTER_LAST + 1)) - 1)
+
+struct allocinfo_filter {
+	__u64 mask; /* bitmask of the filter fields used */
+	struct allocinfo_tag fields;
+};
+
 struct allocinfo_get_at {
-	__u64 pos;	/* input */
+	/* inputs */
+	__u64 pos;
+	struct allocinfo_filter filter;
+	/* output */
 	struct allocinfo_tag_data data;
 };
 
mm/alloc_tag.c renamed from mm/alloc_tag.c~alloc_tag-add-ioctl-filters-to-proc-allocinfo +64 -4

117 lines not on this page · raw message

_

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