Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-18 Thread Petr Mladek
On Fri 2014-11-14 23:59:07, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Add a seq_buf_can_fit() helper function that removes the possible mistakes > of comparing the seq_buf length plus added data compared to the size of > the buffer. > > Signed-off-by: Steven Rostedt

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-18 Thread Petr Mladek
On Fri 2014-11-14 23:59:07, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org Add a seq_buf_can_fit() helper function that removes the possible mistakes of comparing the seq_buf length plus added data compared to the size of the buffer. Signed-off-by: Steven Rostedt

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 18:50:52 -0800 Joe Perches wrote: > On Mon, 2014-11-17 at 21:37 -0500, Steven Rostedt wrote: > > On Mon, 17 Nov 2014 17:48:37 -0800 > > Joe Perches wrote: > > > On Mon, 2014-11-17 at 20:24 -0500, Steven Rostedt wrote: > > > > On Mon, 17 Nov 2014 17:07:58 -0800 > > > > Joe

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 21:37 -0500, Steven Rostedt wrote: > On Mon, 17 Nov 2014 17:48:37 -0800 > Joe Perches wrote: > > On Mon, 2014-11-17 at 20:24 -0500, Steven Rostedt wrote: > > > On Mon, 17 Nov 2014 17:07:58 -0800 > > > Joe Perches wrote: > > > > > Look at the next patch. > > > > I don't have

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 17:48:37 -0800 Joe Perches wrote: > On Mon, 2014-11-17 at 20:24 -0500, Steven Rostedt wrote: > > On Mon, 17 Nov 2014 17:07:58 -0800 > > Joe Perches wrote: > > > > Look at the next patch. > > > I don't have it and you are not cc'ing me. > > It's on LKML. > > And? There's no

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 20:24 -0500, Steven Rostedt wrote: > On Mon, 17 Nov 2014 17:07:58 -0800 > Joe Perches wrote: > > > Look at the next patch. > > I don't have it and you are not cc'ing me. > It's on LKML. And? There's no convenient way to retrieve it. > > I think you are getting carried

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 17:07:58 -0800 Joe Perches wrote: > > Look at the next patch. > > I don't have it and you are not cc'ing me. It's on LKML. > I think you are getting carried away with the helpers. That's nice. > > > > I don't see it making mistakes more or less > > > likely, I just see

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 19:56 -0500, Steven Rostedt wrote: > On Mon, 17 Nov 2014 16:35:32 -0800 > Joe Perches wrote: > > > > What "logic" does it place in one place and > > how does it matter? > > Look at the next patch. I don't have it and you are not cc'ing me. I think you are getting

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 16:35:32 -0800 Joe Perches wrote: > What "logic" does it place in one place and > how does it matter? Look at the next patch. > > I don't see it making mistakes more or less > likely, I just see it being used to avoid > setting the overflow state which seems like > more

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 19:27 -0500, Steven Rostedt wrote: > On Mon, 17 Nov 2014 16:07:33 -0800 > Joe Perches wrote: > > > On Mon, 2014-11-17 at 12:36 -0500, Steven Rostedt wrote: > > > On Fri, 14 Nov 2014 23:59:07 -0500 > > > Steven Rostedt wrote: > > > > > > > From: "Steven Rostedt (Red Hat)"

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 16:07:33 -0800 Joe Perches wrote: > On Mon, 2014-11-17 at 12:36 -0500, Steven Rostedt wrote: > > On Fri, 14 Nov 2014 23:59:07 -0500 > > Steven Rostedt wrote: > > > > > From: "Steven Rostedt (Red Hat)" > > > > > > Add a seq_buf_can_fit() helper function that removes the

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 12:36 -0500, Steven Rostedt wrote: > On Fri, 14 Nov 2014 23:59:07 -0500 > Steven Rostedt wrote: > > > From: "Steven Rostedt (Red Hat)" > > > > Add a seq_buf_can_fit() helper function that removes the possible mistakes > > of comparing the seq_buf length plus added data

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Fri, 14 Nov 2014 23:59:07 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > Add a seq_buf_can_fit() helper function that removes the possible mistakes > of comparing the seq_buf length plus added data compared to the size of > the buffer. > > Signed-off-by: Steven Rostedt

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Fri, 14 Nov 2014 23:59:07 -0500 Steven Rostedt rost...@goodmis.org wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org Add a seq_buf_can_fit() helper function that removes the possible mistakes of comparing the seq_buf length plus added data compared to the size of the buffer.

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 12:36 -0500, Steven Rostedt wrote: On Fri, 14 Nov 2014 23:59:07 -0500 Steven Rostedt rost...@goodmis.org wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org Add a seq_buf_can_fit() helper function that removes the possible mistakes of comparing the seq_buf

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 16:07:33 -0800 Joe Perches j...@perches.com wrote: On Mon, 2014-11-17 at 12:36 -0500, Steven Rostedt wrote: On Fri, 14 Nov 2014 23:59:07 -0500 Steven Rostedt rost...@goodmis.org wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org Add a seq_buf_can_fit()

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 19:27 -0500, Steven Rostedt wrote: On Mon, 17 Nov 2014 16:07:33 -0800 Joe Perches j...@perches.com wrote: On Mon, 2014-11-17 at 12:36 -0500, Steven Rostedt wrote: On Fri, 14 Nov 2014 23:59:07 -0500 Steven Rostedt rost...@goodmis.org wrote: From: Steven

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 16:35:32 -0800 Joe Perches j...@perches.com wrote: What logic does it place in one place and how does it matter? Look at the next patch. I don't see it making mistakes more or less likely, I just see it being used to avoid setting the overflow state which seems like

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 19:56 -0500, Steven Rostedt wrote: On Mon, 17 Nov 2014 16:35:32 -0800 Joe Perches j...@perches.com wrote: What logic does it place in one place and how does it matter? Look at the next patch. I don't have it and you are not cc'ing me. I think you are getting

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 17:07:58 -0800 Joe Perches j...@perches.com wrote: Look at the next patch. I don't have it and you are not cc'ing me. It's on LKML. I think you are getting carried away with the helpers. That's nice. I don't see it making mistakes more or less likely, I just

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 20:24 -0500, Steven Rostedt wrote: On Mon, 17 Nov 2014 17:07:58 -0800 Joe Perches j...@perches.com wrote: Look at the next patch. I don't have it and you are not cc'ing me. It's on LKML. And? There's no convenient way to retrieve it. I think you are getting

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 17:48:37 -0800 Joe Perches j...@perches.com wrote: On Mon, 2014-11-17 at 20:24 -0500, Steven Rostedt wrote: On Mon, 17 Nov 2014 17:07:58 -0800 Joe Perches j...@perches.com wrote: Look at the next patch. I don't have it and you are not cc'ing me. It's on LKML.

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Joe Perches
On Mon, 2014-11-17 at 21:37 -0500, Steven Rostedt wrote: On Mon, 17 Nov 2014 17:48:37 -0800 Joe Perches j...@perches.com wrote: On Mon, 2014-11-17 at 20:24 -0500, Steven Rostedt wrote: On Mon, 17 Nov 2014 17:07:58 -0800 Joe Perches j...@perches.com wrote: Look at the next patch.

Re: [PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-17 Thread Steven Rostedt
On Mon, 17 Nov 2014 18:50:52 -0800 Joe Perches j...@perches.com wrote: On Mon, 2014-11-17 at 21:37 -0500, Steven Rostedt wrote: On Mon, 17 Nov 2014 17:48:37 -0800 Joe Perches j...@perches.com wrote: On Mon, 2014-11-17 at 20:24 -0500, Steven Rostedt wrote: On Mon, 17 Nov 2014 17:07:58

[PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-14 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add a seq_buf_can_fit() helper function that removes the possible mistakes of comparing the seq_buf length plus added data compared to the size of the buffer. Signed-off-by: Steven Rostedt --- kernel/trace/seq_buf.c | 15 ++- 1 file changed, 10

[PATCH 20/26 v5] seq_buf: Add seq_buf_can_fit() helper function

2014-11-14 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org Add a seq_buf_can_fit() helper function that removes the possible mistakes of comparing the seq_buf length plus added data compared to the size of the buffer. Signed-off-by: Steven Rostedt rost...@goodmis.org --- kernel/trace/seq_buf.c | 15