kernel_optimize_test/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 perf: Fix UAPI fallout 2012-10-14 12:22:52 -07:00
scripting-engines perf tools: Remove duplicated include from trace-event-python.c 2012-10-07 13:15:04 -03:00
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 perf tools: Convert to HAVE_STRLCPY 2012-10-02 18:36:24 -03:00
callchain.c
callchain.h
cgroup.c
cgroup.h
color.c
color.h
config.c
cpumap.c
cpumap.h
ctype.c
debug.c perf tools: Convert to GTK2_SUPPORT 2012-10-02 18:36:23 -03:00
debug.h perf tools: Convert to GTK2_SUPPORT 2012-10-02 18:36:23 -03:00
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 perf tools: Have the page size value available for all tools 2012-10-06 16:33:14 -03:00
evlist.h perf evlist: Remove some unused methods 2012-10-03 11:52:07 -03:00
evsel.c perf: Fix UAPI fallout 2012-10-14 12:22:52 -07:00
evsel.h perf: Fix UAPI fallout 2012-10-14 12:22:52 -07:00
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 perf hists: Add more helpers for hist entry stat 2012-10-04 13:36:18 -03:00
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 perf machine: Carve up event processing specific from perf_tool 2012-10-06 16:34:13 -03:00
machine.h perf machine: Carve up event processing specific from perf_tool 2012-10-06 16:34:13 -03:00
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 perf tools: Long option completion support for each subcommands 2012-10-02 18:36:44 -03:00
parse-options.h perf tools: Long option completion support for each subcommands 2012-10-02 18:36:44 -03:00
path.c perf tools: Convert to HAVE_STRLCPY 2012-10-02 18:36:24 -03:00
perf_regs.h perf tools: Convert to LIBUNWIND_SUPPORT 2012-10-02 17:56:01 -03:00
PERF-VERSION-GEN perf tools: Handle --version string generation on machines without git 2012-10-31 12:17:49 -02:00
pmu.c perf tools: Fix PMU object alias initialization 2012-10-24 10:41:26 +02:00
pmu.h perf: Fix UAPI fallout 2012-10-14 12:22:52 -07:00
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 perf tools: Have the page size value available for all tools 2012-10-06 16:33:14 -03:00
session.h perf: Fix UAPI fallout 2012-10-14 12:22:52 -07:00
setup.py perf python: Properly link with libtraceevent 2012-10-20 02:43:08 +02:00
sigchain.c
sigchain.h
sort.c perf tools: Remove warnings on JIT samples for srcline sort key 2012-10-16 13:05:38 -03:00
sort.h perf diff: Add weighted diff computation way to compare hist entries 2012-10-05 14:10:42 -03:00
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 Merge branch 'perf/urgent' into perf/core 2012-10-24 10:20:57 +02:00
thread.h perf machine: Introduce find_thread method 2012-10-06 16:33:22 -03:00
tool.h
top.c
top.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c perf tools: Have the page size value available for all tools 2012-10-06 16:33:14 -03:00
trace-event-scripting.c
trace-event.h
types.h
unwind.c
unwind.h perf tools: Convert to LIBUNWIND_SUPPORT 2012-10-02 17:56:01 -03:00
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