diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2015-12-08 07:21:48 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-09 19:42:03 +0300 |
commit | 0a4bb5da957b83ece8b4723c5bac7a5d29fbfb33 (patch) | |
tree | 42b723883ba38f98c98b8a11a24948407a51bc78 /tools/perf/builtin-version.c | |
parent | 2bdb2c2729d2ba2f2f90b729d04254308096c5a0 (diff) | |
download | linux-0a4bb5da957b83ece8b4723c5bac7a5d29fbfb33.tar.xz |
perf tools: Move cmd_version() to builtin-version.c
Move cmd_version() to its own file so that help.c can be moved to a
library.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/e908b1b68f20ab6d8d33941d5571c23110622e60.1449548395.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-version.c')
-rw-r--r-- | tools/perf/builtin-version.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/builtin-version.c b/tools/perf/builtin-version.c new file mode 100644 index 000000000000..9b10cda6b6dc --- /dev/null +++ b/tools/perf/builtin-version.c @@ -0,0 +1,10 @@ +#include "util/util.h" +#include "builtin.h" +#include "perf.h" + +int cmd_version(int argc __maybe_unused, const char **argv __maybe_unused, + const char *prefix __maybe_unused) +{ + printf("perf version %s\n", perf_version_string); + return 0; +} |