Re: [PATCH v9] Unified trace buffer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Rostedt
Date: Saturday, September 27, 2008 - 12:24 pm

Hi Ingo,

Thanks for the review!

On Sat, 27 Sep 2008, Ingo Molnar wrote:


Yeah, Linus pointed this out with the rb_ static function names. But since 
the functions are static I kept them as is. But here we have global names.

Would RNGBF_ be OK, or do you have any other ideas?


Ah, I think I had it more complex and changed it to a literal without 
removing the parenthesis.


I calculated this on x86_64 to add 78 bytes. Is that still too big?


No biggy. I thought this would be nicer as inline. But I have no problem
changing this.


Yeah, I kept them bounded just to stress the "FIXME" part ;-)


It was to prevent lockdep from checking the locks from inside. We had 
issues with ftroce and lockdep in the past, because ftrace would trace the
internals of lockdep, and lockdep would then recurse back into itself to 
trace.  If lockdep itself can get away with not using raw_spinlocks, then
this will be OK to make back to spinlock.


OK, will fix.


OK, this was a direct copy from what was used in ftrace.


Heh, this was directly from a bug I had and laziness ;-)
I originally just had struct list_head pages (and no *tmp), which kept the 
christmas tree format. But later found that you need to initialize list 
heads (duh!), and never moved it.



Same reason.


Will fix.


Ah, this was caused by my s/ring_buffer_page_index/rb_page_index/ run.


Will fix.


Will fix, I have no preference.


Will fix.


Hmm, this is interesting. I kind of like this because it is not really a 
standard comment. It is a comment about the definitions of the enum. I 
believe if they are above:

  /*
   * Comment
   */
   RB_ENUM_TYPE,

It is not as readable. But if we do:

   RB_ENUM_TYPE,	/*
			 * Comment
			 */

The comment is not at the same line as the enum, which also looks 
unpleasing.

We can't could do:

			/*
   RB_ENUM_TYPE,	 * Comment
			 */
			/*
   RB_ENUM_TYPE2,	 * Comment
			 */

Because the ENUM is also in the comment :-p


I chose this way because we have:

  RB_ENUM_TYPE,		/* Comment
			 * More comment
			 */
  RB_ENUM_TYPE2,	/* Comment
			 */

Since I find this the nices way to describe enums. That last */ is 
good to space the comments apart, otherwise we have:

  RB_ENUM_TYPE,		/* Comment
			 * More comment */
  RB_ENUM_TYPE2,	/* Comment */

That is not as easy to see the separation of one description of enums with 
the other.

-- Steve

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH 1/2 v3] Unified trace buffer, Steven Rostedt, (Thu Sep 25, 11:51 am)
[RFC PATCH v4] Unified trace buffer, Steven Rostedt, (Thu Sep 25, 6:02 pm)
Re: [RFC PATCH v4] Unified trace buffer, Masami Hiramatsu, (Thu Sep 25, 6:52 pm)
Re: [RFC PATCH v4] Unified trace buffer, Steven Rostedt, (Thu Sep 25, 7:11 pm)
Re: [RFC PATCH v4] Unified trace buffer, Masami Hiramatsu, (Thu Sep 25, 7:47 pm)
Re: [RFC PATCH v4] Unified trace buffer, Mathieu Desnoyers, (Thu Sep 25, 8:20 pm)
Re: [RFC PATCH v4] Unified trace buffer, Peter Zijlstra, (Fri Sep 26, 12:18 am)
Re: [RFC PATCH v4] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 3:45 am)
Re: [RFC PATCH v4] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 3:47 am)
Re: [RFC PATCH v4] Unified trace buffer, Peter Zijlstra, (Fri Sep 26, 4:00 am)
Re: [RFC PATCH v4] Unified trace buffer, Mathieu Desnoyers, (Fri Sep 26, 9:04 am)
Re: [RFC PATCH v4] Unified trace buffer, Masami Hiramatsu, (Fri Sep 26, 9:57 am)
[PATCH v5] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 10:11 am)
Re: [RFC PATCH v4] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 10:14 am)
Re: [PATCH v5] Unified trace buffer, Arnaldo Carvalho de Melo, (Fri Sep 26, 10:31 am)
Re: [PATCH v5] Unified trace buffer, Linus Torvalds, (Fri Sep 26, 10:37 am)
Re: [PATCH v5] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 10:46 am)
[PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 11:05 am)
Re: [PATCH v6] Unified trace buffer, Richard Holden, (Fri Sep 26, 11:30 am)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 11:39 am)
Re: [PATCH v6] Unified trace buffer, Peter Zijlstra, (Fri Sep 26, 11:59 am)
Re: [PATCH v6] Unified trace buffer, Peter Zijlstra, (Fri Sep 26, 12:14 pm)
Re: [PATCH v6] Unified trace buffer, Peter Zijlstra, (Fri Sep 26, 12:17 pm)
Re: [PATCH v6] Unified trace buffer, Martin Bligh, (Fri Sep 26, 12:46 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 12:52 pm)
Re: [PATCH v6] Unified trace buffer, Peter Zijlstra, (Fri Sep 26, 1:08 pm)
[PATCH v7] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 2:13 pm)
Re: [PATCH v6] Unified trace buffer, Masami Hiramatsu, (Fri Sep 26, 2:14 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 2:26 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 2:37 pm)
Re: [PATCH v6] Unified trace buffer, Mike Travis, (Fri Sep 26, 3:28 pm)
Re: [PATCH v6] Unified trace buffer, Arnaldo Carvalho de Melo, (Fri Sep 26, 3:31 pm)
Re: [PATCH v6] Unified trace buffer, Arjan van de Ven, (Fri Sep 26, 4:16 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 4:56 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 4:58 pm)
Re: [PATCH v6] Unified trace buffer, Mike Travis, (Fri Sep 26, 5:05 pm)
Re: [PATCH v6] Unified trace buffer, Linus Torvalds, (Fri Sep 26, 5:13 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 5:18 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 5:23 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 5:28 pm)
Re: [PATCH v6] Unified trace buffer, Mike Travis, (Fri Sep 26, 5:46 pm)
Re: [PATCH v6] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 5:52 pm)
[PATCH v8] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 7:02 pm)
[PATCH v9] Unified trace buffer, Steven Rostedt, (Fri Sep 26, 11:06 pm)
Re: [PATCH v5] Unified trace buffer, Ingo Molnar, (Sat Sep 27, 10:02 am)
Re: [PATCH v5] Unified trace buffer, Steven Rostedt, (Sat Sep 27, 10:18 am)
Re: [PATCH v9] Unified trace buffer, Ingo Molnar, (Sat Sep 27, 11:39 am)
Re: [PATCH v9] Unified trace buffer, Steven Rostedt, (Sat Sep 27, 12:24 pm)
Re: [PATCH v9] Unified trace buffer, Ingo Molnar, (Sat Sep 27, 12:41 pm)
Re: [PATCH v9] Unified trace buffer, Steven Rostedt, (Sat Sep 27, 12:54 pm)
Re: [PATCH v9] Unified trace buffer, Ingo Molnar, (Sat Sep 27, 1:00 pm)
Re: [PATCH v9] Unified trace buffer, Martin Bligh, (Sat Sep 27, 1:07 pm)
Re: [PATCH v9] Unified trace buffer, Ingo Molnar, (Sat Sep 27, 1:34 pm)
Re: [PATCH v9] Unified trace buffer, Steven Rostedt, (Mon Sep 29, 8:05 am)
[PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Mon Sep 29, 9:10 am)
Re: [PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Mon Sep 29, 9:11 am)
Re: [PATCH v10 Golden] Unified trace buffer, Mathieu Desnoyers, (Mon Sep 29, 4:35 pm)
Re: [PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Mon Sep 29, 5:01 pm)
Re: [PATCH v10 Golden] Unified trace buffer, Mathieu Desnoyers, (Mon Sep 29, 5:03 pm)
Re: [PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Mon Sep 29, 5:12 pm)
Re: [PATCH v10 Golden] Unified trace buffer, Mathieu Desnoyers, (Mon Sep 29, 8:46 pm)
Re: [PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Mon Sep 29, 9:00 pm)
Re: [PATCH v10 Golden] Unified trace buffer, Jonathan Corbet, (Tue Sep 30, 8:20 am)
Re: [PATCH v10 Golden] Unified trace buffer, Peter Zijlstra, (Tue Sep 30, 8:54 am)
Re: [PATCH v10 Golden] Unified trace buffer, Linus Torvalds, (Tue Sep 30, 9:38 am)
Re: [PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Tue Sep 30, 9:48 am)
Re: [PATCH v10 Golden] Unified trace buffer, Peter Zijlstra, (Tue Sep 30, 10:00 am)
Re: [PATCH v10 Golden] Unified trace buffer, Linus Torvalds, (Tue Sep 30, 10:01 am)
Re: [PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Tue Sep 30, 10:41 am)
Re: [PATCH v10 Golden] Unified trace buffer, Peter Zijlstra, (Tue Sep 30, 10:49 am)
Re: [PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Tue Sep 30, 10:56 am)
Re: [PATCH v10 Golden] Unified trace buffer, Steven Rostedt, (Tue Sep 30, 11:02 am)
[PATCH] ring_buffer: allocate buffer page pointer, Steven Rostedt, (Wed Oct 1, 8:14 am)
Re: [PATCH] ring_buffer: allocate buffer page pointer, Mathieu Desnoyers, (Wed Oct 1, 10:36 am)
Re: [PATCH] ring_buffer: allocate buffer page pointer, Steven Rostedt, (Wed Oct 1, 10:49 am)
Re: [PATCH] ring_buffer: allocate buffer page pointer, Mathieu Desnoyers, (Wed Oct 1, 11:21 am)
[PATCH] ring-buffer: fix build error, Ingo Molnar, (Thu Oct 2, 2:05 am)
Re: [PATCH] ring_buffer: allocate buffer page pointer, Andrew Morton, (Thu Oct 2, 2:06 am)
Re: [PATCH] ring_buffer: allocate buffer page pointer, Steven Rostedt, (Thu Oct 2, 6:06 am)
Re: [boot crash] Re: [PATCH] ring-buffer: fix build error, Steven Rostedt, (Thu Oct 2, 6:16 am)
Re: [boot crash] Re: [PATCH] ring-buffer: fix build error, Steven Rostedt, (Thu Oct 2, 6:17 am)
Re: [boot crash] Re: [PATCH] ring-buffer: fix build error, Steven Rostedt, (Thu Oct 2, 11:27 am)
[PATCH] ring_buffer: map to cpu not page, Steven Rostedt, (Thu Oct 2, 4:18 pm)
Re: [PATCH] ring_buffer: map to cpu not page, Steven Rostedt, (Thu Oct 2, 4:36 pm)
[PATCH] x86 Topology cpu_to_node parameter check, Mathieu Desnoyers, (Thu Oct 2, 9:56 pm)
Re: [PATCH] x86 Topology cpu_to_node parameter check, Steven Rostedt, (Thu Oct 2, 10:20 pm)
Re: [PATCH] ring_buffer: map to cpu not page, Ingo Molnar, (Fri Oct 3, 12:27 am)
Re: [PATCH] x86 Topology cpu_to_node parameter check, Mathieu Desnoyers, (Fri Oct 3, 8:56 am)
Re: [PATCH] x86 Topology cpu_to_node parameter check, Steven Rostedt, (Fri Oct 3, 9:26 am)
Re: [PATCH] x86 Topology cpu_to_node parameter check, Mathieu Desnoyers, (Fri Oct 3, 10:21 am)
Re: [PATCH] x86 Topology cpu_to_node parameter check, Steven Rostedt, (Fri Oct 3, 10:54 am)
[PATCH] topology.h define mess fix, Mathieu Desnoyers, (Fri Oct 3, 11:53 am)
RE: [PATCH] topology.h define mess fix, Luck, Tony, (Fri Oct 3, 1:14 pm)
[PATCH] topology.h define mess fix v2, Mathieu Desnoyers, (Fri Oct 3, 3:47 pm)