Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf tools: Fix diverse comment typos

Go over the tools/ files that are maintained in Arnaldo's tree and
fix common typos: half of them were in comments, the other half
in JSON files.

No change in functionality intended.

Committer notes:

This was split from a larger patch as there are code that is,
additionally, maintained outside the kernel tree, so to ease
cherry-picking and/or backporting, split this into multiple patches.

Just typos in comments, no need to backport, reducing the possibility of
possible backporting artifacts.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20181203102200.GA104797@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ingo Molnar and committed by
Arnaldo Carvalho de Melo
adba1634 e4a8b0af

+12 -12
+1 -1
tools/perf/arch/x86/tests/insn-x86.c
··· 170 170 * 171 171 * If the test passes %0 is returned, otherwise %-1 is returned. Use the 172 172 * verbose (-v) option to see all the instructions and whether or not they 173 - * decoded successfuly. 173 + * decoded successfully. 174 174 */ 175 175 int test__insn_x86(struct test *test __maybe_unused, int subtest __maybe_unused) 176 176 {
+1 -1
tools/perf/builtin-top.c
··· 595 595 596 596 /* 597 597 * Initialize the uid_filter_str, in the future the TUI will allow 598 - * Zooming in/out UIDs. For now juse use whatever the user passed 598 + * Zooming in/out UIDs. For now just use whatever the user passed 599 599 * via --uid. 600 600 */ 601 601 evlist__for_each_entry(top->evlist, pos) {
+1 -1
tools/perf/builtin-trace.c
··· 2782 2782 * Now that we already used evsel->attr to ask the kernel to setup the 2783 2783 * events, lets reuse evsel->attr.sample_max_stack as the limit in 2784 2784 * trace__resolve_callchain(), allowing per-event max-stack settings 2785 - * to override an explicitely set --max-stack global setting. 2785 + * to override an explicitly set --max-stack global setting. 2786 2786 */ 2787 2787 evlist__for_each_entry(evlist, evsel) { 2788 2788 if (evsel__has_callchain(evsel) &&
+1 -1
tools/perf/tests/attr.c
··· 182 182 char path_perf[PATH_MAX]; 183 183 char path_dir[PATH_MAX]; 184 184 185 - /* First try developement tree tests. */ 185 + /* First try development tree tests. */ 186 186 if (!lstat("./tests", &st)) 187 187 return run_dir("./tests", "./perf"); 188 188
+1 -1
tools/perf/util/annotate.c
··· 1772 1772 while (!feof(file)) { 1773 1773 /* 1774 1774 * The source code line number (lineno) needs to be kept in 1775 - * accross calls to symbol__parse_objdump_line(), so that it 1775 + * across calls to symbol__parse_objdump_line(), so that it 1776 1776 * can associate it with the instructions till the next one. 1777 1777 * See disasm_line__new() and struct disasm_line::line_nr. 1778 1778 */
+1 -1
tools/perf/util/header.c
··· 2798 2798 lseek(fd, sec_start, SEEK_SET); 2799 2799 /* 2800 2800 * may write more than needed due to dropped feature, but 2801 - * this is okay, reader will skip the mising entries 2801 + * this is okay, reader will skip the missing entries 2802 2802 */ 2803 2803 err = do_write(&ff, feat_sec, sec_size); 2804 2804 if (err < 0)
+1 -1
tools/perf/util/hist.c
··· 1160 1160 1161 1161 /* 1162 1162 * If this is not the last column, then we need to pad it according to the 1163 - * pre-calculated max lenght for this column, otherwise don't bother adding 1163 + * pre-calculated max length for this column, otherwise don't bother adding 1164 1164 * spaces because that would break viewing this with, for instance, 'less', 1165 1165 * that would show tons of trailing spaces when a long C++ demangled method 1166 1166 * names is sampled.
+1 -1
tools/perf/util/jitdump.c
··· 38 38 uint64_t sample_type; 39 39 size_t bufsize; 40 40 FILE *in; 41 - bool needs_bswap; /* handles cross-endianess */ 41 + bool needs_bswap; /* handles cross-endianness */ 42 42 bool use_arch_timestamp; 43 43 void *debug_data; 44 44 void *unwinding_data;
+1 -1
tools/perf/util/machine.c
··· 137 137 struct machine *machine = machine__new_host(); 138 138 /* 139 139 * FIXME: 140 - * 1) We should switch to machine__load_kallsyms(), i.e. not explicitely 140 + * 1) We should switch to machine__load_kallsyms(), i.e. not explicitly 141 141 * ask for not using the kcore parsing code, once this one is fixed 142 142 * to create a map per module. 143 143 */
+2 -2
tools/perf/util/probe-event.c
··· 692 692 return ret; 693 693 694 694 for (i = 0; i < ntevs && ret >= 0; i++) { 695 - /* point.address is the addres of point.symbol + point.offset */ 695 + /* point.address is the address of point.symbol + point.offset */ 696 696 tevs[i].point.address -= stext; 697 697 tevs[i].point.module = strdup(exec); 698 698 if (!tevs[i].point.module) { ··· 3062 3062 /* 3063 3063 * Give it a '0x' leading symbol name. 3064 3064 * In __add_probe_trace_events, a NULL symbol is interpreted as 3065 - * invalud. 3065 + * invalid. 3066 3066 */ 3067 3067 if (asprintf(&tp->symbol, "0x%lx", tp->address) < 0) 3068 3068 goto errout;
+1 -1
tools/perf/util/sort.c
··· 37 37 * -t, --field-separator 38 38 * 39 39 * option, that uses a special separator character and don't pad with spaces, 40 - * replacing all occurances of this separator in symbol names (and other 40 + * replacing all occurrences of this separator in symbol names (and other 41 41 * output) with a '.' character, that thus it's the only non valid separator. 42 42 */ 43 43 static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...)