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
..
2016-05-12 11:26:59 -03:00
2016-04-26 13:28:40 -03:00
2016-05-12 11:26:59 -03:00
2016-05-23 11:25:16 -03:00
2016-04-01 18:42:55 -03:00
2016-05-06 13:00:55 -03:00
2016-05-09 18:11:22 -03:00
2016-05-11 13:06:00 -03:00
2016-05-05 21:04:02 -03:00
2016-05-23 11:25:16 -03:00
2016-01-12 12:42:07 -03:00
2016-05-20 11:43:58 -03:00
2015-12-17 14:27:14 -03:00
2016-05-16 23:11:48 -03:00
2015-12-17 14:27:14 -03:00
2016-04-14 09:15:47 -03:00
2015-12-17 14:27:14 -03:00
2016-05-20 11:43:58 -03:00
2016-01-08 14:23:02 -03:00
2016-05-10 11:56:14 -03:00
2016-03-31 10:52:24 -03:00
2016-04-14 14:48:07 -03:00
2016-04-11 22:18:20 -03:00
2015-12-17 14:27:14 -03:00
2015-12-17 14:27:14 -03:00
2016-03-30 11:14:07 -03:00
2015-12-17 14:27:14 -03:00
2016-04-28 09:58:59 -03:00
2016-05-20 11:43:58 -03:00
2016-04-13 10:11:52 -03:00
2016-05-20 11:43:58 -03:00
2016-05-20 08:20:14 +02:00
2016-05-20 11:43:58 -03:00
2016-05-20 11:43:55 -03:00
2016-05-20 11:43:57 -03:00
2015-12-09 13:42:03 -03:00
2016-03-23 15:06:35 -03:00
2016-01-08 12:46:17 -03:00
2016-02-04 15:57:00 -03:00
2016-04-08 09:58:14 -03:00
2016-03-24 12:28:57 -03:00
2016-05-16 23:11:54 -03:00
2016-04-18 12:26:27 -03:00