* [PATCH] ring_buffer: fix comments
@ 2008-12-08 2:58 Lai Jiangshan
2008-12-08 12:54 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Lai Jiangshan @ 2008-12-08 2:58 UTC (permalink / raw)
To: Steven Rostedt, Ingo Molnar, Linux Kernel Mailing List
Impact: comments cleanup
fix incorrect comments for enum ring_buffer_type
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h
index e097c2e..4981a9a 100644
--- a/include/linux/ring_buffer.h
+++ b/include/linux/ring_buffer.h
@@ -28,17 +28,19 @@ struct ring_buffer_event {
* size = 8 bytes
*
* @RINGBUF_TYPE_TIME_STAMP: Sync time stamp with external clock
- * array[0] = tv_nsec
- * array[1] = tv_sec
+ * array[0] = tv_nsec
+ * array[1..2] = tv_sec
* size = 16 bytes
*
* @RINGBUF_TYPE_DATA: Data record
* If len is zero:
* array[0] holds the actual length
- * array[1..(length+3)/4-1] holds data
+ * array[1..(length+3)/4] holds data
+ * size = 4 + 4 + length (bytes)
* else
* length = len << 2
- * array[0..(length+3)/4] holds data
+ * array[0..(length+3)/4-1] holds data
+ * size = 4 + length (bytes)
*/
enum ring_buffer_type {
RINGBUF_TYPE_PADDING,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ring_buffer: fix comments
2008-12-08 2:58 [PATCH] ring_buffer: fix comments Lai Jiangshan
@ 2008-12-08 12:54 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-12-08 12:54 UTC (permalink / raw)
To: Lai Jiangshan; +Cc: Steven Rostedt, Linux Kernel Mailing List
* Lai Jiangshan <laijs@cn.fujitsu.com> wrote:
> Impact: comments cleanup
>
> fix incorrect comments for enum ring_buffer_type
>
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
applied to tip/tracing/ring-buffer, thanks!
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-08 12:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 2:58 [PATCH] ring_buffer: fix comments Lai Jiangshan
2008-12-08 12:54 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox