Re: [PATCH v16 4/6] tracing: Allow user-space mapping of the ring-buffer

2024-02-11 Thread Steven Rostedt
On Fri, 9 Feb 2024 16:34:46 + Vincent Donnefort wrote: > +static void tracing_buffers_mmap_close(struct vm_area_struct *vma) > +{ > + struct ftrace_buffer_info *info = vma->vm_file->private_data; > + struct trace_iterator *iter = &info->iter; > + struct trace_array __maybe_unused

[PATCH v16 4/6] tracing: Allow user-space mapping of the ring-buffer

2024-02-09 Thread Vincent Donnefort
Currently, user-space extracts data from the ring-buffer via splice, which is handy for storage or network sharing. However, due to splice limitations, it is imposible to do real-time analysis without a copy. A solution for that problem is to let the user-space map the ring-buffer directly. The m