alloc_tag-add-size-based-filtering-to-ioctl.patch removed from -mm tree
The quilt patch titled
Subject: alloc_tag: add size-based filtering to ioctl
has been removed from the -mm tree. Its filename was
alloc_tag-add-size-based-filtering-to-ioctl.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 size-based filtering to ioctl
Date: Wed, 8 Jul 2026 18:01:25 +0000
Extend the allocinfo filtering mechanism to allow users to filter tags based on the total number of bytes allocated [min_size, max_size]. The size range is inclusive.
Filtering by size involves retrieving allocinfo per-CPU counters, which is an expensive operation. Hence, the performance of size-based filtering will be worse than other filters.
---
include/uapi/linux/alloc_tag.h | 8 +++ mm/alloc_tag.c | 64 ++++++++++++++++++++++++------- 2 files changed, 58 insertions(+), 14 deletions(-)
include/uapi/linux/alloc_tag.h renamed from include/uapi/linux/alloc_tag.h~alloc_tag-add-size-based-filtering-to-ioctl +7 -1
@@ -50,13 +50,17 @@ enum {ALLOCINFO_FILTER_FUNCTION ,ALLOCINFO_FILTER_FILENAME ,ALLOCINFO_FILTER_LINENO , - __ALLOCINFO_FILTER_LAST = ALLOCINFO_FILTER_LINENO +ALLOCINFO_FILTER_MIN_SIZE , +ALLOCINFO_FILTER_MAX_SIZE , + __ALLOCINFO_FILTER_LAST = ALLOCINFO_FILTER_MAX_SIZE };#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_MASK_MIN_SIZE (1 << ALLOCINFO_FILTER_MIN_SIZE) +#define ALLOCINFO_FILTER_MASK_MAX_SIZE (1 << ALLOCINFO_FILTER_MAX_SIZE)#define ALLOCINFO_FILTER_MASKS \ ((1 << (__ALLOCINFO_FILTER_LAST + 1)) - 1)
@@ -64,6 +68,8 @@ enum {struct allocinfo_filter {__u64 mask;/* bitmask of the filter fields used */ struct allocinfo_tag fields; +__u64 min_size; +__u64 max_size; };struct allocinfo_get_at {
mm/alloc_tag.c renamed from mm/alloc_tag.c~alloc_tag-add-size-based-filtering-to-ioctl +51 -13
132 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are