Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf and kernel and package absent #3225

Closed
mprevot opened this issue May 22, 2018 · 6 comments
Closed

perf and kernel and package absent #3225

mprevot opened this issue May 22, 2018 · 6 comments

Comments

@mprevot
Copy link

mprevot commented May 22, 2018

I'm trying to make perf work in WSL ubuntu. It is said to be under linux-tools-4.4.0-17134-Microsoft but this doesn't exist. So I installed the linux-tools-generic-4.4.0. Then trying to run perf, I got:

WARNING: perf not found for kernel 4.4.0-17134

You may need to install the following packages for this specific kernel:
linux-tools-4.4.0-17134-Microsoft
linux-cloud-tools-4.4.0-17134-Microsoft

You may also want to install one of the following packages to keep up to date:
linux-tools-Microsoft
linux-cloud-tools-Microsoft

Anyway, is there a way to run perf on WSL, the purpose is to get cpu cycles for a running program for benchmarking purposes ?

Where are those *Microsoft packages ?

regards

@therealkenc
Copy link
Collaborator

#329 which was sent to UserVoice purgatory.

@ci70
Copy link

ci70 commented Nov 26, 2018

What's the status on this?

@kevinnguyen9185
Copy link

I got the same issue! What is the status?

@therealkenc
Copy link
Collaborator

The status of this issues is that it is closed as a duplicate of #329. A slightly more constructive status is CONFIG_HAVE_PERF_EVENTS is available in WSL2.

image

@BeverlyXu
Copy link

Would love to see this feature. And please correct the error message. It's misleading.

root@Beverly-Dev2:~# perf
WARNING: perf not found for kernel 4.4.0-18362

You may need to install the following packages for this specific kernel:
linux-tools-4.4.0-18362-Microsoft
linux-cloud-tools-4.4.0-18362-Microsoft

You may also want to install one of the following packages to keep up to date:
linux-tools-Microsoft-lts-
linux-cloud-tools-Microsoft-lts-

@therealkenc
Copy link
Collaborator

This ticket isn't a 'candidate' for closing. It was closed as a dupe in May 2018.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants