]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Support callchain sorting based on addresses
authorAndi Kleen <ak@linux.intel.com>
Thu, 18 Jul 2013 22:33:57 +0000 (15:33 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Jul 2013 15:42:18 +0000 (12:42 -0300)
commit80953e025596cf8489b14597b5ac9e8f321d873c
tree57ed4dcf8286243b1451e0c1c4b472e70b7bf2f7
parentd024535b55c78eca861014b49e897893668a33ba
perf tools: Support callchain sorting based on addresses

With programs with very large functions it can be useful to distinguish
the callgraph nodes on more than just function names. So for example if
you have multiple calls to the same function, it ends up being separate
nodes in the chain.

This patch adds a new key field to the callgraph options, that allows
comparing nodes on functions (as today, default) and addresses.

Longer term it would be nice to also handle src lines, but that would
need more changes and address is a reasonable proxy for it today.

I right now reference the global params, as there was no simple way to
register a params pointer.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/n/tip-0uskktybf0e7wrnoi5e9b9it@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-report.txt
tools/perf/builtin-report.c
tools/perf/util/callchain.c
tools/perf/util/callchain.h
tools/perf/util/hist.c