Re: [PATCH v17 2/6] ring-buffer: Introducing ring-buffer mapping functions

2024-02-14 Thread kernel test robot
: ca185770db914869ff9fe773bac5e0e5e4165b83 patch link: https://lore.kernel.org/r/20240213114945.3528801-3-vdonnefort%40google.com patch subject: [PATCH v17 2/6] ring-buffer: Introducing ring-buffer mapping functions config: x86_64-randconfig-161-20240214 (https://download.01.org/0day-ci/archive/20240214/202402141856

Re: [PATCH v17 2/6] ring-buffer: Introducing ring-buffer mapping functions

2024-02-13 Thread kernel test robot
: ca185770db914869ff9fe773bac5e0e5e4165b83 patch link: https://lore.kernel.org/r/20240213114945.3528801-3-vdonnefort%40google.com patch subject: [PATCH v17 2/6] ring-buffer: Introducing ring-buffer mapping functions config: i386-buildonly-randconfig-001-20240214 (https://download.01.org/0day-ci/archive/20240214

Re: [PATCH v17 2/6] ring-buffer: Introducing ring-buffer mapping functions

2024-02-13 Thread Steven Rostedt
On Tue, 13 Feb 2024 15:53:09 -0500 Steven Rostedt wrote: > On Tue, 13 Feb 2024 11:49:41 + > Vincent Donnefort wrote: > > Did you test with lockdep? > > > +static int __rb_inc_dec_mapped(struct trace_buffer *buffer, > > + struct ring_buffer_per_cpu *cpu_buffer, > >

Re: [PATCH v17 2/6] ring-buffer: Introducing ring-buffer mapping functions

2024-02-13 Thread Steven Rostedt
On Tue, 13 Feb 2024 11:49:41 + Vincent Donnefort wrote: Did you test with lockdep? > +static int __rb_inc_dec_mapped(struct trace_buffer *buffer, > +struct ring_buffer_per_cpu *cpu_buffer, > +bool inc) > +{ > + unsigned long flags;

[PATCH v17 2/6] ring-buffer: Introducing ring-buffer mapping functions

2024-02-13 Thread Vincent Donnefort
In preparation for allowing the user-space to map a ring-buffer, add a set of mapping functions: ring_buffer_{map,unmap}() ring_buffer_map_fault() And controls on the ring-buffer: ring_buffer_map_get_reader() /* swap reader and head */ Mapping the ring-buffer also involves: A unique I