Created
January 2, 2019 15:18
-
-
Save joaomlneto/46f82b1f0ed5b4b0a6d0b3ec2ff4d0a5 to your computer and use it in GitHub Desktop.
Compile perf from Ubuntu source
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################ | |
| # Stolen from Michal Fapso's answer: # | |
| # https://stackoverflow.com/a/34061874/4288486 # | |
| ################################################ | |
| sudo apt-get install libiberty-dev binutils-dev | |
| mkdir ~/install | |
| cd ~/install | |
| # If the following apt-get doesn't work on your system, | |
| # uncomment deb-src lines in your /etc/apt/sources.list, | |
| # as suggested by @ctitze | |
| # or you can download it manually from packages.ubuntu.com | |
| # as @aleixrocks suggested in the comment below | |
| apt-get source linux-tools-`uname -r` | |
| sudo apt-get build-dep linux-tools-`uname -r` | |
| cd linux-`uname -r | sed 's/-.*//'`/tools/perf | |
| make | |
| # now you should see the new "perf" executable here | |
| ./perf | |
| There should be also some way to create a new linux-tools-common package to really integrate it into your system. For now to override the official perf with your new one, just set your PATH: | |
| export PATH=~/install/linux-`uname -r | sed 's/-.*//'`/tools/perf:$PATH |
Appreciate the knowledge drop done step by step ... Some of us need it because some of us went from Dos to Graphical HMI and don't remember shit for command line and now realize what a bad decision it was .. Appreciate yalls patience BC I can't imagine how frustrating it is ... Was just reading a article talking about the need to migrate accounts in some Linux distributions ... What's your take ... Boot disk over Bare metal?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This I need... Trying to migrate OS as Microsoft accounts hacked... But no joy .. As 8 hours and no Ubuntu ran out of battery