Skip to content

Commit adba163

Browse files
Ingo Molnaracmel
authored andcommitted
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 <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent e4a8b0a commit adba163

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

tools/perf/arch/x86/tests/insn-x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static int test_data_set(struct test_data *dat_set, int x86_64)
170170
*
171171
* If the test passes %0 is returned, otherwise %-1 is returned. Use the
172172
* verbose (-v) option to see all the instructions and whether or not they
173-
* decoded successfuly.
173+
* decoded successfully.
174174
*/
175175
int test__insn_x86(struct test *test __maybe_unused, int subtest __maybe_unused)
176176
{

tools/perf/builtin-top.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ static void *display_thread_tui(void *arg)
595595

596596
/*
597597
* 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
599599
* via --uid.
600600
*/
601601
evlist__for_each_entry(top->evlist, pos) {

tools/perf/builtin-trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,7 @@ static int trace__run(struct trace *trace, int argc, const char **argv)
27822782
* Now that we already used evsel->attr to ask the kernel to setup the
27832783
* events, lets reuse evsel->attr.sample_max_stack as the limit in
27842784
* 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.
27862786
*/
27872787
evlist__for_each_entry(evlist, evsel) {
27882788
if (evsel__has_callchain(evsel) &&

tools/perf/tests/attr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ int test__attr(struct test *test __maybe_unused, int subtest __maybe_unused)
182182
char path_perf[PATH_MAX];
183183
char path_dir[PATH_MAX];
184184

185-
/* First try developement tree tests. */
185+
/* First try development tree tests. */
186186
if (!lstat("./tests", &st))
187187
return run_dir("./tests", "./perf");
188188

tools/perf/util/annotate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ static int symbol__disassemble(struct symbol *sym, struct annotate_args *args)
17721772
while (!feof(file)) {
17731773
/*
17741774
* 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
17761776
* can associate it with the instructions till the next one.
17771777
* See disasm_line__new() and struct disasm_line::line_nr.
17781778
*/

tools/perf/util/header.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2798,7 +2798,7 @@ static int perf_header__adds_write(struct perf_header *header,
27982798
lseek(fd, sec_start, SEEK_SET);
27992799
/*
28002800
* 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
28022802
*/
28032803
err = do_write(&ff, feat_sec, sec_size);
28042804
if (err < 0)

tools/perf/util/hist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ void hist_entry__delete(struct hist_entry *he)
11601160

11611161
/*
11621162
* 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
11641164
* spaces because that would break viewing this with, for instance, 'less',
11651165
* that would show tons of trailing spaces when a long C++ demangled method
11661166
* names is sampled.

tools/perf/util/jitdump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct jit_buf_desc {
3838
uint64_t sample_type;
3939
size_t bufsize;
4040
FILE *in;
41-
bool needs_bswap; /* handles cross-endianess */
41+
bool needs_bswap; /* handles cross-endianness */
4242
bool use_arch_timestamp;
4343
void *debug_data;
4444
void *unwinding_data;

tools/perf/util/machine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ struct machine *machine__new_kallsyms(void)
137137
struct machine *machine = machine__new_host();
138138
/*
139139
* 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
141141
* ask for not using the kcore parsing code, once this one is fixed
142142
* to create a map per module.
143143
*/

tools/perf/util/probe-event.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ static int add_exec_to_probe_trace_events(struct probe_trace_event *tevs,
692692
return ret;
693693

694694
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 */
696696
tevs[i].point.address -= stext;
697697
tevs[i].point.module = strdup(exec);
698698
if (!tevs[i].point.module) {
@@ -3062,7 +3062,7 @@ static int try_to_find_absolute_address(struct perf_probe_event *pev,
30623062
/*
30633063
* Give it a '0x' leading symbol name.
30643064
* In __add_probe_trace_events, a NULL symbol is interpreted as
3065-
* invalud.
3065+
* invalid.
30663066
*/
30673067
if (asprintf(&tp->symbol, "0x%lx", tp->address) < 0)
30683068
goto errout;

tools/perf/util/sort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ enum sort_mode sort__mode = SORT_MODE__NORMAL;
3737
* -t, --field-separator
3838
*
3939
* 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
4141
* output) with a '.' character, that thus it's the only non valid separator.
4242
*/
4343
static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...)

0 commit comments

Comments
 (0)