Re: [lttng-dev] Userspace tracing in docker containers

2021-05-03 Thread Eqbal via lttng-dev
Thanks for the responses. The reasoning makes sense. We have decided to run lttng-sessiond on the host. Our trace generating application will run in a container and so will our libbabeltrace based trace consumer app (using live sessions). On Tue, Apr 6, 2021 at 7:07 AM Jonathan Rajotte-Julien < jo

Re: [lttng-dev] Userspace tracing in docker containers

2021-04-06 Thread Jonathan Rajotte-Julien via lttng-dev
Hi, On Mon, Apr 05, 2021 at 11:09:39AM -0700, Eqbal via lttng-dev wrote: > Hi, > > I am trying to get user space tracing working for an application running in > a docker container. I am running lttng session daemon in another container. > I mounted the unix socket locations (either /var/run/lttng

Re: [lttng-dev] Userspace tracing in docker containers

2021-04-05 Thread Eqbal via lttng-dev
>If I comment out the getsockopt call, my application tracing starts to work. Correction on the above, I meant I comment out the check for pid being non-zero in the get_cred call, not the whole getsockopt call. diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index 39860ebf..96a