kernel/trace/ring_buffer.c: kernel-doc warning fixes
Subsystems (2)
PATCH 1/1 kernel/trace/ring_buffer.c: kernel-doc warning fixes
Also fixes some typo.
Cc Steven Rostedt <[email protected]>
Cc Andrew Morton <[email protected]>
Signed-off-by Fabian Frederick <[email protected]>
--- kernel/trace/ring_buffer.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
kernel/trace/ring_buffer.c +8 -3
@@ -1261,6 +1261,7 @@ static int rb_cpu_notify(struct notifier_block *self,* __ring_buffer_alloc - allocate a new ring_buffer * @size: the size in bytes per cpu that is needed. * @flags: attributes to set for the ring buffer. +* @key: ring buffer reader_lock_key. * * Currently the only flag that is available is the RB_FL_OVERWRITE * flag. This flag means that the buffer will overwrite old data
@@ -1985,9 +1986,11 @@ rb_add_time_stamp(struct ring_buffer_event *event, u64 delta)/** * rb_update_event - update event type and data -* @event: the even to update -* @type: the type of event +* @cpu_buffer: ring buffer for one cpu +* @event: the event to update * @length: the size of the event field in the ring buffer +* @add_timestamp: bool to indicate whether to call rb_add_time_stamp +* @delta: event delta time * * Update the type and data fields of the event. The length * is the actual size that is written to the ring buffer,
@@ -2005,7 +2008,7 @@ rb_update_event(struct ring_buffer_per_cpu *cpu_buffer,/* * If we need to add a timestamp, then we -* add it to the start of the resevered space. +* add it to the start of the reserved space. */ if (unlikely (add_timestamp)) { event =rb_add_time_stamp (event, delta);
@@ -4104,6 +4107,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_read);/** * ring_buffer_size - return the size of the ring buffer (in bytes) * @buffer: The ring buffer. +* @cpu: The CPU to get ring buffer size from. */ unsigned long ring_buffer_size (struct ring_buffer *buffer,int cpu) {
@@ -4281,6 +4285,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_empty_cpu);* ring_buffer_swap_cpu - swap a CPU buffer between two ring buffers * @buffer_a: One buffer to swap with * @buffer_b: The other buffer to swap with +* @cpu: the CPU of the buffers to swap * * This function is useful for tracers that want to take a "snapshot" * of a CPU buffer and has another back up buffer lying around.
Signature · 1 line
1.8.4.5