Showing results for 
Search instead for 
Did you mean: 

Server Gurus Discussions

Adept I

install uProf in WSL2

I am trying to install uProf for c++ code profiling in my machine with a AMD Ryzen ThreadRipper 3960X.

I downloaded the .deb file and tried to install with:



sudo dpkg --install amduprof_x.y-z_amd64.deb



However, I get the error:



ERROR: Linux headers is required for installing AMD Power Profiler driver.
Please install the sources using
sudo apt-get install linux-headers-
and then start the installation again.



I tried to install the headers and got:



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-
E: Couldn't find any package by glob 'linux-headers-'
E: Couldn't find any package by regex 'linux-headers-'



I tried to check the headers I am using with:



uname -r



and got:



What is the problem here?

Kind regards

1 Reply

Hello,  Are you trying to profile your c++ code or you are doing power profile analysis?  For profiling your c++ application you don't need to install Power profile driver.  Since you are using uProf WSL - you need kernel files for that.  Can you please explain your setup?  i.e. you OS and Processor details?