Commit adba1634 authored by Ingo Molnar's avatar Ingo Molnar Committed by Arnaldo Carvalho de Melo

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: default avatarIngo 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.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent e4a8b0af
...@@ -170,7 +170,7 @@ static int test_data_set(struct test_data *dat_set, int x86_64) ...@@ -170,7 +170,7 @@ static int test_data_set(struct test_data *dat_set, int x86_64)
* *
* If the test passes %0 is returned, otherwise %-1 is returned. Use the * If the test passes %0 is returned, otherwise %-1 is returned. Use the
* verbose (-v) option to see all the instructions and whether or not they * verbose (-v) option to see all the instructions and whether or not they
* decoded successfuly. * decoded successfully.
*/ */
int test__insn_x86(struct test *test __maybe_unused, int subtest __maybe_unused) int test__insn_x86(struct test *test __maybe_unused, int subtest __maybe_unused)
{ {
......
...@@ -595,7 +595,7 @@ static void *display_thread_tui(void *arg) ...@@ -595,7 +595,7 @@ static void *display_thread_tui(void *arg)
/* /*
* Initialize the uid_filter_str, in the future the TUI will allow * Initialize the uid_filter_str, in the future the TUI will allow
* Zooming in/out UIDs. For now juse use whatever the user passed * Zooming in/out UIDs. For now just use whatever the user passed
* via --uid. * via --uid.
*/ */
evlist__for_each_entry(top->evlist, pos) { evlist__for_each_entry(top->evlist, pos) {
......
...@@ -2782,7 +2782,7 @@ static int trace__run(struct trace *trace, int argc, const char **argv) ...@@ -2782,7 +2782,7 @@ static int trace__run(struct trace *trace, int argc, const char **argv)
* Now that we already used evsel->attr to ask the kernel to setup the * Now that we already used evsel->attr to ask the kernel to setup the
* events, lets reuse evsel->attr.sample_max_stack as the limit in * events, lets reuse evsel->attr.sample_max_stack as the limit in
* trace__resolve_callchain(), allowing per-event max-stack settings * trace__resolve_callchain(), allowing per-event max-stack settings
* to override an explicitely set --max-stack global setting. * to override an explicitly set --max-stack global setting.
*/ */
evlist__for_each_entry(evlist, evsel) { evlist__for_each_entry(evlist, evsel) {
if (evsel__has_callchain(evsel) && if (evsel__has_callchain(evsel) &&
......
...@@ -182,7 +182,7 @@ int test__attr(struct test *test __maybe_unused, int subtest __maybe_unused) ...@@ -182,7 +182,7 @@ int test__attr(struct test *test __maybe_unused, int subtest __maybe_unused)
char path_perf[PATH_MAX]; char path_perf[PATH_MAX];
char path_dir[PATH_MAX]; char path_dir[PATH_MAX];
/* First try developement tree tests. */ /* First try development tree tests. */
if (!lstat("./tests", &st)) if (!lstat("./tests", &st))
return run_dir("./tests", "./perf"); return run_dir("./tests", "./perf");
......
...@@ -1772,7 +1772,7 @@ static int symbol__disassemble(struct symbol *sym, struct annotate_args *args) ...@@ -1772,7 +1772,7 @@ static int symbol__disassemble(struct symbol *sym, struct annotate_args *args)
while (!feof(file)) { while (!feof(file)) {
/* /*
* The source code line number (lineno) needs to be kept in * The source code line number (lineno) needs to be kept in
* accross calls to symbol__parse_objdump_line(), so that it * across calls to symbol__parse_objdump_line(), so that it
* can associate it with the instructions till the next one. * can associate it with the instructions till the next one.
* See disasm_line__new() and struct disasm_line::line_nr. * See disasm_line__new() and struct disasm_line::line_nr.
*/ */
......
...@@ -2798,7 +2798,7 @@ static int perf_header__adds_write(struct perf_header *header, ...@@ -2798,7 +2798,7 @@ static int perf_header__adds_write(struct perf_header *header,
lseek(fd, sec_start, SEEK_SET); lseek(fd, sec_start, SEEK_SET);
/* /*
* may write more than needed due to dropped feature, but * may write more than needed due to dropped feature, but
* this is okay, reader will skip the mising entries * this is okay, reader will skip the missing entries
*/ */
err = do_write(&ff, feat_sec, sec_size); err = do_write(&ff, feat_sec, sec_size);
if (err < 0) if (err < 0)
......
...@@ -1160,7 +1160,7 @@ void hist_entry__delete(struct hist_entry *he) ...@@ -1160,7 +1160,7 @@ void hist_entry__delete(struct hist_entry *he)
/* /*
* If this is not the last column, then we need to pad it according to the * If this is not the last column, then we need to pad it according to the
* pre-calculated max lenght for this column, otherwise don't bother adding * pre-calculated max length for this column, otherwise don't bother adding
* spaces because that would break viewing this with, for instance, 'less', * spaces because that would break viewing this with, for instance, 'less',
* that would show tons of trailing spaces when a long C++ demangled method * that would show tons of trailing spaces when a long C++ demangled method
* names is sampled. * names is sampled.
......
...@@ -38,7 +38,7 @@ struct jit_buf_desc { ...@@ -38,7 +38,7 @@ struct jit_buf_desc {
uint64_t sample_type; uint64_t sample_type;
size_t bufsize; size_t bufsize;
FILE *in; FILE *in;
bool needs_bswap; /* handles cross-endianess */ bool needs_bswap; /* handles cross-endianness */
bool use_arch_timestamp; bool use_arch_timestamp;
void *debug_data; void *debug_data;
void *unwinding_data; void *unwinding_data;
......
...@@ -137,7 +137,7 @@ struct machine *machine__new_kallsyms(void) ...@@ -137,7 +137,7 @@ struct machine *machine__new_kallsyms(void)
struct machine *machine = machine__new_host(); struct machine *machine = machine__new_host();
/* /*
* FIXME: * FIXME:
* 1) We should switch to machine__load_kallsyms(), i.e. not explicitely * 1) We should switch to machine__load_kallsyms(), i.e. not explicitly
* ask for not using the kcore parsing code, once this one is fixed * ask for not using the kcore parsing code, once this one is fixed
* to create a map per module. * to create a map per module.
*/ */
......
...@@ -692,7 +692,7 @@ static int add_exec_to_probe_trace_events(struct probe_trace_event *tevs, ...@@ -692,7 +692,7 @@ static int add_exec_to_probe_trace_events(struct probe_trace_event *tevs,
return ret; return ret;
for (i = 0; i < ntevs && ret >= 0; i++) { for (i = 0; i < ntevs && ret >= 0; i++) {
/* point.address is the addres of point.symbol + point.offset */ /* point.address is the address of point.symbol + point.offset */
tevs[i].point.address -= stext; tevs[i].point.address -= stext;
tevs[i].point.module = strdup(exec); tevs[i].point.module = strdup(exec);
if (!tevs[i].point.module) { if (!tevs[i].point.module) {
...@@ -3062,7 +3062,7 @@ static int try_to_find_absolute_address(struct perf_probe_event *pev, ...@@ -3062,7 +3062,7 @@ static int try_to_find_absolute_address(struct perf_probe_event *pev,
/* /*
* Give it a '0x' leading symbol name. * Give it a '0x' leading symbol name.
* In __add_probe_trace_events, a NULL symbol is interpreted as * In __add_probe_trace_events, a NULL symbol is interpreted as
* invalud. * invalid.
*/ */
if (asprintf(&tp->symbol, "0x%lx", tp->address) < 0) if (asprintf(&tp->symbol, "0x%lx", tp->address) < 0)
goto errout; goto errout;
......
...@@ -37,7 +37,7 @@ enum sort_mode sort__mode = SORT_MODE__NORMAL; ...@@ -37,7 +37,7 @@ enum sort_mode sort__mode = SORT_MODE__NORMAL;
* -t, --field-separator * -t, --field-separator
* *
* option, that uses a special separator character and don't pad with spaces, * option, that uses a special separator character and don't pad with spaces,
* replacing all occurances of this separator in symbol names (and other * replacing all occurrences of this separator in symbol names (and other
* output) with a '.' character, that thus it's the only non valid separator. * output) with a '.' character, that thus it's the only non valid separator.
*/ */
static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...) static int repsep_snprintf(char *bf, size_t size, const char *fmt, ...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment