Kernel tracing from inside a Docker container
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Wed Nov 6 10:55:23 EST 2024
Hi,
lttng-modules exposes its control ABI through the
virtual file /proc/lttng.
Does you container have access to that file ?
Note that if you give access to that file within the
container, then the container can observe detailed
information about kernel internals (including related
to other containers).
Thanks,
Mathieu
On 2024-11-06 02:38, Eibach, Dirk via lttng-dev wrote:
> Hi,
>
> I want to do kernel tracing from inside a Docker container.
> Kernel-tracing works from the host and the modules are loaded.
> Userspace tracing works inside the container. But when I do "lttng list
> --kernel" from the container I get "Error: Unable to list kernel events:
> Kernel tracer not available". Running in the container in priviledged
> mode makes no difference.
>
> Mit freundlichen Grüßen / Best Regards
> Dirk Eibach
> _________________________________
> CARL CLOOS SCHWEISSTECHNIK GMBH
> Softwareentwickler / AU-EW
> Softwaredeveloper / AU-EW
> Hauptverwaltung/Headquarters: Carl-Cloos-Strasse 1
> Zentrallager/Central Warehouse: Carl-Cloos-Strasse 6
> 35708 Haiger
> Germany
> Tel: +49 2773 85-888
> E-Mail: mailto:dirk.eibach at cloos.de <mailto:dirk.eibach at cloos.de>
> Internet: http://www.cloos.de/ <http://www.cloos.de/>
>
> Sitz der Firma/Headquarters: 35708 Haiger, Germany
> Amtsgericht/Lower district court: Wetzlar HR B 3052
> UST.-ID-Nr./VAT ID No.: DE 111 79 45 11
> WEEE-Reg.-Nr./WEEE-Reg. No.: DE83919745
> Geschäftsführer/Management: Stephan Pittner (CEO)
>
> <https://www.linkedin.com/company/carl-cloos-schwei%C3%9Ftechnik-gmbh>
> <https://www.youtube.com/user/CloosWelding>
> <https://www.facebook.com/CloosWelding>
> <https://www.instagram.com/CloosWelding>
> <https://www.xing.com/profile/carlcloosschweisstechnikgmbh>
>
> CLOOS-Newsletter <https://www.cloos.de/de-de/#newsletter>
>
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com
More information about the lttng-dev
mailing list