Sysinternals / ProcMon-for-Linux

Procmon is a Linux reimagining of the classic Procmon tool from the Sysinternals suite of tools for Windows. Procmon provides a convenient and efficient way for Linux developers to trace the syscall activity on the system.
MIT License
4k stars 260 forks source link

WSL2 Ubuntu 20.04: Exception is thrown #91

Closed valsamis-d closed 2 months ago

valsamis-d commented 2 years ago

Hi,

I followed the steps below:

wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

and then

sudo apt-get update
sudo apt-get install procmon

but when I do sudo procmon I get the following runtime error:

image

Thank you Dimitrios

MarioHewardt commented 2 years ago

Hey @valsamis-d, please try the following and rerun procmon: sudo mount -t debugfs nodev /sys/kernel/debug

valsamis-d commented 2 years ago

@MarioHewardt tried the above, and now I get the following RTE:

image

MarioHewardt commented 2 years ago

Ah, with WSL2 it looks like you will need to enable kernel headers. Please look over at https://github.com/microsoft/WSL2-Linux-Kernel for build instructions.

nopa12 commented 2 years ago

try this to fix the kernel headers: https://gist.github.com/nopa12/c216d12d7ae0180d14307df3d95f37e4#easy-solution