[lttng-dev] lttng function tracing nginx problem

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed May 20 12:28:41 EDT 2015


----- Original Message -----

> hi all,

> I compile the nginx-1.4.7 with FLAG -finstrument-functions , and start nginx
> like this:

> LD_PRELOAD=liblttng-ust-cyg-profile-fast.so ./nginx

> Then I use the command lttng list --userspace and got nothing like this:

> UST events:

> -------------

> None

> I don't understand why I can't get the func_exit/entry events from nginx.

Is the "ngix" executable a binary executable or a shell script ? 

Can you give us the output of "file ./ngix" ? 

You might want to try 

export LD_PRELOAD=liblttng-ust-cyg-profile-fast.so 
./ngix 

Thanks, 

Mathieu 

> By the way, I test function tracing with a single c source file and works
> well, output like this:

> UST events:

> -------------

> PID: 4687 - Name: ./tt

> lttng_ust_cyg_profile:func_exit (loglevel: TRACE_DEBUG_FUNCTION (12)) (type:
> tracepoint)

> lttng_ust_cyg_profile:func_entry (loglevel: TRACE_DEBUG_FUNCTION (12)) (type:
> tracepoint)

> lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type: tracepoint)

> ust_baddr_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) (type:
> tracepoint)

> Wishing for help.

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150520/d3aecb6a/attachment.html>


More information about the lttng-dev mailing list