How do I enable C++ demangling for the perf callgraph? It seems to demangle symbols when I go into annotate mode, but not in the main callgraph.
Sample code (using G
If you don't understand what to download from packages.ubuntu.com (as in the first answer), then you also can download linux kernel sources from git:
sudo apt-get install libiberty-dev binutils-dev
mkdir ~/install
cd ~/install
git clone https://github.com/torvalds/linux --depth 1
cd linux/tools/perf
make
# now you should see the new "perf" executable here
./perf
And modify path (as in the first answer):
export PATH=~/install/linux/tools/perf:$PATH