summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2017-01-03 09:19:55 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-01-03 15:11:10 +0100
commitefd21307119d5a23ac83ae8fd5a39a5c7aeb8493 (patch)
treee377b7fb57818f6b5b7f7143562eb03f9e3bdc33 /tools
parenttools lib subcmd: Add OPT_STRING_OPTARG_SET option (diff)
downloadlinux-efd21307119d5a23ac83ae8fd5a39a5c7aeb8493.tar.xz
linux-efd21307119d5a23ac83ae8fd5a39a5c7aeb8493.zip
perf record: Make __record_options static
There's no need for this one to be global. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Wang Nan <wangnan0@huawei.com> 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/1483431600-19887-3-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-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 74d6a035133a..31cf0ce12a65 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -1405,7 +1405,7 @@ static bool dry_run;
* perf_evlist__prepare_workload, etc instead of fork+exec'in 'perf record',
* using pipes, etc.
*/
-struct option __record_options[] = {
+static struct option __record_options[] = {
OPT_CALLBACK('e', "event", &record.evlist, "event",
"event selector. use 'perf list' to list available events",
parse_events_option),