tmp_suning_uos_patched/tools/perf/util
Arnaldo Carvalho de Melo 688b2c2f17 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 <mingo@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-am6yp6phvxyjmyndxogpunjv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-10-31 12:17:49 -02:00
..
include
scripting-engines
abspath.c
alias.c
annotate.c perf tools: Move BUILD_ID_SIZE into build-id object 2012-10-29 11:35:32 -02:00
annotate.h perf tools: Try to find cross-built objdump path 2012-10-24 14:20:11 -02:00
bitmap.c
build-id.c perf tools: Move build_id__sprintf into build-id object 2012-10-29 11:34:46 -02:00
build-id.h perf tools: Move BUILD_ID_SIZE into build-id object 2012-10-29 11:35:32 -02:00
cache.h
callchain.c
callchain.h
cgroup.c
cgroup.h
color.c
color.h
config.c
cpumap.c
cpumap.h
ctype.c
debug.c
debug.h
debugfs.c
debugfs.h
dso-test-data.c
dso.c perf tools: Move dso_* related functions into dso object 2012-10-29 11:37:25 -02:00
dso.h perf tools: Move dso_* related functions into dso object 2012-10-29 11:37:25 -02:00
dwarf-aux.c
dwarf-aux.h
environment.c
event.c perf tools: Don't stop synthesizing threads when one vanishes 2012-10-25 10:37:15 -02:00
event.h perf tools: Move BUILD_ID_SIZE into build-id object 2012-10-29 11:35:32 -02:00
evlist.c
evlist.h
evsel.c
evsel.h
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c perf header: Add is_perf_magic() func 2012-10-29 11:56:59 -02:00
header.h perf header: Add is_perf_magic() func 2012-10-29 11:56:59 -02:00
help.c
help.h
hist.c
hist.h perf scripts browser: Add a browser for perf script 2012-10-29 11:52:53 -02:00
hweight.c
intlist.c
intlist.h
levenshtein.c
levenshtein.h
machine.c
machine.h
map.c perf tools: Move build_id__sprintf into build-id object 2012-10-29 11:34:46 -02:00
map.h
pager.c
parse-events-test.c perf test: Add automated tests for pmu sysfs translated events 2012-10-24 10:41:27 +02:00
parse-events.c perf tools: Move parse_events error printing to parse_events_options 2012-10-28 11:29:52 -02:00
parse-events.h perf tools: Add support to specify hw event as PMU event term 2012-10-24 10:41:27 +02:00
parse-events.l
parse-events.y perf tools: Add support to specify hw event as PMU event term 2012-10-24 10:41:27 +02:00
parse-options.c
parse-options.h
path.c
perf_regs.h
PERF-VERSION-GEN perf tools: Handle --version string generation on machines without git 2012-10-31 12:17:49 -02:00
pmu.c
pmu.h
pmu.l
pmu.y
probe-event.c
probe-event.h
probe-finder.c
probe-finder.h
pstack.c
pstack.h
python-ext-sources
python.c perf python: Initialize 'page_size' variable 2012-10-29 12:36:46 -02:00
quote.c
quote.h
rblist.c Account the nr_entries in rblist properly 2012-10-24 14:20:11 -02:00
rblist.h
run-command.c
run-command.h
session.c
session.h
setup.py
sigchain.c
sigchain.h
sort.c
sort.h
stat.c
stat.h
strbuf.c
strbuf.h
strfilter.c
strfilter.h
string.c perf tools: Move strxfrchar into string object 2012-10-29 11:36:28 -02:00
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol-elf.c
symbol-minimal.c
symbol.c perf tools: Move dso_* related functions into dso object 2012-10-29 11:37:25 -02:00
symbol.h perf tools: Move dso_* related functions into dso object 2012-10-29 11:37:25 -02:00
sysfs.c
sysfs.h
target.c
target.h
thread_map.c
thread_map.h
thread.c
thread.h
tool.h
top.c
top.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event-scripting.c
trace-event.h
types.h
unwind.c
unwind.h
usage.c
util.c perf tools: Move hex2u64 into util object 2012-10-29 11:36:02 -02:00
util.h perf tools: Move strxfrchar into string object 2012-10-29 11:36:28 -02:00
values.c
values.h
vdso.c
vdso.h
wrapper.c
xyarray.c
xyarray.h