docs:add install guide for wsl users
- [Amazon Linux 1](#amazon-linux-1---binary)
- [Amazon Linux 2](#amazon-linux-2---binary)
- [Alpine](#alpine---binary)
+ - [WSL](#wsl---binary)
* [Source](#source)
- [libbpf Submodule](#libbpf-submodule)
- [Debian](#debian---source)
@@ -270,6 +271,33 @@ sudo docker run --rm -it --privileged \
alpine:3.12
```
+## WSL - Binary
+
+### Install dependencies
+The compiling depends on the headers and lib of linux kernel module which was not found in wsl distribution packages repo. We have to compile the kernel moudle manually.
+```bash
+apt-get install flex bison libssl-dev libelf-dev
+```
+For wsl kernel 5.10.y
+```
+apt-get install dwarves
+```
+### Install packages
+```
+cp Microsoft/config-wsl .config
+make oldconfig && make prepare
+make scripts
+make modules && make modules_install
+# if your kernel version is 4.19.y
+mv /lib/modules/x.y.z-microsoft-standard+ /lib/modules/x.y.z-microsoft-standard
+````
+Then you can install bcc tools package according your distribution.
+
+If you met some problems, try to
+```
+sudo mount -t debugfs debugfs /sys/kernel/debug
+```
+
# Source
## libbpf Submodule
