Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Gabrielcarvfer/7b3e57a7fa5f9b556ecd7147cb8efe82 to your computer and use it in GitHub Desktop.

Select an option

Save Gabrielcarvfer/7b3e57a7fa5f9b556ecd7147cb8efe82 to your computer and use it in GitHub Desktop.
Install perf on WSL 2
apt install build-essential flex bison pkg-config libssl-dev \
libelf-dev libdw-dev libunwind-dev libaudit-dev libbabeltrace-ctf-dev \
libtraceevent-dev libnuma-dev libpfm4-dev libslang2-dev systemtap-sdt-dev \
libdebuginfod-dev python3 python3-dev libpython3-dev libperl-dev openjdk-17-jdk \
hotspot
git clone https://github.com/microsoft/WSL2-Linux-Kernel --depth 1
cd WSL2-Linux-Kernel/tools/perf
make -j8
sudo cp perf /usr/local/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment