diff options
author | Soramichi AKIYAMA <akiyama@m.soramichi.jp> | 2017-01-16 16:22:37 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-01-17 15:36:45 +0100 |
commit | d25ed5d9fad98fd36ffca0bb5c3a0761a11e3f3c (patch) | |
tree | cfb25013a0f63d563fe7414d5fc28a0490d30ba2 /tools/perf/perf.c | |
parent | perf sched timehist: Show total wait times for summary (diff) | |
download | linux-d25ed5d9fad98fd36ffca0bb5c3a0761a11e3f3c.tar.xz linux-d25ed5d9fad98fd36ffca0bb5c3a0761a11e3f3c.zip |
perf tools: Move two variables usied in libperf from perf.c
The use_browser and perf_version_string variables are both declared in
perf.c but they are also referenced by other functions of libperf.a.
Therefore a user linking an own main() with libperf.a must declare those
two variables in their files even if the files never use the browser or
the version information.
This patch fixes this issue by moving use_browser and
perf_version_string out of perf.c to some other files.
Signed-off-by: Soramichi Akiyama <akiyama@m.soramichi.jp>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170117002237.c1aec0ce3b4d675dca018deb@m.soramichi.jp
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf.c')
-rw-r--r-- | tools/perf/perf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 13c8a7db055e..0324cd15e42a 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c @@ -29,7 +29,6 @@ const char perf_usage_string[] = const char perf_more_info_string[] = "See 'perf help COMMAND' for more information on a specific command."; -int use_browser = -1; static int use_pager = -1; const char *input_name; @@ -330,8 +329,6 @@ static int handle_alias(int *argcp, const char ***argv) return ret; } -const char perf_version_string[] = PERF_VERSION; - #define RUN_SETUP (1<<0) #define USE_PAGER (1<<1) |