Re: [PATCH v5 04/15] ring-buffer: Set new size of the ring buffer sub page

2023-12-20 Thread Google
On Wed, 20 Dec 2023 11:56:02 -0500 Steven Rostedt wrote: > On Thu, 21 Dec 2023 01:34:56 +0900 > Masami Hiramatsu (Google) wrote: > > > On Tue, 19 Dec 2023 13:54:18 -0500 > > Steven Rostedt wrote: > > > > > From: "Tzvetomir Stoyanov (VMware)" > > > > > > There are two approaches when changin

Re: [PATCH v5 04/15] ring-buffer: Set new size of the ring buffer sub page

2023-12-20 Thread Steven Rostedt
On Thu, 21 Dec 2023 01:34:56 +0900 Masami Hiramatsu (Google) wrote: > On Tue, 19 Dec 2023 13:54:18 -0500 > Steven Rostedt wrote: > > > From: "Tzvetomir Stoyanov (VMware)" > > > > There are two approaches when changing the size of the ring buffer > > sub page: > > 1. Destroying all pages and

Re: [PATCH v5 04/15] ring-buffer: Set new size of the ring buffer sub page

2023-12-20 Thread Google
On Tue, 19 Dec 2023 13:54:18 -0500 Steven Rostedt wrote: > From: "Tzvetomir Stoyanov (VMware)" > > There are two approaches when changing the size of the ring buffer > sub page: > 1. Destroying all pages and allocating new pages with the new size. > 2. Allocating new pages, copying the conten

[PATCH v5 04/15] ring-buffer: Set new size of the ring buffer sub page

2023-12-19 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" There are two approaches when changing the size of the ring buffer sub page: 1. Destroying all pages and allocating new pages with the new size. 2. Allocating new pages, copying the content of the old pages before destroying them. The first approach is ea