Andi Kleen
3b0b16bf8c
perf tools: Support --prefix/--prefix-strip
The objdump utility has useful --prefix / --prefix-strip options to
allow changing source code file names hardcoded into executables' debug
info. Add options to 'perf report', 'perf top' and 'perf annotate',
which are then passed to objdump.
$ mkdir foo
$ echo 'main() { for (;;); }' > foo/foo.c
$ gcc -g foo/foo.c
foo/foo.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | main() { for (;;); }
| ^~~~
$ perf record ./a.out
^C[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.230 MB perf.data (5721 samples) ]
$ mv foo bar
$ perf annotate
<does not show source code>
$ perf annotate --prefix=/home/ak/lsrc/git/bar --prefix-strip=5
<does show source code>
Signed-off-by: Andi Kleen <[email protected]>
Tested-by: Jiri Olsa <[email protected]>
LPU-Reference: [email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
2020-01-14 12:02:19 -03:00
..
2016-07-04 20:27:27 -03:00
2019-09-27 09:26:14 -03:00
2018-04-26 13:47:10 -03:00
2018-10-24 15:29:50 -03:00
2019-03-19 16:52:04 -03:00
2019-06-05 09:47:57 -03:00
2015-08-21 11:34:10 -03:00
2019-11-22 10:48:13 -03:00
2019-08-14 10:59:59 -03:00
2019-09-30 17:29:51 -03:00
2019-08-08 15:41:10 -03:00
2020-01-14 12:02:19 -03:00
2018-11-21 22:39:55 -03:00
2018-04-26 09:30:26 -03:00
2019-02-04 11:32:14 -03:00
2019-10-07 12:22:18 -03:00
2018-03-07 10:26:32 -03:00
2019-10-11 10:57:00 -03:00
2017-11-16 14:50:07 -03:00
2018-03-07 10:26:32 -03:00
2017-11-16 14:50:05 -03:00
2018-03-07 10:26:32 -03:00
2018-02-16 14:55:42 -03:00
2019-12-02 15:38:59 -03:00
2019-10-19 15:35:01 -03:00
2017-11-16 14:50:04 -03:00
2019-02-04 11:32:14 -03:00
2019-05-25 23:04:42 -04:00
2019-11-22 10:48:13 -03:00
2020-01-14 12:02:19 -03:00
2020-01-06 11:46:09 -03:00
2018-03-07 10:26:32 -03:00
2018-06-06 15:40:10 -03:00
2019-08-15 12:24:16 -03:00
2019-11-06 15:49:39 -03:00
2016-06-30 18:27:45 -03:00
2017-11-16 14:50:06 -03:00
2020-01-14 12:02:19 -03:00
2019-10-15 13:03:49 -03:00
2018-04-02 13:52:23 -03:00
2019-11-06 15:43:05 -03:00
2019-08-14 10:59:59 -03:00
2019-11-12 08:32:27 -03:00
2016-09-01 09:44:13 -03:00
2019-07-02 16:08:16 -03:00