aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/builtin-stat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 7f568244662b..038e877081b6 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -1588,7 +1588,7 @@ static int add_default_attributes(void)
1588 return perf_evlist__add_default_attrs(evsel_list, very_very_detailed_attrs); 1588 return perf_evlist__add_default_attrs(evsel_list, very_very_detailed_attrs);
1589} 1589}
1590 1590
1591static const char * const recort_usage[] = { 1591static const char * const stat_record_usage[] = {
1592 "perf stat record [<options>]", 1592 "perf stat record [<options>]",
1593 NULL, 1593 NULL,
1594}; 1594};
@@ -1611,7 +1611,7 @@ static int __cmd_record(int argc, const char **argv)
1611 struct perf_session *session; 1611 struct perf_session *session;
1612 struct perf_data_file *file = &perf_stat.file; 1612 struct perf_data_file *file = &perf_stat.file;
1613 1613
1614 argc = parse_options(argc, argv, stat_options, record_usage, 1614 argc = parse_options(argc, argv, stat_options, stat_record_usage,
1615 PARSE_OPT_STOP_AT_NON_OPTION); 1615 PARSE_OPT_STOP_AT_NON_OPTION);
1616 1616
1617 if (output_name) 1617 if (output_name)
@@ -1745,7 +1745,7 @@ int process_cpu_map_event(struct perf_tool *tool __maybe_unused,
1745 return set_maps(st); 1745 return set_maps(st);
1746} 1746}
1747 1747
1748static const char * const report_usage[] = { 1748static const char * const stat_report_usage[] = {
1749 "perf stat report [<options>]", 1749 "perf stat report [<options>]",
1750 NULL, 1750 NULL,
1751}; 1751};
@@ -1779,7 +1779,7 @@ static int __cmd_report(int argc, const char **argv)
1779 struct stat st; 1779 struct stat st;
1780 int ret; 1780 int ret;
1781 1781
1782 argc = parse_options(argc, argv, options, report_usage, 0); 1782 argc = parse_options(argc, argv, options, stat_report_usage, 0);
1783 1783
1784 if (!input_name || !strlen(input_name)) { 1784 if (!input_name || !strlen(input_name)) {
1785 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode)) 1785 if (!fstat(STDIN_FILENO, &st) && S_ISFIFO(st.st_mode))