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

ProcMon-for-Linux doesn't work in WSL2 #82

Closed
ThomsonTan opened this issue Dec 21, 2021 · 3 comments
Closed

ProcMon-for-Linux doesn't work in WSL2 #82

ThomsonTan opened this issue Dec 21, 2021 · 3 comments

Comments

@ThomsonTan
Copy link

Built ProcMon-for-Linux in WSL2 (with Ubuntu 20.04 distro) on Windows 11, but it doesn't run with below error.

./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

Below issue might be related.
#74

@MarioHewardt
Copy link
Collaborator

Can you try mounting /sys/kernel/debug? I.e., 'sudo mount -t debugfs nodev /sys/kernel/debug'.

@ThomsonTan
Copy link
Author

Thanks @MarioHewardt. I mounted /sys/kernel/debug successfully, but then got another error as below.

modprobe: FATAL: Module kheaders not found in directory /lib/modules/5.10.60.1-microsoft-standard-WSL2
Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module) or installing the kernel development package for your running kernel version.
chdir(/lib/modules/5.10.60.1-microsoft-standard-WSL2/build): No such file or directory

The config of the inbox WSL kernel shows CONFIG_IKHEADERS is not enabled.

zcat /proc/config.gz  | grep CONFIG_IKHEADERS
# CONFIG_IKHEADERS is not set

@MarioHewardt
Copy link
Collaborator

You may need to build a new kernel. Have a look at - https://gist.github.com/MarioHewardt/5759641727aae880b29c8f715ba4d30f and see if that helps.

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

2 participants