projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf c2c: Fix spelling mistakes in browser help text
[linux-2.6-microblaze.git]
/
tools
/
perf
/
builtin-c2c.c
diff --git
a/tools/perf/builtin-c2c.c
b/tools/perf/builtin-c2c.c
index
475999e
..
f1da9b0
100644
(file)
--- a/
tools/perf/builtin-c2c.c
+++ b/
tools/perf/builtin-c2c.c
@@
-1,3
+1,4
@@
+// SPDX-License-Identifier: GPL-2.0
/*
* This is rewrite of original c2c tool introduced in here:
* http://lwn.net/Articles/588866/
/*
* This is rewrite of original c2c tool introduced in here:
* http://lwn.net/Articles/588866/
@@
-2223,9
+2224,9
@@
static int perf_c2c__browse_cacheline(struct hist_entry *he)
struct hist_browser *browser;
int key = -1;
const char help[] =
struct hist_browser *browser;
int key = -1;
const char help[] =
- " ENTER Togle callchains (if present) \n"
- " n Togle Node details info \n"
- " s Tog
le full lenght
of symbol and source line columns \n"
+ " ENTER Tog
g
le callchains (if present) \n"
+ " n Tog
g
le Node details info \n"
+ " s Tog
gle full length
of symbol and source line columns \n"
" q Return back to cacheline list \n";
/* Display compact version first. */
" q Return back to cacheline list \n";
/* Display compact version first. */
@@
-2302,7
+2303,7
@@
static int perf_c2c__hists_browse(struct hists *hists)
int key = -1;
const char help[] =
" d Display cacheline details \n"
int key = -1;
const char help[] =
" d Display cacheline details \n"
- " ENTER Togle callchains (if present) \n"
+ " ENTER Tog
g
le callchains (if present) \n"
" q Quit \n";
browser = perf_c2c_browser__new(hists);
" q Quit \n";
browser = perf_c2c_browser__new(hists);
@@
-2523,7
+2524,7
@@
static int perf_c2c__report(int argc, const char **argv)
{
struct perf_session *session;
struct ui_progress prog;
{
struct perf_session *session;
struct ui_progress prog;
- struct perf_data
_file file
= {
+ struct perf_data
data
= {
.mode = PERF_DATA_MODE_READ,
};
char callchain_default_opt[] = CALLCHAIN_DEFAULT_OPT;
.mode = PERF_DATA_MODE_READ,
};
char callchain_default_opt[] = CALLCHAIN_DEFAULT_OPT;
@@
-2572,8
+2573,8
@@
static int perf_c2c__report(int argc, const char **argv)
if (!input_name || !strlen(input_name))
input_name = "perf.data";
if (!input_name || !strlen(input_name))
input_name = "perf.data";
-
file.path
= input_name;
-
file.force
= symbol_conf.force;
+
data.file.path
= input_name;
+
data.force
= symbol_conf.force;
err = setup_display(display);
if (err)
err = setup_display(display);
if (err)
@@
-2591,7
+2592,7
@@
static int perf_c2c__report(int argc, const char **argv)
goto out;
}
goto out;
}
- session = perf_session__new(&
file
, 0, &c2c.tool);
+ session = perf_session__new(&
data
, 0, &c2c.tool);
if (session == NULL) {
pr_debug("No memory for session\n");
goto out;
if (session == NULL) {
pr_debug("No memory for session\n");
goto out;
@@
-2611,7
+2612,7
@@
static int perf_c2c__report(int argc, const char **argv)
goto out_session;
/* No pipe support at the moment. */
goto out_session;
/* No pipe support at the moment. */
- if (perf_data_
file__is_pipe(session->file
)) {
+ if (perf_data_
_is_pipe(session->data
)) {
pr_debug("No pipe support at the moment.\n");
goto out_session;
}
pr_debug("No pipe support at the moment.\n");
goto out_session;
}
@@
-2732,6
+2733,7
@@
static int perf_c2c__record(int argc, const char **argv)
if (!perf_mem_events[j].supported) {
pr_err("failed: event '%s' not supported\n",
perf_mem_events[j].name);
if (!perf_mem_events[j].supported) {
pr_err("failed: event '%s' not supported\n",
perf_mem_events[j].name);
+ free(rec_argv);
return -1;
}
return -1;
}