[lttng-dev] Fast way to clear trace logs and continue tracing?

2016-12-13 Thread Douglas Graham
Hi, I just started working with lttng recently, so apologies if this is a dumb question. Suppose I have configured and started a session and have collected a bunch of traces in a trace file. Now I want to clear those traces but then continue saving new traces using the same session. Is there

Re: [lttng-dev] Fast way to clear trace logs and continue tracing?

2016-12-14 Thread Douglas Graham
Thanks for your reply Jonathan, I don't remember ever having this problem before. I posted my question to lttng-dev without being subscribed, so I did not get your reply in an email. I'm pasting it from the archives into an email this time, but I've just sent a Subscription request so next time h

[lttng-dev] Setenv/getenv are not thread-safe; whose bug is it?

2017-03-10 Thread Douglas Graham
Hi, We have an application that uses lttng-ust for logging. We are seeing a crash in getenv here: #0 __GI_getenv (name=0xb6eb06de "TNG_UST_WITHOUT_BADDR_STATEDUMP") at getenv.c:85 #1 0xb6e7b350 in do_baddr_statedump (owner=0xb6ecf300 ) at lttng-ust-statedump.c:315 #2 do_lttng_ust_statedump

Re: [lttng-dev] Setenv/getenv are not thread-safe; whose bug is it?

2017-03-12 Thread Douglas Graham
> Thanks a lot for the very thorough but report! > I just prepared a patch for you sent in a separate thread: > "[PATCH lttng-ust] Fix: race between lttng-ust getenv() and application > setenv()" > Can you give it a try and let me know if it fixes things on your side ? Thanks for the quick turnar

[lttng-dev] What is the effect of not preloading lttng-ust-fork?

2017-04-23 Thread Douglas Graham
Hi, We have an init-like top-level application that starts a bunch of other daemons. This top-level daemon is started with LD_PRELOAD= /usr/lib/liblttng-ust-fork.so.0 so all the daemons that it starts inherit that. Sometimes we want to debug one of these child applications, so we arrange that

Re: [lttng-dev] Race condition between lttng destroy and lttng load commands

2018-06-11 Thread Douglas Graham
Regarding https://lists.lttng.org/pipermail/lttng-dev/2018-June/028074.html, it may not be obvious that the reason he is bringing that up is that we (Ericsson) need that functionality to implement the clear log functionality that we have mentioned to you before. To clear the logs, we currently do: