Forked from trevnorris/perf-flame-graph-notes.md
Last active
August 29, 2015 14:16
-
-
Save jribeiro/e3f7541a03d87c52a33d to your computer and use it in GitHub Desktop.
Revisions
-
trevnorris revised this gist
Oct 30, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ apt-get update apt-get -y upgrade apt-get -y install make build-essential linux-tools-common elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.6 clang-3.6 lldb-3.6 libllvm3.6 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb apache2-utils ln -s /usr/bin/clang-3.6 /usr/bin/clang -
trevnorris revised this gist
Oct 30, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.6 clang-3.6 lldb-3.6 libllvm3.6 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb apache2-utils ln -s /usr/bin/clang-3.6 /usr/bin/clang -
trevnorris revised this gist
Oct 30, 2014 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,12 @@ apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.6 clang-3.6 lldb-3.6 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb apache2-utils ln -s /usr/bin/clang-3.6 /usr/bin/clang ln -s /usr/bin/clang++-3.6 /usr/bin/clang++ ln -s /usr/bin/lldb-3.6 /usr/bin/lldb echo 'export CC=clang' > ~/.bash_aliases echo 'export CXX=clang++' >> ~/.bash_aliases echo 'export GYP_DEFINES="clang=1"' >> ~/.bash_aliases -
trevnorris revised this gist
Oct 30, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,10 @@ #!/bin/bash sh /etc/lsb-release wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - apt-add-repository "deb http://llvm.org/apt/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME} main" apt-get update -
trevnorris revised this gist
Oct 30, 2014 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,8 @@ wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - apt-add-repository "deb http://llvm.org/apt/utopic/ llvm-toolchain-utopic main" apt-get update apt-get -y upgrade @@ -47,7 +49,7 @@ rm master.tar.gz mv FlameGraph-master FlameGraph #cd ~/sources #wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.15.6.tar.gz -
trevnorris revised this gist
Oct 30, 2014 . 1 changed file with 3 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,12 @@ #!/bin/bash wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.6 clang-3.6 lldb-3.6 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb apache2-utils echo 'export CC=clang' > ~/.bash_aliases echo 'export CXX=clang++' >> ~/.bash_aliases -
trevnorris revised this gist
Oct 30, 2014 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,10 @@ apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.5 clang-3.5 lldb-3.5 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb apache2-utils wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - apt-get install clang-3.6 lldb-3.6 echo 'export CC=clang' > ~/.bash_aliases echo 'export CXX=clang++' >> ~/.bash_aliases echo 'export GYP_DEFINES="clang=1"' >> ~/.bash_aliases -
trevnorris revised this gist
Oct 30, 2014 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,9 +6,11 @@ apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.5 clang-3.5 lldb-3.5 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb apache2-utils echo 'export CC=clang' > ~/.bash_aliases echo 'export CXX=clang++' >> ~/.bash_aliases echo 'export GYP_DEFINES="clang=1"' >> ~/.bash_aliases . ~/.bash_aliases chmod 777 /usr/share/nginx/html ln -s /usr/share/nginx/html www -
trevnorris revised this gist
Oct 29, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,7 @@ tar xvf v0.11.13.tar.gz rm v0.11.13.tar.gz mv node-0.11.13 node cd node -
trevnorris revised this gist
Oct 29, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -19,11 +19,11 @@ cd sources wget https://github.com/joyent/node/archive/v0.11.13.tar.gz tar xvf v0.11.13.tar.gz rm v0.11.13.tar.gz mv node-0.11.23 node cd node -
trevnorris revised this gist
Oct 29, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -27,7 +27,7 @@ mv node-master node cd node ./configure --gdb make -
trevnorris revised this gist
Oct 29, 2014 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.5 clang-3.5 lldb-3.5 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb apache2-utils echo 'export CC=clang' > .bash_aliases echo 'export CXX=clang++' >> .bash_aliases @@ -17,7 +17,7 @@ mkdir sources cd sources wget https://github.com/joyent/node/archive/v0.11.13.tar.gz tar xvf master.tar.gz @@ -45,12 +45,12 @@ mv FlameGraph-master FlameGraph cd ~/sources #wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.15.6.tar.gz #tar xvf linux-3.15.6.tar.gz #rm linux-3.15.6.tar.gz #cd linux-3.15.6/tools/perf/ #make -f Makefile.perf install prefix=/usr -
trevnorris revised this gist
Jul 18, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.4 clang-3.4 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb apache2-utils echo 'export CC=clang' > .bash_aliases echo 'export CXX=clang++' >> .bash_aliases -
trevnorris revised this gist
Jul 18, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.4 clang-3.4 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx gdb echo 'export CC=clang' > .bash_aliases echo 'export CXX=clang++' >> .bash_aliases -
trevnorris revised this gist
Jul 18, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,8 +10,8 @@ echo 'export CC=clang' > .bash_aliases echo 'export CXX=clang++' >> .bash_aliases echo 'export GYP_DEFINES="clang=1"' >> .bash_aliases chmod 777 /usr/share/nginx/html ln -s /usr/share/nginx/html www mkdir sources -
trevnorris revised this gist
Jul 18, 2014 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,12 +4,15 @@ apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.4 clang-3.4 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux nginx echo 'export CC=clang' > .bash_aliases echo 'export CXX=clang++' >> .bash_aliases echo 'export GYP_DEFINES="clang=1"' >> .bash_aliases chmod 777 /usr/share/nginx/www ln -s /usr/share/nginx/www mkdir sources cd sources -
trevnorris revised this gist
Jul 18, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.4 clang-3.4 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git tmux echo 'export CC=clang' > .bash_aliases echo 'export CXX=clang++' >> .bash_aliases -
trevnorris revised this gist
Jul 18, 2014 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -42,12 +42,12 @@ mv FlameGraph-master FlameGraph cd ~/sources wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.15.6.tar.gz tar xvf linux-3.15.6.tar.gz rm linux-3.15.6.tar.gz cd linux-3.15.6/tools/perf/ make -f Makefile.perf install prefix=/usr -
trevnorris revised this gist
May 1, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -42,7 +42,7 @@ mv FlameGraph-master FlameGraph cd ~/sources wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.2.tar.sign tar xvf linux-3.13.6.tar.gz -
trevnorris revised this gist
Mar 31, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.4 clang-3.4 subversion libc6-dev-i386 libgtk2.0-dev libperl-dev python-dev git echo 'export CC=clang' > .bash_aliases echo 'export CXX=clang++' >> .bash_aliases -
trevnorris revised this gist
Mar 21, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,5 +18,5 @@ Alternatives: ``` perf script | egrep -v "( __libc_start|node::Start\(| LazyCompile | Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | ../FlameGraph/stackcollapse-perf.pl | grep "uv_run" > out.perf-folded perf script | egrep -v "( __libc_start|node::Start\(| LazyCompile | v8::internal::| Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | ../FlameGraph/stackcollapse-perf.pl | grep "uv_run" > out.perf-folded ``` -
trevnorris revised this gist
Mar 21, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,5 +18,5 @@ Alternatives: ``` perf script | egrep -v "( __libc_start|node::Start\(| LazyCompile | Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | ../FlameGraph/stackcollapse-perf.pl | grep "uv_run" > out.perf-folded perf script | egrep -v "( __libc_start|node::Start\(| LazyCompile | v8::Internal::| Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | ../FlameGraph/stackcollapse-perf.pl | grep "uv_run" > out.perf-folded ``` -
trevnorris revised this gist
Mar 21, 2014 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,4 +12,11 @@ perf script | egrep -v "( __libc_start| LazyCompile | v8::internal::| Builtin:| ~/sources/FlameGraph/flamegraph.pl out.perf-folded > node-flame.svg ``` The data munging is to help expose the most important bits. There is still some play that I'm working with, but right now it seems to be working. Alternatives: ``` perf script | egrep -v "( __libc_start|node::Start\(| LazyCompile | Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | ../FlameGraph/stackcollapse-perf.pl | grep "uv_run" > out.perf-folded perf script | egrep -v "( __libc_start|node::Start\(| LazyCompile | v8::Internal:: Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | ../FlameGraph/stackcollapse-perf.pl | grep "uv_run" > out.perf-folded ``` -
trevnorris revised this gist
Mar 18, 2014 . 1 changed file with 0 additions and 29 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,35 +30,6 @@ make make install cd ~/sources wget https://github.com/brendangregg/FlameGraph/archive/master.tar.gz -
trevnorris revised this gist
Mar 18, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ sudo sysctl kernel/kptr_restrict=0 perf record -i -g -e cycles:u -- ~/sources/node/node --perf-basic-prof script.js perf script | egrep -v "( __libc_start| LazyCompile | v8::internal::| Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | sed 's/ LazyCompile:[*~]\?/ /' | ~/sources/FlameGraph/stackcollapse-perf.pl > out.perf-folded ~/sources/FlameGraph/flamegraph.pl out.perf-folded > node-flame.svg ``` -
trevnorris created this gist
Mar 18, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ The `prep-script.sh` will setup the latest Node and install the latest perf version on your Linux box. When you want to generate the flame graph, run the following (folder locations taken from install script): ``` sudo sysctl kernel/kptr_restrict=0 perf record -i -g -e cycles:u -- ~/sources/node/node --perf-basic-prof script.js perf script | egrep -v "( __libc_start| LazyCompile | v8::internal::| Builtin:| Stub:| LoadIC:|\[unknown\]| LoadPolymorphicIC:)" | sed 's/ LazyCompile:[*~]\?/ /' | ./stackcollapse-perf.pl > out.perf-folded ~/sources/FlameGraph/flamegraph.pl out.perf-folded > node-flame.svg ``` The data munging is to help expose the most important bits. There is still some play that I'm working with, but right now it seems to be working. 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,82 @@ #!/bin/bash apt-get update apt-get -y upgrade apt-get -y install make build-essential elfutils libelf-dev flex bison libunwind8 libunwind8-dev libaudit-dev libdw-dev binutils-dev libnuma-dev libslang2-dev asciidoc llvm-3.4 clang-3.4 subversion libc6-dev-i386 git echo 'export CC=clang' > .bash_aliases echo 'export CXX=clang++' >> .bash_aliases echo 'export GYP_DEFINES="clang=1"' >> .bash_aliases mkdir sources cd sources wget https://github.com/joyent/node/archive/master.tar.gz tar xvf master.tar.gz rm master.tar.gz mv node-master node cd node ./configure make make install cd deps/v8/ make dependencies make native cd ~/sources/node/tools/wrk make cd ~/sources wget https://github.com/ktap/ktap/archive/master.tar.gz tar xvf master.tar.gz rm master.tar.gz mv ktap-master ktap cd ktap make make install # Do this to load as a kernel module #make load cd ~/sources wget https://github.com/brendangregg/FlameGraph/archive/master.tar.gz tar xvf master.tar.gz rm master.tar.gz mv FlameGraph-master FlameGraph cd ~/sources wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.6.tar.gz tar xvf linux-3.13.6.tar.gz rm linux-3.13.6.tar.gz cd linux-3.13.6/tools/perf/ make -f Makefile.perf install prefix=/usr