Andi Kleen
508be0dfe6
perf report: Add srcline_from/to branch sort keys
...
Add "srcline_from" and "srcline_to" branch sort keys that allow to show
the source lines of a branch.
That makes it much easier to track down where particular branches happen
in the program, for example to examine branch mispredictions, or to
associate it with cycle counts:
% perf record -b -e cycles:p ./tcall
% perf report --sort srcline_from,srcline_to,mispredict
...
15.10% tcall.c:18 tcall.c:10 N
14.83% tcall.c:11 tcall.c:5 N
14.12% tcall.c:7 tcall.c:12 N
14.04% tcall.c:12 tcall.c:5 N
12.42% tcall.c:17 tcall.c:18 N
12.39% tcall.c:7 tcall.c:13 N
12.27% tcall.c:13 tcall.c:17 N
...
% perf report --sort srcline_from,srcline_to,cycles
...
17.12% tcall.c:18 tcall.c:11 1
17.01% tcall.c:12 tcall.c:6 1
16.98% tcall.c:11 tcall.c:6 1
15.91% tcall.c:17 tcall.c:18 1
6.38% tcall.c:7 tcall.c:17 7
4.80% tcall.c:7 tcall.c:12 8
4.21% tcall.c:7 tcall.c:17 8
2.67% tcall.c:7 tcall.c:12 7
2.62% tcall.c:7 tcall.c:12 10
2.10% tcall.c:7 tcall.c:17 9
1.58% tcall.c:7 tcall.c:12 6
1.44% tcall.c:7 tcall.c:12 5
1.38% tcall.c:7 tcall.c:12 9
1.06% tcall.c:7 tcall.c:17 13
1.05% tcall.c:7 tcall.c:12 4
1.01% tcall.c:7 tcall.c:17 6
Open issues:
- Some kernel symbols get misresolved.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/r/1463775308-32748-1-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-05-23 11:25:16 -03:00
..
2012-10-31 12:17:49 -02:00
2015-02-12 17:53:00 -03:00
2015-04-29 10:38:06 -03:00
2013-07-08 17:37:25 -03:00
2015-08-21 11:34:10 -03:00
2016-03-30 11:14:09 -03:00
2016-03-30 11:14:09 -03:00
2012-08-13 14:55:02 -03:00
2016-03-18 13:57:20 -03:00
2016-03-30 11:14:08 -03:00
2013-12-09 15:21:45 -03:00
2015-10-19 16:10:25 -03:00
2015-02-27 15:52:33 -03:00
2011-12-23 17:01:03 -02:00
2016-02-12 10:54:46 -03:00
2015-02-25 16:13:12 -03:00
2016-03-30 11:14:08 -03:00
2016-01-08 14:23:02 -03:00
2016-02-05 09:46:45 -03:00
2015-05-04 13:34:47 -03:00
2015-06-19 18:27:13 -03:00
2016-04-06 11:19:18 -03:00
2013-10-09 11:24:01 -03:00
2016-03-30 11:14:07 -03:00
2015-05-08 16:26:44 -03:00
2016-04-28 09:58:59 -03:00
2016-05-23 11:25:16 -03:00
2016-04-13 10:11:52 -03:00
2014-10-15 17:39:02 -03:00
2014-10-15 17:39:02 -03:00
2016-05-20 11:43:56 -03:00
2016-03-10 16:50:47 -03:00
2014-10-15 17:39:02 -03:00
2014-07-10 00:22:54 +02:00
2016-04-27 10:29:07 -03:00
2016-05-20 11:43:56 -03:00
2015-10-05 16:36:18 -03:00
2016-01-26 11:52:46 -03:00
2016-02-24 20:21:15 -03:00