Skip to content

Commit f2cc020

Browse files
ingomolnarrostedt
authored andcommitted
tracing: Fix various typos in comments
Fix ~59 single-word typos in the tracing code comments, and fix the grammar in a handful of places. Link: https://lore.kernel.org/r/20210322224546.GA1981273@gmail.com Link: https://lkml.kernel.org/r/20210323174935.GA4176821@gmail.com Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent b700fc3 commit f2cc020

32 files changed

Lines changed: 60 additions & 59 deletions

‎arch/microblaze/include/asm/ftrace.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern void ftrace_call_graph(void);
1313
#endif
1414

1515
#ifdef CONFIG_DYNAMIC_FTRACE
16-
/* reloction of mcount call site is the same as the address */
16+
/* relocation of mcount call site is the same as the address */
1717
static inline unsigned long ftrace_call_adjust(unsigned long addr)
1818
{
1919
return addr;

‎arch/nds32/kernel/ftrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void __naked return_to_handler(void)
236236
"bal ftrace_return_to_handler\n\t"
237237
"move $lp, $r0 \n\t"
238238

239-
/* restore state nedded by the ABI */
239+
/* restore state needed by the ABI */
240240
"lmw.bim $r0,[$sp],$r1,#0x0 \n\t");
241241
}
242242

‎arch/powerpc/include/asm/ftrace.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#ifdef __ASSEMBLY__
1414

15-
/* Based off of objdump optput from glibc */
15+
/* Based off of objdump output from glibc */
1616

1717
#define MCOUNT_SAVE_FRAME \
1818
stwu r1,-48(r1); \
@@ -52,7 +52,7 @@ extern void _mcount(void);
5252

5353
static inline unsigned long ftrace_call_adjust(unsigned long addr)
5454
{
55-
/* reloction of mcount call site is the same as the address */
55+
/* relocation of mcount call site is the same as the address */
5656
return addr;
5757
}
5858

‎arch/sh/kernel/ftrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static unsigned char *ftrace_call_replace(unsigned long ip, unsigned long addr)
6767
* Modifying code must take extra care. On an SMP machine, if
6868
* the code being modified is also being executed on another CPU
6969
* that CPU will have undefined results and possibly take a GPF.
70-
* We use kstop_machine to stop other CPUS from exectuing code.
70+
* We use kstop_machine to stop other CPUS from executing code.
7171
* But this does not stop NMIs from happening. We still need
7272
* to protect against that. We separate out the modification of
7373
* the code to take care of this.

‎arch/sparc/include/asm/ftrace.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void _mcount(void);
1717
#endif
1818

1919
#ifdef CONFIG_DYNAMIC_FTRACE
20-
/* reloction of mcount call site is the same as the address */
20+
/* relocation of mcount call site is the same as the address */
2121
static inline unsigned long ftrace_call_adjust(unsigned long addr)
2222
{
2323
return addr;

‎fs/tracefs/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ struct dentry *tracefs_create_dir(const char *name, struct dentry *parent)
477477
*
478478
* The instances directory is special as it allows for mkdir and rmdir to
479479
* to be done by userspace. When a mkdir or rmdir is performed, the inode
480-
* locks are released and the methhods passed in (@mkdir and @rmdir) are
480+
* locks are released and the methods passed in (@mkdir and @rmdir) are
481481
* called without locks and with the name of the directory being created
482482
* within the instances directory.
483483
*

‎include/linux/ftrace.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/*
3434
* If the arch's mcount caller does not support all of ftrace's
3535
* features, then it must call an indirect function that
36-
* does. Or at least does enough to prevent any unwelcomed side effects.
36+
* does. Or at least does enough to prevent any unwelcome side effects.
3737
*/
3838
#if !ARCH_SUPPORTS_FTRACE_OPS
3939
# define FTRACE_FORCE_LIST_FUNC 1
@@ -389,7 +389,7 @@ DECLARE_PER_CPU(int, disable_stack_tracer);
389389
*/
390390
static inline void stack_tracer_disable(void)
391391
{
392-
/* Preemption or interupts must be disabled */
392+
/* Preemption or interrupts must be disabled */
393393
if (IS_ENABLED(CONFIG_DEBUG_PREEMPT))
394394
WARN_ON_ONCE(!preempt_count() || !irqs_disabled());
395395
this_cpu_inc(disable_stack_tracer);

‎include/linux/trace_events.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static inline unsigned int tracing_gen_ctx_dec(void)
206206

207207
trace_ctx = tracing_gen_ctx();
208208
/*
209-
* Subtract one from the preeption counter if preemption is enabled,
209+
* Subtract one from the preemption counter if preemption is enabled,
210210
* see trace_event_buffer_reserve()for details.
211211
*/
212212
if (IS_ENABLED(CONFIG_PREEMPTION))

‎include/linux/tracepoint.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
465465
* *
466466
* * The declared 'local variable' is called '__entry'
467467
* *
468-
* * __field(pid_t, prev_prid) is equivalent to a standard declariton:
468+
* * __field(pid_t, prev_prid) is equivalent to a standard declaration:
469469
* *
470470
* * pid_t prev_pid;
471471
* *

‎include/trace/events/io_uring.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ TRACE_EVENT(io_uring_create,
4949
);
5050

5151
/**
52-
* io_uring_register - called after a buffer/file/eventfd was succesfully
52+
* io_uring_register - called after a buffer/file/eventfd was successfully
5353
* registered for a ring
5454
*
5555
* @ctx: pointer to a ring context structure

0 commit comments

Comments
 (0)