perf report addr2line: /proc/kcore: File format not recognized

Asked by harubyy on 2018-10-06

Hello,
I'm on ubuntu bionic, binutils is 2.30, perf version 4.15.18

I'm using
sudo perf record -g -c 100000 -e cycles:u,instructions:u ./executable

to sample cycles and instructions.

However I cannot see source code line numbers with perf report

as seen here:
sudo perf report --stdio --show-nr-samples --percent-limit 4 --sort=srcline
[sudo] password for harubyy:
addr2line: /proc/kcore: File format not recognized
addr2line has no output for /proc/kcore
addr2line: /proc/kcore: File format not recognized
addr2line has no output for /proc/kcore
addr2line: /proc/kcore: File format not recognized
addr2line has no output for /proc/kcore
addr2line: /proc/kcore: File format not recognized
addr2line has no output for /proc/kcore
addr2line: /proc/kcore: File format not recognized
addr2line has no output for /proc/kcore

I hope someone can help me with this.
Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2018-10-06
Last reply:
2018-10-22
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.