diff options
Diffstat (limited to 'tools/perf/builtin-top.c')
| -rw-r--r-- | tools/perf/builtin-top.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index e434a16bb5ac..ff6db8086805 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
| @@ -316,7 +316,7 @@ static void perf_top__print_sym_table(struct perf_top *top) | |||
| 316 | hists__output_recalc_col_len(&top->sym_evsel->hists, | 316 | hists__output_recalc_col_len(&top->sym_evsel->hists, |
| 317 | top->winsize.ws_row - 3); | 317 | top->winsize.ws_row - 3); |
| 318 | putchar('\n'); | 318 | putchar('\n'); |
| 319 | hists__fprintf(&top->sym_evsel->hists, NULL, false, false, | 319 | hists__fprintf(&top->sym_evsel->hists, false, |
| 320 | top->winsize.ws_row - 4 - printed, win_width, stdout); | 320 | top->winsize.ws_row - 4 - printed, win_width, stdout); |
| 321 | } | 321 | } |
| 322 | 322 | ||
| @@ -1159,11 +1159,6 @@ setup: | |||
| 1159 | return 0; | 1159 | return 0; |
| 1160 | } | 1160 | } |
| 1161 | 1161 | ||
| 1162 | static const char * const top_usage[] = { | ||
| 1163 | "perf top [<options>]", | ||
| 1164 | NULL | ||
| 1165 | }; | ||
| 1166 | |||
| 1167 | int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused) | 1162 | int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused) |
| 1168 | { | 1163 | { |
| 1169 | struct perf_evsel *pos; | 1164 | struct perf_evsel *pos; |
| @@ -1250,6 +1245,10 @@ int cmd_top(int argc, const char **argv, const char *prefix __maybe_unused) | |||
| 1250 | OPT_STRING('u', "uid", &top.target.uid_str, "user", "user to profile"), | 1245 | OPT_STRING('u', "uid", &top.target.uid_str, "user", "user to profile"), |
| 1251 | OPT_END() | 1246 | OPT_END() |
| 1252 | }; | 1247 | }; |
| 1248 | const char * const top_usage[] = { | ||
| 1249 | "perf top [<options>]", | ||
| 1250 | NULL | ||
| 1251 | }; | ||
| 1253 | 1252 | ||
| 1254 | top.evlist = perf_evlist__new(NULL, NULL); | 1253 | top.evlist = perf_evlist__new(NULL, NULL); |
| 1255 | if (top.evlist == NULL) | 1254 | if (top.evlist == NULL) |
