original_kernel/tools/perf/util
Namhyung Kim 411279658a perf annotate: Merge same lines in summary view
The --print-line option of perf annotate command shows summary for
each source line.  But it didn't merge same lines so that it can
appear multiple times.

* before:

  Sorted summary for file /home/namhyung/bin/mcol
  ----------------------------------------------
     21.71 /home/namhyung/tmp/mcol.c:26
     20.66 /home/namhyung/tmp/mcol.c:25
      9.53 /home/namhyung/tmp/mcol.c:24
      7.68 /home/namhyung/tmp/mcol.c:25
      7.67 /home/namhyung/tmp/mcol.c:25
      7.66 /home/namhyung/tmp/mcol.c:26
      7.49 /home/namhyung/tmp/mcol.c:26
      6.92 /home/namhyung/tmp/mcol.c:25
      6.81 /home/namhyung/tmp/mcol.c:25
      1.07 /home/namhyung/tmp/mcol.c:26
      0.52 /home/namhyung/tmp/mcol.c:25
      0.51 /home/namhyung/tmp/mcol.c:25
      0.51 /home/namhyung/tmp/mcol.c:24

* after:

  Sorted summary for file /home/namhyung/bin/mcol
  ----------------------------------------------
     50.77 /home/namhyung/tmp/mcol.c:25
     37.94 /home/namhyung/tmp/mcol.c:26
     10.04 /home/namhyung/tmp/mcol.c:24

To do that, introduce percent_sum field so that the normal
line-by-line output doesn't get changed.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1352440729-21848-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-11-09 16:50:18 -03:00
..
include
scripting-engines
PERF-VERSION-GEN perf tools: Handle --version string generation on machines without git 2012-10-31 12:17:49 -02:00
abspath.c
alias.c
annotate.c perf annotate: Merge same lines in summary view 2012-11-09 16:50:18 -03:00
annotate.h perf annotate: Merge same lines in summary view 2012-11-09 16:50:18 -03: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.c perf machine: Move more methods to machine.[ch] 2012-11-09 11:32:52 -03: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 perf hists: Introduce hists__link 2012-11-08 18:08:15 -03:00
hist.h perf hists: Introduce hists__link 2012-11-08 18:08:15 -03:00
hweight.c
intlist.c
intlist.h
levenshtein.c
levenshtein.h
machine.c perf machine: Move more methods to machine.[ch] 2012-11-09 11:32:52 -03:00
machine.h perf machine: Move more methods to machine.[ch] 2012-11-09 11:32:52 -03:00
map.c perf machine: Move more methods to machine.[ch] 2012-11-09 11:32:52 -03:00
map.h perf machine: Move more methods to machine.[ch] 2012-11-09 11:32:52 -03:00
pager.c
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 perf tools: Add arbitary aliases and support names with - 2012-11-08 16:12:03 -03:00
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
pmu.c perf tools: Fix PMU object alias initialization 2012-10-24 10:41:26 +02:00
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 perf machine: Move more methods to machine.[ch] 2012-11-09 11:32:52 -03: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: Start moving to support matching more than two hists 2012-11-08 17:43:09 -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 machine: Move more methods to machine.[ch] 2012-11-09 11:32:52 -03:00
symbol.h perf machine: Move more methods to machine.[ch] 2012-11-09 11:32:52 -03:00
sysfs.c
sysfs.h
target.c
target.h
thread.c Merge branch 'perf/urgent' into perf/core 2012-10-24 10:20:57 +02:00
thread.h
thread_map.c
thread_map.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