perf record: Fix comment misspellings
authorHoward Chu <howardchu95@gmail.com>
Thu, 25 Apr 2024 06:04:27 +0000 (14:04 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 27 Apr 2024 01:13:10 +0000 (22:13 -0300)
Fix comment misspellings

Signed-off-by: Howard Chu <howardchu95@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240425060427.1800663-1-howardchu95@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/mmap.c
tools/perf/builtin-record.c

index 0c903c2372c97850ab7d3fddea63ddd67bfd40c9..c1a51d925e0e02b38a6a83e2a3f834979902fe02 100644 (file)
@@ -279,7 +279,7 @@ union perf_event *perf_mmap__read_event(struct perf_mmap *map)
        if (!refcount_read(&map->refcnt))
                return NULL;
 
-       /* non-overwirte doesn't pause the ringbuffer */
+       /* non-overwrite doesn't pause the ringbuffer */
        if (!map->overwrite)
                map->end = perf_mmap__read_head(map);
 
index 2ff718d3e20262b08b75688f58af5348795d4e60..66a3de8ac66186b024226cd03cf0fdeb6ff99f34 100644 (file)
@@ -332,7 +332,7 @@ static int record__aio_complete(struct mmap *md, struct aiocb *cblock)
        } else {
                /*
                 * aio write request may require restart with the
-                * reminder if the kernel didn't write whole
+                * remainder if the kernel didn't write whole
                 * chunk at once.
                 */
                rem_off = cblock->aio_offset + written;
@@ -400,7 +400,7 @@ static int record__aio_pushfn(struct mmap *map, void *to, void *buf, size_t size
         *
         * Coping can be done in two steps in case the chunk of profiling data
         * crosses the upper bound of the kernel buffer. In this case we first move
-        * part of data from map->start till the upper bound and then the reminder
+        * part of data from map->start till the upper bound and then the remainder
         * from the beginning of the kernel buffer till the end of the data chunk.
         */