Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2809

Installing Linux Perf tools on Ubuntu 20.04 LTS with WSL2

$
0
0

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?


Viewing all articles
Browse latest Browse all 2809

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>