Skip to contentSkip to conversation

perf: fix spelling mistakes

PATCH New Zhen Lei 1 participant 2 messages May 25, 2021

Subsystems (2)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

cover perf: fix spelling mistakes

The files being checked:
kernel/events/
include/linux/*event*.h, but exclude file tpm_eventlog.h

Zhen Lei (1):
perf: fix spelling mistakes

 include/linux/perf_event.h | 2 +-
 kernel/events/core.c       | 8 ++++----
 kernel/events/uprobes.c    | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/1 perf: fix spelling mistakes

Fix some spelling mistakes in comments:
initalization ==> initialization
artifically ==> artificially
futher ==> further
sufficent ==> sufficient
elegible ==> eligible
cant ==> can't
successully ==> successfully

---
 include/linux/perf_event.h | 2 +-
 kernel/events/core.c       | 8 ++++----
 kernel/events/uprobes.c    | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
include/linux/perf_event.h +1 -1
index f5a6a2f069ed..32fd40d0df8f 100644
@@ -163,7 +163,7 @@ struct hw_perf_event {
 			/*
 			 * Crufty hack to avoid the chicken and egg
 			 * problem hw_breakpoint has with context
-			 * creation and event initalization.
+			 * creation and event initialization.
 			 */
 			struct arch_hw_breakpoint	info;
 			struct list_head		bp_list;
kernel/events/core.c +4 -4
index 6fee4a7e88d7..4895fa011477 100644
@@ -532,7 +532,7 @@ void perf_sample_event_took(u64 sample_len_ns)
 	__this_cpu_write(running_sample_length, running_len);
 
 	/*
-	 * Note: this will be biased artifically low until we have
+	 * Note: this will be biased artificially low until we have
 	 * seen NR_ACCUMULATED_SAMPLES. Doing it this way keeps us
 	 * from having to maintain a count.
 	 */
@@ -604,7 +604,7 @@ static inline u64 perf_event_clock(struct perf_event *event)
  * OFF, irrespecive of what the group member states are. This results in
  * __perf_effective_state().
  *
- * A futher ramification is that when a group leader flips between OFF and
+ * A further ramification is that when a group leader flips between OFF and
  * !OFF, we need to update all group member times.
  *
  *
@@ -907,7 +907,7 @@ static int perf_cgroup_ensure_storage(struct perf_event *event,
 	int cpu, heap_size, ret = 0;
 
 	/*
-	 * Allow storage to have sufficent space for an iterator for each
+	 * Allow storage to have sufficient space for an iterator for each
 	 * possibly nested cgroup plus an iterator for events with no cgroup.
 	 */
 	for (heap_size = 1; css; css = css->parent)
@@ -4080,7 +4080,7 @@ static void perf_adjust_freq_unthr_context(struct perf_event_context *ctx,
 }
 
 /*
- * Move @event to the tail of the @ctx's elegible events.
+ * Move @event to the tail of the @ctx's eligible events.
  */
 static void rotate_ctx(struct perf_event_context *ctx, struct perf_event *event)
 {
kernel/events/uprobes.c +2 -2
index 6addc9780319..c4cc89f4c291 100644
@@ -1093,7 +1093,7 @@ __uprobe_unregister(struct uprobe *uprobe, struct uprobe_consumer *uc)
 		return;
 
 	err = register_for_each_vma(uprobe, NULL);
-	/* TODO : cant unregister? schedule a worker thread */
+	/* TODO : can't unregister? schedule a worker thread */
 	if (!uprobe->consumers && !err)
 		delete_uprobe(uprobe);
 }
@@ -1134,7 +1134,7 @@ EXPORT_SYMBOL_GPL(uprobe_unregister);
  * unregisters. Caller of __uprobe_register() is required to keep @inode
  * (and the containing mount) referenced.
  *
- * Return errno if it cannot successully install probes
+ * Return errno if it cannot successfully install probes
  * else return 0 (success)
  */
 static int __uprobe_register(struct inode *inode, loff_t offset,
Signature · 1 line
2.25.1