diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2012-10-30 15:44:40 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-10-31 14:17:49 +0000 |
| commit | 688b2c2f17943d48bccbaad4c43430ee68c4c1cd (patch) | |
| tree | b2fa3f85c06da35b56829b22ad73ef131b2e27be /tools/perf/util/annotate.c | |
| parent | perf tools: Further speed up the perf build (diff) | |
| download | kernel-688b2c2f17943d48bccbaad4c43430ee68c4c1cd.tar.gz kernel-688b2c2f17943d48bccbaad4c43430ee68c4c1cd.zip | |
perf tools: Handle --version string generation on machines without git
If git is installed we'll have a 'perf --version' output of this form:
$ make -j8 -C tools/perf/ O=/home/acme/git/build/perf install
$ perf --version
perf version 3.7.rc3.g3afad6
Now on a machine without git installed:
$ mv /home/acme/bin/git /home/acme/bin/git.OFF
$ make -j8 -C tools/perf/ O=/home/acme/git/build/perf install
$ perf --version
perf version 3.7.0-rc2
That is, no error message due to git not being installed will appear on the
screen and instead the version string in the top level Makefile will be
used.
Requested-by: Ingo Molnar <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions
