tracing: Fix several comment spelling mistakes
Subsystems (4)
PATCH 1/1 tracing: Fix several comment spelling mistakes
Fix several spelling mistakes in comments in the trace subsystem. No functional changes. These fixes improve readability and correctness of comments in the tracing subsystem.
--- kernel/trace/Kconfig | 2 +- kernel/trace/ring_buffer.c | 2 +- kernel/trace/ring_buffer_benchmark.c | 2 +- kernel/trace/rv/Kconfig | 2 +- kernel/trace/rv/rv.c | 2 +- kernel/trace/trace.c | 2 +- kernel/trace/trace_events.c | 2 +- kernel/trace/trace_events_filter.c | 2 +- kernel/trace/trace_events_trigger.c | 2 +- kernel/trace/trace_events_user.c | 4 ++-- kernel/trace/trace_osnoise.c | 16 ++++++++-------- kernel/trace/trace_seq.c | 2 +- 12 files changed, 20 insertions(+), 20 deletions(-)
kernel/trace/Kconfig +1 -1
@@ -918,7 +918,7 @@ config RING_BUFFER_RECORD_RECURSION default y help The ring buffer has its own internal recursion. Although when - recursion happens it wont cause harm because of the protection, + recursion happens it won't cause harm because of the protection, but it does cause an unwanted overhead. Enabling this option will place where recursion was detected into the ftrace "recursed_functions" file.
kernel/trace/ring_buffer.c +1 -1
@@ -5966,7 +5966,7 @@ static __init int test_ringbuffer(void)/* * Show buffer is enabled before setting rb_test_started. * Yes there's a small race window where events could be -* dropped and the thread wont catch it. But when a ring +* dropped and the thread won't catch it. But when a ring * buffer gets enabled, there will always be some kind of * delay before other CPUs see it. Thus, we don't care about * those dropped events. We care about events dropped after
kernel/trace/ring_buffer_benchmark.c +1 -1
@@ -431,7 +431,7 @@ static int __init ring_buffer_benchmark_init(void) {int ret; -/* make a one meg buffer in overwite mode */ +/* make a one meg buffer in overwrite mode */ buffer =ring_buffer_alloc (1000000 ,RB_FL_OVERWRITE );if (!buffer)return -ENOMEM ;
kernel/trace/rv/Kconfig +1 -1
@@ -45,7 +45,7 @@ config RV_MON_WWNR help Enable wwnr (wakeup while not running) sample monitor, this is a sample monitor that illustrates the usage of per-task monitor. - The model is borken on purpose: it serves to test reactors. + The model is broken on purpose: it serves to test reactors. For further information, see: Documentation/trace/rv/monitor_wwnr.rst
kernel/trace/rv/rv.c +1 -1
@@ -41,7 +41,7 @@* per-task monitor, and so on), and the helper functions that glue the * monitor to the system via trace. Generally, a monitor includes some form * of trace output as a reaction for event parsing and exceptions, -* as depicted bellow: +* as depicted below: * * Linux +----- RV Monitor ----------------------------------+ Formal * Realm | | Realm
kernel/trace/trace.c +1 -1
@@ -124,7 +124,7 @@ cpumask_var_t __read_mostly tracing_buffer_mask;* If there is an oops (or kernel panic) and the ftrace_dump_on_oops * is set, then ftrace_dump is called. This will output the contents * of the ftrace buffers to the console. This is very useful for -* capturing traces that lead to crashes and outputing it to a +* capturing traces that lead to crashes and outputting it to a * serial console. * * It is default off, but you can enable it with either specifying
kernel/trace/trace_events.c +1 -1
@@ -611,7 +611,7 @@ static int __ftrace_event_enable_disable(struct trace_event_file *file,* * When soft_disable is not set but the SOFT_MODE flag is, * we do nothing. Do not disable the tracepoint, otherwise -* "soft enable"s (clearing the SOFT_DISABLED bit) wont work. +* "soft enable"s (clearing the SOFT_DISABLED bit) won't work. */ if (soft_disable) {if (atomic_dec_return (&file->sm_ref) >0 )
kernel/trace/trace_events_filter.c +1 -1
@@ -92,7 +92,7 @@ static bool is_not(const char *str) }/** -* prog_entry - a singe entry in the filter program +* prog_entry - a single entry in the filter program * @target: Index to jump to on a branch (actually one minus the index) * @when_to_branch: The value of the result of the predicate to do a branch * @pred: The predicate to execute.
kernel/trace/trace_events_trigger.c +1 -1
@@ -650,7 +650,7 @@ static void unregister_trigger(char *glob,* param - text following cmd and ':' and stripped of filter * filter - the optional filter text following (and including) 'if' * -* To illustrate the use of these componenents, here are some concrete +* To illustrate the use of these components, here are some concrete * examples. For the following triggers: * * echo 'traceon:5 if pid == 0' > trigger
kernel/trace/trace_events_user.c +2 -2
@@ -189,7 +189,7 @@ static int user_field_array_size(const char *type)static int user_field_size (const char *type) { -/* long is not allowed from a user, since it's ambigious in size */ +/* long is not allowed from a user, since it's ambiguous in size */ if (strcmp (type,"s64" ) ==0 )return sizeof (s64);if (strcmp (type,"u64" ) ==0 )
@@ -227,7 +227,7 @@ static int user_field_size(const char *type)if (str_has_prefix (type,"__rel_loc " ))return sizeof (u32); -/* Uknown basic type, error */ +/* Unknown basic type, error */ return -EINVAL ; }
kernel/trace/trace_osnoise.c +8 -8
@@ -326,7 +326,7 @@ static struct osnoise_data {u64 print_stack;/* print IRQ stack if total > */ int timerlat_tracer;/* timerlat tracer */ #endif -bool tainted;/* infor users and developers about a problem */ +bool tainted;/* info users and developers about a problem */ } osnoise_data = { .sample_period = DEFAULT_SAMPLE_PERIOD, .sample_runtime = DEFAULT_SAMPLE_RUNTIME,
@@ -737,7 +737,7 @@ cond_move_thread_delta_start(struct osnoise_variables *osn_var, u64 duration)/* * get_int_safe_duration - Get the duration of a window * -* The irq, softirq and thread varaibles need to have its duration without +* The irq, softirq and thread variables need to have its duration without * the interference from higher priority interrupts. Instead of keeping a * variable to discount the interrupt interference from these variables, the * starting time of these variables are pushed forward with the interrupt's
@@ -1182,7 +1182,7 @@ trace_sched_switch_callback(void *data, bool preempt, }/* -* hook_thread_events - Hook the insturmentation for thread noise +* hook_thread_events - Hook the instrumentation for thread noise * * Hook the osnoise tracer callbacks to handle the noise from other * threads on the necessary kernel events.
@@ -1199,9 +1199,9 @@ static int hook_thread_events(void) }/* -* unhook_thread_events - *nhook the insturmentation for thread noise +* unhook_thread_events - Unhook the instrumentation for thread noise * -* Unook the osnoise tracer callbacks to handle the noise from other +* Unhook the osnoise tracer callbacks to handle the noise from other * threads on the necessary kernel events. */ static void unhook_thread_events (void )
@@ -1330,7 +1330,7 @@ static int run_osnoise(void) stop_in = osnoise_data.stop_tracing *NSEC_PER_USEC ;/* -* Start timestemp +* Start timestamp */ start =time_get ();
@@ -1664,7 +1664,7 @@ static int timerlat_main(void *data) tlat->kthread = current; osn_var->pid = current->pid;/* -* Anotate the arrival time. +* Annotate the arrival time. */ tlat->abs_period =hrtimer_cb_get_time (&tlat->timer);
@@ -1734,7 +1734,7 @@ static void stop_per_cpu_kthreads(void) }/* -* start_kthread - Start a workload tread +* start_kthread - Start a workload thread */ static int start_kthread (unsigned int cpu) {
kernel/trace/trace_seq.c +1 -1
@@ -18,7 +18,7 @@* * A write to the buffer will either succeed or fail. That is, unlike * sprintf() there will not be a partial write (well it may write into -* the buffer but it wont update the pointers). This allows users to +* the buffer but it won't update the pointers). This allows users to * try to write something into the trace_seq buffer and if it fails * they can flush it and try again. *
base-commit: 70575e77839f4c5337ce2653b39b86bb365a870e
Signature · 1 line
2.50.1
Hi Steven, hi Ingo,
I've just realized, that I send my patch against trace/master whereas the current development seems to happen on trace/for-next.
I'm new to the mailing list, so please bear with me. Two question arise for me:
Are you even interested in spelling fixes like I did below?
And if yes, does all the new development happens in general on trace/for-next?
Thanks a lot for a quick reply. If I get a positive answer from you I will resend my patch on the correct branch.
Cheers,
Maurice
Quoted 244 lines · Maurice Hieronymus
Fix several spelling mistakes in comments in the trace subsystem. No functional changes. These fixes improve readability and correctness of comments in the tracing subsystem.
Signed-off-by Maurice Hieronymus <[email protected]>--- kernel/trace/Kconfig | 2 +- kernel/trace/ring_buffer.c | 2 +- kernel/trace/ring_buffer_benchmark.c | 2 +- kernel/trace/rv/Kconfig | 2 +- kernel/trace/rv/rv.c | 2 +- kernel/trace/trace.c | 2 +- kernel/trace/trace_events.c | 2 +- kernel/trace/trace_events_filter.c | 2 +- kernel/trace/trace_events_trigger.c | 2 +- kernel/trace/trace_events_user.c | 4 ++-- kernel/trace/trace_osnoise.c | 16 ++++++++-------- kernel/trace/trace_seq.c | 2 +- 12 files changed, 20 insertions(+), 20 deletions(-)kernel/trace/Kconfig +1
-1@@ -918,7 +918,7 @@ config RING_BUFFER_RECORD_RECURSION default y help The ring buffer has its own internal recursion. Although when - recursion happens it wont cause harm because of the protection, + recursion happens it won't cause harm because of the protection, but it does cause an unwanted overhead. Enabling this option will place where recursion was detected into the ftrace "recursed_functions" file.kernel/trace/ring_buffer.c +1
-1@@ -5966,7 +5966,7 @@ static __init int test_ringbuffer(void)/* * Show buffer is enabled before setting rb_test_started. * Yes there's a small race window where events could be -* dropped and the thread wont catch it. But when a ring +* dropped and the thread won't catch it. But when a ring * buffer gets enabled, there will always be some kind of * delay before other CPUs see it. Thus, we don't care about * those dropped events. We care about events dropped after kernel/trace/ring_buffer_benchmark.c +1
-1@@ -431,7 +431,7 @@ static int __init ring_buffer_benchmark_init(void) {int ret; -/* make a one meg buffer in overwite mode */ +/* make a one meg buffer in overwrite mode */ buffer =ring_buffer_alloc (1000000 ,RB_FL_OVERWRITE );if (!buffer)return -ENOMEM ;kernel/trace/rv/Kconfig +1
-1@@ -45,7 +45,7 @@ config RV_MON_WWNR help Enable wwnr (wakeup while not running) sample monitor, this is a sample monitor that illustrates the usage of per-task monitor. - The model is borken on purpose: it serves to test reactors. + The model is broken on purpose: it serves to test reactors. For further information, see: Documentation/trace/rv/monitor_wwnr.rstkernel/trace/rv/rv.c +1
-1@@ -41,7 +41,7 @@* per-task monitor, and so on), and the helper functions that glue the * monitor to the system via trace. Generally, a monitor includes some form * of trace output as a reaction for event parsing and exceptions, -* as depicted bellow: +* as depicted below: * * Linux +----- RV Monitor ----------------------------------+ Formal * Realm | | Realm kernel/trace/trace.c +1
-1@@ -124,7 +124,7 @@ cpumask_var_t __read_mostly tracing_buffer_mask;* If there is an oops (or kernel panic) and the ftrace_dump_on_oops * is set, then ftrace_dump is called. This will output the contents * of the ftrace buffers to the console. This is very useful for -* capturing traces that lead to crashes and outputing it to a +* capturing traces that lead to crashes and outputting it to a * serial console. * * It is default off, but you can enable it with either specifying kernel/trace/trace_events.c +1
-1@@ -611,7 +611,7 @@ static int __ftrace_event_enable_disable(struct trace_event_file *file,* * When soft_disable is not set but the SOFT_MODE flag is, * we do nothing. Do not disable the tracepoint, otherwise -* "soft enable"s (clearing the SOFT_DISABLED bit) wont work. +* "soft enable"s (clearing the SOFT_DISABLED bit) won't work. */ if (soft_disable) {if (atomic_dec_return (&file->sm_ref) >0 )kernel/trace/trace_events_filter.c +1
-1@@ -92,7 +92,7 @@ static bool is_not(const char *str) }/** -* prog_entry - a singe entry in the filter program +* prog_entry - a single entry in the filter program * @target: Index to jump to on a branch (actually one minus the index) * @when_to_branch: The value of the result of the predicate to do a branch * @pred: The predicate to execute. kernel/trace/trace_events_trigger.c +1
-1@@ -650,7 +650,7 @@ static void unregister_trigger(char *glob,* param - text following cmd and ':' and stripped of filter * filter - the optional filter text following (and including) 'if' * -* To illustrate the use of these componenents, here are some concrete +* To illustrate the use of these components, here are some concrete * examples. For the following triggers: * * echo 'traceon:5 if pid == 0' > trigger kernel/trace/trace_events_user.c +2
-2@@ -189,7 +189,7 @@ static int user_field_array_size(const char *type)static int user_field_size (const char *type) { -/* long is not allowed from a user, since it's ambigious in size */ +/* long is not allowed from a user, since it's ambiguous in size */ if (strcmp (type,"s64" ) ==0 )return sizeof (s64);if (strcmp (type,"u64" ) ==0 )@@ -227,7 +227,7 @@ static int user_field_size(const char *type)if (str_has_prefix (type,"__rel_loc " ))return sizeof (u32); -/* Uknown basic type, error */ +/* Unknown basic type, error */ return -EINVAL ; }kernel/trace/trace_osnoise.c +8
-8@@ -326,7 +326,7 @@ static struct osnoise_data {u64 print_stack;/* print IRQ stack if total > */ int timerlat_tracer;/* timerlat tracer */ #endif -bool tainted;/* infor users and developers about a problem */ +bool tainted;/* info users and developers about a problem */ } osnoise_data = { .sample_period = DEFAULT_SAMPLE_PERIOD, .sample_runtime = DEFAULT_SAMPLE_RUNTIME,@@ -737,7 +737,7 @@ cond_move_thread_delta_start(struct osnoise_variables *osn_var, u64 duration)/* * get_int_safe_duration - Get the duration of a window * -* The irq, softirq and thread varaibles need to have its duration without +* The irq, softirq and thread variables need to have its duration without * the interference from higher priority interrupts. Instead of keeping a * variable to discount the interrupt interference from these variables, the * starting time of these variables are pushed forward with the interrupt's @@ -1182,7 +1182,7 @@ trace_sched_switch_callback(void *data, bool preempt, }/* -* hook_thread_events - Hook the insturmentation for thread noise +* hook_thread_events - Hook the instrumentation for thread noise * * Hook the osnoise tracer callbacks to handle the noise from other * threads on the necessary kernel events. @@ -1199,9 +1199,9 @@ static int hook_thread_events(void) }/* -* unhook_thread_events - *nhook the insturmentation for thread noise +* unhook_thread_events - Unhook the instrumentation for thread noise * -* Unook the osnoise tracer callbacks to handle the noise from other +* Unhook the osnoise tracer callbacks to handle the noise from other * threads on the necessary kernel events. */ static void unhook_thread_events (void )@@ -1330,7 +1330,7 @@ static int run_osnoise(void) stop_in = osnoise_data.stop_tracing *NSEC_PER_USEC ;/* -* Start timestemp +* Start timestamp */ start =time_get ();@@ -1664,7 +1664,7 @@ static int timerlat_main(void *data) tlat->kthread = current; osn_var->pid = current->pid;/* -* Anotate the arrival time. +* Annotate the arrival time. */ tlat->abs_period =hrtimer_cb_get_time (&tlat->timer);@@ -1734,7 +1734,7 @@ static void stop_per_cpu_kthreads(void) }/* -* start_kthread - Start a workload tread +* start_kthread - Start a workload thread */ static int start_kthread (unsigned int cpu) {kernel/trace/trace_seq.c +1
-1@@ -18,7 +18,7 @@* * A write to the buffer will either succeed or fail. That is, unlike * sprintf() there will not be a partial write (well it may write into -* the buffer but it wont update the pointers). This allows users to +* the buffer but it won't update the pointers). This allows users to * try to write something into the trace_seq buffer and if it fails * they can flush it and try again. * base-commit:
70575e77839f4c5337ce2653b39b86bb365a870e
Steven Rostedt
maintainerQuoted 1 line · On Fri, 21 Nov 2025 19:45:01 +0100 Maurice Hieronymus <[email protected]> wrote:
Hi Steven, hi Ingo,
Note, Ingo is no longer one of the tracing subsystem maintainers. That is now Masami Hiramatsu. Please update your MAINTAINERS file.
Quoted 8 lines
I've just realized, that I send my patch against trace/master whereas the current development seems to happen on trace/for-next.
I'm new to the mailing list, so please bear with me. Two question arise for me:
Are you even interested in spelling fixes like I did below?
I'll take spelling fixes, but they are very low on the priority list. I'll usually pull them in after all other patches have been processed in a release cycle.
Quoted 3 lines
And if yes, does all the new development happens in general on trace/for-next?
The trace/for-next branch is for new development of the general tracing code. But other code may go through other topic branches. There's a latency/for-next branch that handles the runtime verifier.
Best to break up the patches per file, otherwise they may not apply correctly.
Quoted 5 lines
Thanks a lot for a quick reply. If I get a positive answer from you I will resend my patch on the correct branch.
Quoted 10 lines
kernel/trace/rv/Kconfig config RV_MON_WWNR · line 48
Quoted 10 lines
kernel/trace/rv/Kconfig +1
-1@@ -45,7 +45,7 @@ config RV_MON_WWNR help Enable wwnr (wakeup while not running) sample monitor, this is a sample monitor that illustrates the usage of per-task monitor. - The model is borken on purpose: it serves to test reactors. + The model is broken on purpose: it serves to test reactors.
This is not a spelling fix. "borken" is a common word used in the kernel community.
-- Steve
Quoted 3 lines
Quoted 3 lines
kernel/trace/rv/Kconfig +0
-0For further information, see: Documentation/trace/rv/monitor_wwnr.rst