Re: [PATCH v2 01/25] kernel: Introduce meminspect

From: Randy Dunlap

Date: Thu Mar 12 2026 - 00:34:42 EST




On 3/10/26 1:15 PM, Mukesh Ojha wrote:
> diff --git a/kernel/meminspect/Kconfig b/kernel/meminspect/Kconfig
> new file mode 100644
> index 000000000000..fa2b5a84b251
> --- /dev/null
> +++ b/kernel/meminspect/Kconfig
> @@ -0,0 +1,19 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
> +config MEMINSPECT
> + bool "Allow the kernel to register memory regions for inspection purpose"

purposes"

> + help
> + Inspection mechanism allows registration of a specific memory
> + area(or object) for later inspection purpose.

area (or object) purposes.

> + Ranges are being added into an inspection table, which can be

are added

> + requested and analyzed by specific drivers.
> + Drivers would interface any hardware mechanism that will allow
> + inspection of the data, including but not limited to: dumping
> + for debugging, creating a coredump, analysis, or statistical
> + information.
> + Inspection table is created ahead of time such that it can be later

The inspection table

> + used regardless of the state of the kernel (running, frozen, crashed,
> + or any particular state).
> +
> + Note that modules using this feature must be rebuilt if option

if this option

> + changes.

--
~Randy