Re: [PATCH] ring-buffer: Fix buffer max_data_size with max_event_size

2023-12-12 Thread Steven Rostedt
On Mon, 11 Dec 2023 20:40:33 +0900 Masami Hiramatsu (Google) wrote: > On Sat, 9 Dec 2023 17:09:25 -0500 > Steven Rostedt wrote: > > > On Sat, 9 Dec 2023 17:01:39 -0500 > > Steven Rostedt wrote: > > > > > From: "Steven Rostedt (Google)" > > > > > > The maximum ring buffer data size is the

Re: [PATCH] ring-buffer: Fix buffer max_data_size with max_event_size

2023-12-11 Thread Google
On Sat, 9 Dec 2023 17:09:25 -0500 Steven Rostedt wrote: > On Sat, 9 Dec 2023 17:01:39 -0500 > Steven Rostedt wrote: > > > From: "Steven Rostedt (Google)" > > > > The maximum ring buffer data size is the maximum size of data that can be > > recorded on the ring buffer. Events must be smaller

Re: [PATCH] ring-buffer: Fix buffer max_data_size with max_event_size

2023-12-09 Thread Steven Rostedt
On Sat, 9 Dec 2023 17:01:39 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > The maximum ring buffer data size is the maximum size of data that can be > recorded on the ring buffer. Events must be smaller than the sub buffer > data size minus any meta data. This size is

[PATCH] ring-buffer: Fix buffer max_data_size with max_event_size

2023-12-09 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The maximum ring buffer data size is the maximum size of data that can be recorded on the ring buffer. Events must be smaller than the sub buffer data size minus any meta data. This size is checked before trying to allocate from the ring buffer because the