linux/tools/perf/util
Robert Richter a4147f0f91 perf tools: Fix perf version generation
The tag of the perf version is wrongly determined, always the latest tag
is taken regardless of the HEAD commit:

 $ perf --version
 perf version 3.9.rc8.gd7f5d3
 $ git describe d7f5d3
 v3.9-rc7-154-gd7f5d33
 $ head -n 4 Makefile
 VERSION = 3
 PATCHLEVEL = 9
 SUBLEVEL = 0
 EXTRAVERSION = -rc7

In other cases no tag might be found.

This patch fixes this.

This new implementation handles also the case if there are no tags at
all found in the git repo but there is a commit id.

Signed-off-by: Robert Richter <robert.richter@calxeda.com>
Link: http://lkml.kernel.org/r/1368006214-12912-1-git-send-email-rric@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-07-08 18:09:52 -03:00
..
include
scripting-engines
abspath.c
alias.c
annotate.c
annotate.h perf tools: Remove dependency on libnewt 2013-04-01 12:23:21 -03:00
bitmap.c
build-id.c
build-id.h
cache.h
callchain.c
callchain.h
cgroup.c
cgroup.h
color.c
color.h
config.c
cpumap.c perf stat: Add per-core aggregation 2013-03-25 16:13:26 -03:00
cpumap.h perf stat: Add per-core aggregation 2013-03-25 16:13:26 -03:00
ctype.c
debug.c
debug.h
dso.c perf symbols: Fix vdso list searching 2013-07-08 17:59:07 -03:00
dso.h perf symbols: Fix vdso list searching 2013-07-08 17:59:07 -03:00
dwarf-aux.c
dwarf-aux.h
environment.c
event.c
event.h perf tools: Add mem access sampling core support 2013-04-01 12:20:13 -03:00
evlist.c perf evlist: Enhance perf_evlist__start_workload() 2013-07-08 17:38:30 -03:00
evlist.h perf evlist: Introduce perf_evlist__close() 2013-03-15 13:06:10 -03:00
evsel.c perf evsel: Fix missing increment in sample parsing 2013-07-08 17:47:13 -03:00
evsel.h perf stat: Introduce --repeat forever 2013-03-15 14:01:26 -03:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c perf tools: Update symbol_conf.nr_events when processing attribute events 2013-07-08 17:46:39 -03:00
header.h perf tools: Remove frozen from perf_header struct 2013-05-29 15:17:35 +03:00
help.c
help.h
hist.c perf hists: Move locking to its call-sites 2013-05-28 16:24:00 +03:00
hist.h perf report: Add --percent-limit option 2013-05-28 16:24:01 +03:00
hweight.c
intlist.c
intlist.h
levenshtein.c
levenshtein.h
machine.c perf machine: Detect data vs. text mappings 2013-04-01 12:22:00 -03:00
machine.h perf tools: Add mem access sampling core support 2013-04-01 12:20:13 -03:00
map.c perf tools: Handle JITed code in shared memory 2013-05-28 16:23:58 +03:00
map.h
pager.c
parse-events.c perf tools: Fix new_term() missing free on error path 2013-07-08 17:45:56 -03:00
parse-events.h
parse-events.l
parse-events.y
parse-options.c
parse-options.h
path.c
perf_regs.h
PERF-VERSION-GEN perf tools: Fix perf version generation 2013-07-08 18:09:52 -03: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
quote.c
quote.h
rblist.c
rblist.h
run-command.c
run-command.h
session.c perf tools: Add mem access sampling core support 2013-04-01 12:20:13 -03:00
session.h perf tools: Remove cwdlen from struct perf_session 2013-05-29 15:24:04 +03:00
setup.py perf tools: Merge all *CFLAGS* make variable into CFLAGS 2013-05-30 16:12:03 +03:00
sigchain.c
sigchain.h
sort.c perf sort: Cleanup sort__has_sym setting 2013-05-28 16:23:56 +03:00
sort.h perf hists: Rename hist_entry__add_pair arguments 2013-05-28 16:24:02 +03:00
stat.c perf stats: Fix divide by 0 in variance 2013-05-28 16:24:04 +03:00
stat.h
strbuf.c
strbuf.h
strfilter.c
strfilter.h
string.c
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol-elf.c perf report: Add --no-demangle option 2013-03-26 16:38:21 -03:00
symbol-minimal.c
symbol.c perf tools: Fix -x/--exclude-other option for report command 2013-07-08 17:38:53 -03:00
symbol.h perf tools: Add mem access sampling core support 2013-04-01 12:20:13 -03:00
sysfs.c
sysfs.h
target.c
target.h
thread_map.c
thread_map.h
thread.c perf tools: Save parent pid in thread struct 2013-05-28 16:24:05 +03:00
thread.h perf tools: Save parent pid in thread struct 2013-05-28 16:24:05 +03:00
tool.h
top.c perf top: Fix percent output when no samples collected 2013-05-28 16:23:59 +03:00
top.h perf top: Add --percent-limit option 2013-05-28 16:24:01 +03:00
trace-event-info.c perf tools: Get rid of die() calls from trace-event-info.c 2013-03-21 13:30:10 -03:00
trace-event-parse.c
trace-event-read.c perf tools: Cleanup calc_data_size logic 2013-03-21 13:37:37 -03:00
trace-event-scripting.c
trace-event.h perf tools: Get rid of write_or_die() from trace-event-info.c 2013-03-21 13:15:42 -03:00
types.h
unwind.c
unwind.h
usage.c
util.c
util.h perf tools: Include termios.h explicitly 2013-07-08 17:36:05 -03:00
values.c
values.h
vdso.c perf symbols: Fix vdso list searching 2013-07-08 17:59:07 -03:00
vdso.h
wrapper.c
xyarray.c
xyarray.h