<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style><div dir="ltr">hi all,<div><br></div><div>I compile the nginx-1.4.7 with FLAG <span style="font-size: 12pt;">-finstrument-functions</span><span style="font-size: 12pt;"> , and start nginx like this:</span></div><div><span style="font-size: 12pt;"><br></span></div><div><p class="p1"><span class="s1">LD_PRELOAD=liblttng-ust-cyg-profile-fast.so  ./nginx</span></p><p class="p1"><span class="s1"><br></span></p><p class="p1"><span class="s1">Then I use the command </span><span style="font-size: 12pt;">lttng list --userspace and got nothing like this:</span></p><p class="p1"><br></p><p class="p1"><span class="s1">UST events:</span></p><p class="p1"><span class="s1">-------------</span></p><p class="p1"><span class="s1">None</span></p><p class="p1"><span class="s1"><br></span></p><p class="p1"><span class="s1"><br class="Apple-interchange-newline">I don't understand why I can't get the func_exit/entry events from nginx.</span></p></div></div></blockquote><div><br></div><div>Is the "ngix" executable a binary executable or a shell script ?<br></div><div><br></div><div>Can you give us the output of "file ./ngix" ?<br></div><div><br></div><div>You might want to try<br></div><div><br></div><div>export LD_PRELOAD=liblttng-ust-cyg-profile-fast.so<br></div><div>./ngix<br></div><div><br></div><div>Thanks,<br></div><div><br></div><div>Mathieu<br></div><div><br></div><div><br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div><p class="p1"><span style="font-size: 12pt;"><br></span></p><p class="p1"><span style="font-size: 12pt;">By the way, I test function tracing with a single c source file and works well, output like this:</span></p><p class="p1"><span class="s1"><br></span></p><p class="p1"><span class="s1">UST events:</span></p><p class="p1"><span class="s1">-------------</span></p><p class="p2"><br></p><p class="p1"><span class="s1">PID: 4687 - Name: ./tt</span></p><p class="p1"><span class="s1">      lttng_ust_cyg_profile:func_exit (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)</span></p><p class="p1"><span class="s1">      lttng_ust_cyg_profile:func_entry (loglevel: TRACE_DEBUG_FUNCTION (12)) (type: tracepoint)</span></p><p class="p1"><span class="s1">      lttng_ust_tracef:event (loglevel: TRACE_DEBUG (14)) (type: tracepoint)</span></p><p class="p1"><span class="s1">














</span></p><p class="p1"><span class="s1">      ust_baddr_statedump:soinfo (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)</span></p><p class="p1"><span class="s1"><br></span></p><p class="p1"><span class="s1"><br></span></p><p class="p1">Wishing for help.</p></div></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com<span name="x"></span><br></div></div></body></html>