aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2016-01-12 04:35:29 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-01-12 09:13:52 -0500
commit8a59f3ccbc11fcb222b046a64929dd473f7dff54 (patch)
tree60cf633a15d1460b20f52f9ec254ce21f5d4e762 /tools
parent0bd106d26dbe444160104b3153ca1652d2ab913b (diff)
perf stat: Fix recort_usage typo
Markus reported gcc 6 complains when compiling perf stat command: builtin-stat.c:1591:27: error: ‘recort_usage’ defined but not used [-Werror=unused-const-variable] static const char * const recort_usage[] = { ^~~~~~~~~~~~ I fixed the typo and realized we already export record_usage, so I also prefixed it with stat (and included report_usage). Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1452591329-27620-1-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-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))