Re: [PATCH v5 3/4] tracing: Use vmap_page_range() to map memmap ring buffer

From: Steven Rostedt
Date: Wed Apr 02 2025 - 13:02:41 EST


On Wed, 2 Apr 2025 12:55:48 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> This patch series fixes that miscommunication and separates out a memmap'ed
> buffer from reserve_mem buffer and simplifies everything.

Since I only care about memory mapping a buffer from reserve_mem to user
space, this series makes sure that a buffer created from memmap (or any
other physical memory area) is never used for mapping to user space. It
also prevents that buffer from being freed, as it is not part of the buddy
allocator and can't be added later.

That also means all the tricks to determine where the page in the ring
buffer came from can go away.

-- Steve