Re: [lttng-dev] Tracepoints firing without being enabled in LTTng

2019-02-20 Thread Trent Piepho via lttng-dev
On Wed, 2019-02-20 at 13:53 -0500, Jonathan Rajotte-Julien wrote: > On Wed, Feb 20, 2019 at 01:43:00PM -0500, Mosleh Uddin wrote: > > Hello, > > > > I see, I was loading the liblttng-ust-fd but not fork. Once loading > > both of > > these with LD_PRELOAD everything seems to be working great.

Re: [lttng-dev] Tracepoints firing without being enabled in LTTng

2019-02-20 Thread Mosleh Uddin
Hello, Thank you everyone for the assistance and quick response. Thankfully adding the Environment with LD_PRELOAD in the systemd service file was enough to get everything running smoothly. Regards, Mosleh On Wed, Feb 20, 2019 at 3:06 PM Jonathan Rajotte-Julien <

Re: [lttng-dev] Tracepoints firing without being enabled in LTTng

2019-02-20 Thread Jonathan Rajotte-Julien
> One should be able to add LD_PRELOAD to an Environment line in a > systemd unit file. But beware, from ld.so docs: > > In secure-execution mode, preload pathnames containing slashes are > ignored. Furthermore, shared objects are preloaded only from the > standard search directories and only

Re: [lttng-dev] Tracepoints firing without being enabled in LTTng

2019-02-20 Thread Jonathan Rajotte-Julien
On Wed, Feb 20, 2019 at 01:43:00PM -0500, Mosleh Uddin wrote: > Hello, > > I see, I was loading the liblttng-ust-fd but not fork. Once loading both of > these with LD_PRELOAD everything seems to be working great. Thank you for > all your assistance. > > I was also wondering, it may be

Re: [lttng-dev] Tracepoints firing without being enabled in LTTng

2019-02-20 Thread Mosleh Uddin
Hello, I see, I was loading the liblttng-ust-fd but not fork. Once loading both of these with LD_PRELOAD everything seems to be working great. Thank you for all your assistance. I was also wondering, it may be impractical to always load these shared objects because the systems starts the app

Re: [lttng-dev] Tracepoints firing without being enabled in LTTng

2019-02-20 Thread Mathieu Desnoyers
- On Feb 20, 2019, at 9:10 AM, Mosleh Uddin wrote: > Hello, > Here is what I do to get the consistent behavior: > When the app is running as a service, lttng list -u does not display any > events, > initially I do have to lttng enable-events and lttng start to see the > tracepoints in

Re: [lttng-dev] Tracepoints firing without being enabled in LTTng

2019-02-20 Thread Francis Deslauriers
Le mer. 20 févr. 2019, à 09 h 10, Mosleh Uddin a écrit : > > Hello, > > Here is what I do to get the consistent behavior: > When the app is running as a service, lttng list -u does not display any > events, initially I do have to lttng enable-events and lttng start to see the > tracepoints in

Re: [lttng-dev] Tracepoints firing without being enabled in LTTng

2019-02-20 Thread Mosleh Uddin
Hello, Here is what I do to get the consistent behavior: When the app is running as a service, lttng list -u does not display any events, initially I do have to lttng enable-events and lttng start to see the tracepoints in lttng view. However, after lttng start, I can disable all events and I can