diff options
| author | Steven Rostedt <[email protected]> | 2025-04-02 14:49:06 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2025-04-02 15:02:27 +0000 |
| commit | 394f3f02de5311ea976dd8046304194d22329bbc (patch) | |
| tree | a5d1e638b4f2068b42facaa5aa9575e047df69db /tools/lib/bpf/bpf_helpers.h | |
| parent | tracing: Have reserve_mem use phys_to_virt() and separate from memmap buffer (diff) | |
| download | kernel-394f3f02de5311ea976dd8046304194d22329bbc.tar.gz kernel-394f3f02de5311ea976dd8046304194d22329bbc.zip | |
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 <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Vincent Donnefort <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Jann Horn <[email protected]>
Link: https://lore.kernel.org/[email protected]
Suggested-by: Linus Torvalds <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions
