]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tracing: Use vmap_page_range() to map memmap ring buffer
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 2 Apr 2025 14:49:06 +0000 (10:49 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 2 Apr 2025 15:02:27 +0000 (11:02 -0400)
commit394f3f02de5311ea976dd8046304194d22329bbc
treea5d1e638b4f2068b42facaa5aa9575e047df69db
parent34ea8fa084dd96a2e130ec871ade9ed3003f7eea
tracing: Use vmap_page_range() to map memmap ring buffer

The code to map the physical memory retrieved by memmap currently
allocates an array of pages to cover the physical memory and then calls
vmap() to map it to a virtual address. Instead of using this temporary
array of struct page descriptors, simply use vmap_page_range() that can
directly map the contiguous physical memory to a virtual address.

Link: https://lore.kernel.org/all/CAHk-=whUOfVucfJRt7E0AH+GV41ELmS4wJqxHDnui6Giddfkzw@mail.gmail.com/
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Vincent Donnefort <vdonnefort@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Jann Horn <jannh@google.com>
Link: https://lore.kernel.org/20250402144953.754618481@goodmis.org
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c