Re: Function tracing not working

2025-06-06 Thread Mathieu Desnoyers via lttng-dev
On 2025-06-06 10:37, David Aldrich wrote: Hi Mathieu Indeed, You will also need to enable something like this: lttng enable-event --userspace 'lttng_ust_cyg_profile:*' See "man 3 lttng-ust-cyg-profile" for details. Thanks for this. I used your suggested command and can now see the Flame Cha

Re: Function tracing not working

2025-06-06 Thread David Aldrich via lttng-dev
Hi Mathieu > Indeed, You will also need to enable something like this: > > lttng enable-event --userspace 'lttng_ust_cyg_profile:*' > > See "man 3 lttng-ust-cyg-profile" for details. Thanks for this. I used your suggested command and can now see the Flame Chart (Incubator). However, I only see sy

Re: Function tracing not working

2025-06-05 Thread Mathieu Desnoyers via lttng-dev
On 2025-06-05 06:49, David Aldrich wrote: Hi Mathieu I'd like to add some more detail. I now run our app using this pattern: LD_PRELOAD=liblttng-ust-cyg-profile.so ./app On importing the trace into TraceCompass I see: "null analysis for LTTng-UST CallStack" Could the reason be the lttng com

Re: Function tracing not working

2025-06-05 Thread David Aldrich via lttng-dev
Hi Mathieu I'd like to add some more detail. I now run our app using this pattern: LD_PRELOAD=liblttng-ust-cyg-profile.so ./app On importing the trace into TraceCompass I see: "null analysis for LTTng-UST CallStack" Could the reason be the lttng commands I am using to capture UST and Kernel e

Re: Function tracing not working

2025-06-04 Thread David Aldrich via lttng-dev
Hi Mathieu > > Any idea what I am doing wrong please? > > AFAIK, the "LD_PRELOAD" environment variable is cleared by > sudo when running its child process for security purposes. Thanks for your answer, that does help. However, I have now adjusted the code so that sudo is not required, but when I

Re: Function tracing not working

2025-06-02 Thread Mathieu Desnoyers via lttng-dev
On 2025-06-02 10:37, David Aldrich via lttng-dev wrote: Hi, I am trying to use lttng-ust-cyg-profile. Our application is large so, so far, I only compile main.cpp with compiler option '-finstrument-functions' (I don't specify option '-pg'). Our app must be run as root so I run it, and capture

Function tracing not working

2025-06-02 Thread David Aldrich via lttng-dev
Hi, I am trying to use lttng-ust-cyg-profile. Our application is large so, so far, I only compile main.cpp with compiler option '-finstrument-functions' (I don't specify option '-pg'). Our app must be run as root so I run it, and capture with lttng, like this: lttng create app_trace lttng enabl