Closed ThomsonTan closed 2 years ago
Can you try mounting /sys/kernel/debug? I.e., 'sudo mount -t debugfs nodev /sys/kernel/debug'.
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
You may need to build a new kernel. Have a look at - https://gist.github.com/MarioHewardt/5759641727aae880b29c8f715ba4d30f and see if that helps.
Built ProcMon-for-Linux in WSL2 (with Ubuntu 20.04 distro) on Windows 11, but it doesn't run with below error.
Below issue might be related. https://github.com/Sysinternals/ProcMon-for-Linux/issues/74