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