When using perf one needs the debug symbols installed to get the function names in the perf capture.
Step 1: GPG key import
Make sure that you have the GPG key of your system. For Ubuntu 16.04 and higher:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C8CAB6595FDFF622
For older distributions:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01
Step 2: Add repository config
codename=$(lsb_release -c | awk '{print $2}') sudo tee /etc/apt/sources.list.d/ddebs.list << EOF deb http://ddebs.ubuntu.com/ ${codename} main restricted universe multiverse deb http://ddebs.ubuntu.com/ ${codename}-security main restricted universe multiverse deb http://ddebs.ubuntu.com/ ${codename}-updates main restricted universe multiverse deb http://ddebs.ubuntu.com/ ${codename}-proposed main restricted universe multiverse EOF
Step 3: Update packages
sudo apt-get update
Step 4: Download and install the debugging symbols
sudo apt-get install linux-image-$(uname -r)-dbgsym
Reference: https://hadibrais.wordpress.com/2017/03/13/installing-ubuntu-kernel-debugging-symbols/