Adrian Hunter
74c9406e6c
perf symbols: Fix debuginfo search for Ubuntu
...
commit 85afd35575a3c1a3a905722dde5ee70b49282e70 upstream.
Reportedly, from 19.10 Ubuntu has begun mixing up the location of some
debug symbol files, putting files expected to be in
/usr/lib/debug/usr/lib into /usr/lib/debug/lib instead. Fix by adding
another dso_binary_type.
Example on Ubuntu 20.04
Before:
$ perf record -e intel_pt//u uname
Linux
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.030 MB perf.data ]
$ perf script --call-trace | head -5
uname 14003 [005] 15321.764958566: cbr: 42 freq: 4219 MHz (156%)
uname 14003 [005] 15321.764958566: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) 7f1e71cc4100
uname 14003 [005] 15321.764961566: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) 7f1e71cc4df0
uname 14003 [005] 15321.764961900: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) 7f1e71cc4e18
uname 14003 [005] 15321.764963233: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) 7f1e71cc5128
After:
$ perf script --call-trace | head -5
uname 14003 [005] 15321.764958566: cbr: 42 freq: 4219 MHz (156%)
uname 14003 [005] 15321.764958566: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) _start
uname 14003 [005] 15321.764961566: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) _dl_start
uname 14003 [005] 15321.764961900: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) _dl_start
uname 14003 [005] 15321.764963233: (/usr/lib/x86_64-linux-gnu/ld-2.31.so ) _dl_start
Reported-by: Travis Downs <travis.downs@gmail.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org
Link: http://lore.kernel.org/lkml/20200526155207.9172-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-20 10:24:22 +02:00
..
2020-04-13 10:32:56 +02:00
2018-10-13 09:18:59 +02:00
2018-08-24 13:12:39 +02:00
2020-04-24 07:58:57 +02:00
2019-09-10 10:31:02 +01:00
2019-08-04 09:33:38 +02:00
2020-02-05 13:05:44 +00:00
2016-05-25 16:12:06 +02:00
2016-09-23 13:07:21 -06:00
2016-09-08 08:05:24 +02:00
2020-02-28 15:42:29 +01:00
2016-05-08 23:32:59 -04:00
2020-06-20 10:24:13 +02:00
2016-09-23 13:07:27 -06:00
2020-06-20 10:24:22 +02:00
2020-04-02 17:20:31 +02:00
2020-04-02 17:20:36 +02:00
2016-09-30 09:14:22 -07:00
2020-05-10 10:28:00 +02:00
2018-05-30 07:50:43 +02:00
2020-02-28 15:42:29 +01:00
2018-11-10 07:42:50 -08:00
2018-10-10 08:53:20 +02:00
2016-06-23 11:07:13 +02:00