tracing: fix spelling mistakes
Subsystems (2)
cover tracing: fix spelling mistakes
The files being checked:kernel/trace/include/linux/trace*.h
Zhen Lei (1):
tracing: fix spelling mistakes
include/linux/tracepoint.h | 2 +- kernel/trace/Kconfig | 2 +- kernel/trace/ring_buffer.c | 2 +- kernel/trace/ring_buffer_benchmark.c | 2 +- kernel/trace/trace.c | 6 +++--- kernel/trace/trace_branch.c | 2 +- kernel/trace/trace_events.c | 2 +- kernel/trace/trace_events_filter.c | 2 +- kernel/trace/trace_seq.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/1 tracing: fix spelling mistakes
Fix some spelling mistakes in comments:
wont ==> won't
overwite ==> overwrite
outputing ==> outputting
overlayed ==> overlaid
singe ==> single
The name of an unused function parameter:
ingore ==> ignore
And the name of the cpuhp step:
preapre ==> prepare
--- include/linux/tracepoint.h | 2 +- kernel/trace/Kconfig | 2 +- kernel/trace/ring_buffer.c | 2 +- kernel/trace/ring_buffer_benchmark.c | 2 +- kernel/trace/trace.c | 6 +++--- kernel/trace/trace_branch.c | 2 +- kernel/trace/trace_events.c | 2 +- kernel/trace/trace_events_filter.c | 2 +- kernel/trace/trace_seq.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-)
include/linux/tracepoint.h +1 -1
@@ -507,7 +507,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)* * This is how the tracepoint will appear under ftrace * * plugins that make use of this tracepoint. * * -* * (raw-binary tracing wont actually perform this step.) +* * (raw-binary tracing won't actually perform this step.) * * * * TP_printk("task %s:%d [%d] ==> %s:%d [%d]",
kernel/trace/Kconfig +1 -1
@@ -795,7 +795,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
@@ -5902,7 +5902,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/trace.c +3 -3
@@ -122,7 +122,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
@@ -9323,7 +9323,7 @@ init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer)ftrace_init_tracefs (tr, d_tracer); } -static struct vfsmount *trace_automount (struct dentry *mntpt,void *ingore) +static struct vfsmount *trace_automount (struct dentry *mntpt,void *ignore) {struct vfsmount *mnt;struct file_system_type *type;
@@ -9858,7 +9858,7 @@ __init static int tracer_alloc_buffers(void)* buffer. The memory will be removed once the "instance" is removed. */ ret =cpuhp_setup_state_multi (CPUHP_TRACE_RB_PREPARE , -"trace/RB:preapre" , trace_rb_cpu_prepare, +"trace/RB:prepare" , trace_rb_cpu_prepare,NULL );if (ret <0 ) goto out_free_cpumask;
kernel/trace/trace_branch.c +1 -1
@@ -274,7 +274,7 @@ static void branch_stat_show(struct seq_file *m,long percent;/* -* The miss is overlayed on correct, and hit on incorrect. +* The miss is overlaid on correct, and hit on incorrect. */ percent =get_incorrect_percent (p);
kernel/trace/trace_events.c +1 -1
@@ -594,7 +594,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
@@ -91,7 +91,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_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. *
Signature · 1 line
2.25.1
Steven Rostedt
maintainerQuoted 2 lines · On Tue, 25 May 2021 14:20:47 +0800 Zhen Lei <[email protected]> wrote:
Fix some spelling mistakes in comments:
wont ==> won't
I prefer not to fix that spelling. I sometimes purposely leave off single quotes. It's no that big of a deal, and doesn't deserve the churn.
-- Steve
Quoted 9 lines · Steven Rostedt
Quoted 2 lines · On Tue, 25 May 2021 14:20:47 +0800 Zhen Lei <[email protected]> wrote:
Fix some spelling mistakes in comments:
wont ==> won'tI prefer not to fix that spelling. I sometimes purposely leave off single quotes. It's no that big of a deal, and doesn't deserve the churn.
Yes, all people can get it right by their wits. "Wont" doesn't affect their reading speed. But most people might think it's best to add the missing single quote.
The minority obeys the majority?
In addition, "wont" is an independent word. See:
https://www.grammarly.com/blog/wont-vs-wont/
Wont is usually used as a noun meaning “a type of behavior specific to a person,” or “a habit.”
Quoted 5 lines
-- Steve
.
Steven Rostedt
maintainerQuoted 11 lines · On Sat, 29 May 2021 10:01:31 +0800 "Leizhen (ThunderTown)"…
Quoted 9 lines · Steven Rostedt
Quoted 2 lines · On Tue, 25 May 2021 14:20:47 +0800 Zhen Lei <[email protected]> wrote:
Fix some spelling mistakes in comments:
wont ==> won'tI prefer not to fix that spelling. I sometimes purposely leave off single quotes. It's no that big of a deal, and doesn't deserve the churn.
Quoted 5 lines
Yes, all people can get it right by their wits. "Wont" doesn't affect their reading speed. But most people might think it's best to add the missing single quote.
The minority obeys the majority?
I really don't care. In my opinion, it's unnecessary churn, that just adds noise to the git logs.
-- Steve
Quoted 14 lines · Steven Rostedt
Quoted 11 lines · On Sat, 29 May 2021 10:01:31 +0800 "Leizhen (ThunderTown)"…
Quoted 9 lines · Steven Rostedt
Quoted 2 lines · On Tue, 25 May 2021 14:20:47 +0800 Zhen Lei <[email protected]> wrote:
Fix some spelling mistakes in comments:
wont ==> won'tI prefer not to fix that spelling. I sometimes purposely leave off single quotes. It's no that big of a deal, and doesn't deserve the churn.
Quoted 8 lines
Quoted 5 lines
Yes, all people can get it right by their wits. "Wont" doesn't affect their reading speed. But most people might think it's best to add the missing single quote.
The minority obeys the majority?
I really don't care. In my opinion, it's unnecessary churn, that just adds noise to the git logs.
git grep -wn wont | wc -l
83
OK, I just did a search for "wont", and there are currently 83 places in use. Language is not mathematics, there is no absolute right or wrong. If a lot of people are using it incorrectly or specifically, then the new one is also right.
Wow, should I send v2 to remove "wont ==> won't"?
Quoted 5 lines
-- Steve
.
Quoted 17 lines · Leizhen (ThunderTown)
Quoted 14 lines · Steven Rostedt
Quoted 11 lines · On Sat, 29 May 2021 10:01:31 +0800 "Leizhen (ThunderTown)"…
Quoted 9 lines · Steven Rostedt
Quoted 2 lines · On Tue, 25 May 2021 14:20:47 +0800 Zhen Lei <[email protected]> wrote:
Fix some spelling mistakes in comments:
wont ==> won'tI prefer not to fix that spelling. I sometimes purposely leave off single quotes. It's no that big of a deal, and doesn't deserve the churn.
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Yes, all people can get it right by their wits. "Wont" doesn't affect their reading speed. But most people might think it's best to add the missing single quote.
The minority obeys the majority?
I really don't care.
Thanks.
Quoted 6 lines
Quoted 2 lines
In my opinion, it's unnecessary churn, that just
adds noise to the git logs.git grep -wn wont | wc -l
83
Quoted 6 lines
OK, I just did a search for "wont", and there are currently 83 places in use. Language is not mathematics, there is no absolute right or wrong. If a lot of people are using it incorrectly or specifically, then the new one is also right.
Wow, should I send v2 to remove "wont ==> won't"?
Actually, I'd prefer to change it to "won't".
Quoted 6 lines
Quoted 6 lines
-- Steve
.
Quoted 14 lines · Steven Rostedt
Quoted 11 lines · On Sat, 29 May 2021 10:01:31 +0800 "Leizhen (ThunderTown)"…
Quoted 9 lines · Steven Rostedt
Quoted 2 lines · On Tue, 25 May 2021 14:20:47 +0800 Zhen Lei <[email protected]> wrote:
Fix some spelling mistakes in comments:
wont ==> won'tI prefer not to fix that spelling. I sometimes purposely leave off single quotes. It's no that big of a deal, and doesn't deserve the churn.
Quoted 8 lines
Quoted 5 lines
Yes, all people can get it right by their wits. "Wont" doesn't affect their reading speed. But most people might think it's best to add the missing single quote.
The minority obeys the majority?
I really don't care. In my opinion, it's unnecessary churn, that just adds noise to the git logs.
Hi, Steve:
$ cat scripts/spelling.txt | grep wont wont||won't
"wont" has been recognized as a misspelling.
Quoted 5 lines
-- Steve
.