一切都看起来很顺利,我使用apt安装了各种包。
然后尝试了一下:
lttng list --kernel
Error: Unable to list kernel events: Kernel tracer not available
然后搜索了一下:
https://github.com/microsoft/WSL/issues/6137
@trgibeau @ivberg-zz you mentioned WSL2 in https://tracingsummit.org/ts/2019/WPA/
I successfully built https://github.com/lttng/lttng-modules#building using https://github.com/microsoft/WSL2-Linux-Kernel and ran the lttng daemon: https://lttng.org/docs/#doc-tracing-the-linux-kernel but I always get ‘Kernel tracer not available’ (a) the modules don’t get loaded by the daemon as described in the docs, (b) when loading them manually it doesn’t make a difference, © neither does building them right into the kernel
Have you tried this internally? Should it work?
看来是老问题了,如果想弄可能需要比较麻烦的操作。’‘
这个还是留给微软自己去弄吧。 good。
对于性能分析来讲,有的要开内核选项,有的要开服务,有的要加载模块。
麻烦。。==