I am trying to set up Ubuntu 20.04 LTS using WSL 2 on my Windows machine in order to be able to run performance experiments across a version of Linux and Windows, and as part of this I intended to install the perf
tool.
In order to do so, I read that the packages linux-tools-common
and linux-tools-generic
would be needed. I installed these using apt install
, and it did indeed result in perf
being installed. However if I try to run the tool, I get presented with the following prompt:
$ perf --versionWARNING: perf not found for kernel 5.4.72-microsoft You may need to install the following packages for this specific kernel: linux-tools-5.4.72-microsoft-standard-WSL2 linux-cloud-tools-5.4.72-microsoft-standard-WSL2 You may also want to install one of the following packages to keep up to date: linux-tools-standard-WSL2 linux-cloud-tools-standard-WSL2
However, none of these packages exist within the apt repositories and I cannot find any references to such packages.
Has anybody gone through setting up Linux perf
on WSL2 or would be able to offer me advice on how best to solve this issue?