-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LTTng kernel tracing support #6137
Comments
Ref #5823 |
I don't see any connection other than they also compiled a custom kernel. |
You need kexec/kdump. |
How does lttng require those? |
Should be a dependency. Also possible you need bcc kernel options enabled instead or in addition to depending on what you're trying to get out of it. |
Well whole system tracing (kernel+user) for performance investigations just like ETW. |
Well some tracing requires kexec/kdump, others just need the bcc kernel options. Most performance related tracing should be good with bcc but kdump can yield more data to churn through. Try enabling the options described here: https://github.com/iovisor/bcc/blob/master/INSTALL.md. Otherwise the other thread should help you to a certain extent. |
Sorry for the late reply @Trass3r. I didn't get a notification for some reason that I know of to see this. P.S. We OSSed the LTTng tooling to read LTTng/perf traces which is now at https://github.com/microsoft/Microsoft-Performance-Tools-Linux Yes, LTTng support can be compiled manually for WSL2 using these or similar instructions: $ sudo apt-get update $uname -r $ git tag $ cd ~/WSL2/WSL2-Linux-Kernel $ git clone https://github.com/lttng/lttng-modules.git // Checkout latest stable $ sudo depmod -a $ sudo modprobe lttng-tracer // Install LTTng Tools
$ sudo apt-add-repository ppa:lttng/stable-2.10
$ take a trace with LTTng per https://lttng.org/docs/v2.10/#doc-tracing-the-linux-kernel
|
By now I've switched to https://github.com/nathanchance/WSL2-Linux-Kernel/commits/next but still getting
@ivberg maybe I picked the wrong user initially?
Nice! Though |
That's good to know about perf being crippled in WSL2 @Trass3r ! Glad to see you got it work when building as a module. P.S. Yea apparently I have had 2 usernames on GitHub now associated with Microsoft. Probably due to issues with 2FA and GitHub needing to delete/recreate the account. I am guessing ivberg-zz is the old username for history purposes? |
Recently I also had to disable It still only works when built as a module. And it seems to be crucial to do |
@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, (c) neither does building them right into the kernel
Have you tried this internally? Should it work?
The text was updated successfully, but these errors were encountered: