Comment 24 for bug 1396654

Revision history for this message
Peter (doob) wrote :

I was wrong. `/usr/bin/perf` is just a shell script calling a kernel specific version.
The real executable is in `linux-hwe-tools-4.**`.
I checked the source of `linux-hwe-tools-4.15.0-36` and it already has the necessary fix.
Rebuilding just the perf executable from withhin the source dir resulted in a binary with correct demangling support.
```
apt-get source linux-hwe-tools-4.15.0-36
sudo apt-get build-dep linux-hwe-tools-4.15.0-36
cd linux-hwe-4.15.0/tools/perf && make
```

However rebuilding and installing the package `linux-hwe-tools-4.15.0-36` resulted in a different binary with still broken demangling. I don’t know what’s the reason for that.
```
apt-get source linux-hwe-tools-4.15.0-36
sudo apt-get build-dep linux-hwe-tools-4.15.0-36
cd linux-hwe-4.15.0 && debuild -us -uc -b
sudo dpkg -i ../linux-hwe-tools-4.15.0-36_4.15.0-36.39~16.04.1_amd64.deb ../linux-tools-4.15.0-36-generic_4.15.0-36.39~16.04.1_amd64.deb
```