Re: [PATCH v8 0/6] alloc_tag: introduce IOCTL-based filtering for MAP

From: Andrew Morton

Date: Wed Jul 08 2026 - 17:13:49 EST


On Wed, 8 Jul 2026 18:01:22 +0000 Abhishek Bapat <abhishekbapat@xxxxxxxxxx> wrote:

> Currently, memory allocation profiling data is primarily exposed through
> /proc/allocinfo. While useful for manual inspection, this text-based
> interface poses challenges for production monitoring and large-scale
> analysis:
>
> 1. Userspace must parse large amounts of text to extract specific
> fields.
> 2. To find specific tags, userspace must read the entire dataset,
> requiring many context switches and high data copying.
> 3. The kernel currently aggregates per-CPU counters for every allocation
> size, even those the user intends to filter out immediately.
>
> This series introduces a new IOCTL-based binary interface for allocinfo
> that supports kernel-side filtering.

Thanks. The important bits are reviewed, let's get this in there for
some testing.

Sashiko had a lot to say:

https://sashiko.dev/#/patchset/cover.1783532853.git.abhishekbapat@xxxxxxxxxx

I think you've already been over this. but please double-check - maybe
it found something new.