I don't understand why WSL2 wouldn't support eBPF. It is a mostly vanilla[1] Linux kernel running under a hypervisor, so why couldn't a kernel with eBPF support be used? Indeed, Microsoft's WSL2 kernel has eBPF JIT support turned on – https://github.com/microsoft/WSL2-Linux-Kernel/blob/master/M...
WSL1 yes I agree, it is just a translation layer between Linux and NT syscalls, and features such as eBPF would not be implemented in such a layer.
[1] there may at times be various enhancements to HyperV paravirt drivers that haven't been upstreamed yet
WSL1 yes I agree, it is just a translation layer between Linux and NT syscalls, and features such as eBPF would not be implemented in such a layer.
[1] there may at times be various enhancements to HyperV paravirt drivers that haven't been upstreamed yet