Skip to content

Commit 6167c20

Browse files
committed
ring-buffer: Fix a bunch of typos in comments
An anonymous source sent me a bunch of typo fixes in the comments of ring_buffer.c file. That source did not want to be associated to this patch because they don't want to be known as "one of those" commiters (you know who you are!). They gave me permission to sign this off in my own name. Suggested-by: [email protected] Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 33697bd commit 6167c20

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

kernel/trace/ring_buffer.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_normalize_time_stamp);
809809
*
810810
* You can see, it is legitimate for the previous pointer of
811811
* the head (or any page) not to point back to itself. But only
812-
* temporarially.
812+
* temporarily.
813813
*/
814814

815815
#define RB_PAGE_NORMAL 0UL
@@ -906,7 +906,7 @@ static void rb_list_head_clear(struct list_head *list)
906906
}
907907

908908
/*
909-
* rb_head_page_dactivate - clears head page ptr (for free list)
909+
* rb_head_page_deactivate - clears head page ptr (for free list)
910910
*/
911911
static void
912912
rb_head_page_deactivate(struct ring_buffer_per_cpu *cpu_buffer)
@@ -1780,7 +1780,7 @@ int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size,
17801780

17811781
put_online_cpus();
17821782
} else {
1783-
/* Make sure this CPU has been intitialized */
1783+
/* Make sure this CPU has been initialized */
17841784
if (!cpumask_test_cpu(cpu_id, buffer->cpumask))
17851785
goto out;
17861786

@@ -2325,7 +2325,7 @@ rb_update_event(struct ring_buffer_per_cpu *cpu_buffer,
23252325

23262326
/*
23272327
* If we need to add a timestamp, then we
2328-
* add it to the start of the resevered space.
2328+
* add it to the start of the reserved space.
23292329
*/
23302330
if (unlikely(info->add_timestamp)) {
23312331
bool abs = ring_buffer_time_stamp_abs(cpu_buffer->buffer);
@@ -2681,7 +2681,7 @@ trace_recursive_unlock(struct ring_buffer_per_cpu *cpu_buffer)
26812681
* ring_buffer_nest_start - Allow to trace while nested
26822682
* @buffer: The ring buffer to modify
26832683
*
2684-
* The ring buffer has a safty mechanism to prevent recursion.
2684+
* The ring buffer has a safety mechanism to prevent recursion.
26852685
* But there may be a case where a trace needs to be done while
26862686
* tracing something else. In this case, calling this function
26872687
* will allow this function to nest within a currently active
@@ -2699,7 +2699,7 @@ void ring_buffer_nest_start(struct ring_buffer *buffer)
26992699
preempt_disable_notrace();
27002700
cpu = raw_smp_processor_id();
27012701
cpu_buffer = buffer->buffers[cpu];
2702-
/* This is the shift value for the above recusive locking */
2702+
/* This is the shift value for the above recursive locking */
27032703
cpu_buffer->nest += NESTED_BITS;
27042704
}
27052705

@@ -2718,7 +2718,7 @@ void ring_buffer_nest_end(struct ring_buffer *buffer)
27182718
/* disabled by ring_buffer_nest_start() */
27192719
cpu = raw_smp_processor_id();
27202720
cpu_buffer = buffer->buffers[cpu];
2721-
/* This is the shift value for the above recusive locking */
2721+
/* This is the shift value for the above recursive locking */
27222722
cpu_buffer->nest -= NESTED_BITS;
27232723
preempt_enable_notrace();
27242724
}
@@ -2907,7 +2907,7 @@ rb_reserve_next_event(struct ring_buffer *buffer,
29072907
* @buffer: the ring buffer to reserve from
29082908
* @length: the length of the data to reserve (excluding event header)
29092909
*
2910-
* Returns a reseverd event on the ring buffer to copy directly to.
2910+
* Returns a reserved event on the ring buffer to copy directly to.
29112911
* The user of this interface will need to get the body to write into
29122912
* and can use the ring_buffer_event_data() interface.
29132913
*
@@ -3009,7 +3009,7 @@ rb_decrement_entry(struct ring_buffer_per_cpu *cpu_buffer,
30093009
* This function lets the user discard an event in the ring buffer
30103010
* and then that event will not be read later.
30113011
*
3012-
* This function only works if it is called before the the item has been
3012+
* This function only works if it is called before the item has been
30133013
* committed. It will try to free the event from the ring buffer
30143014
* if another event has not been added behind it.
30153015
*
@@ -4127,7 +4127,7 @@ EXPORT_SYMBOL_GPL(ring_buffer_consume);
41274127
* through the buffer. Memory is allocated, buffer recording
41284128
* is disabled, and the iterator pointer is returned to the caller.
41294129
*
4130-
* Disabling buffer recordng prevents the reading from being
4130+
* Disabling buffer recording prevents the reading from being
41314131
* corrupted. This is not a consuming read, so a producer is not
41324132
* expected.
41334133
*

0 commit comments

Comments
 (0)