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

Support for WSL2 #62

Closed
msftnadavbh opened this issue May 6, 2021 · 2 comments
Closed

Support for WSL2 #62

msftnadavbh opened this issue May 6, 2021 · 2 comments

Comments

@msftnadavbh
Copy link

After installation on WSL2 :

uname -ar
Linux nadavbhp1 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

sudo procmon
_terminate called after throwing an instance of 'std::experimental::filesystem::v1::_cxx11::filesystem_error'
what(): filesystem error: directory iterator cannot open directory: No such file or directory [/sys/kernel/debug/tracing/events/syscalls]
Aborted

@marcoshaw
Copy link

I wonder if this is more of a WSL2 issue, then a ProcMon one?
https://gist.github.com/MarioHewardt/5759641727aae880b29c8f715ba4d30f

@MarioHewardt
Copy link
Collaborator

@marcoshaw correct. You need to enable eBPF on WSL2 and the gist shows you how to do that. Even with that though, there are currently a few blockers in eBPF itself (mainly some helper APIs being namespace aware) that ends up giving false information in procmon. This has since been fixed but only available in the absolute latest kernels (as far as am I aware).

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

No branches or pull requests

3 participants