<div dir="ltr"><div> Hello Sir,<div>I am Abhinav from India.</div></div><b>Kindly Ignore the previous email.</b><div><div>Actually I am very new to the Embedded System Engineering profession. In fact I have been asked to do an independent project to instrumenting a c application using <span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:16px">LLTng concept to find/trace calls to malloc(), free() calls.</span> In fact i tried capturing the same as below steps but didn't understand why after using LD_PRELOAD also malloc() and free() calls were not traced. I am not sure whether my app was correct!! <span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:16px"><br></span></div><div><br></div><div><div> I followed the steps provided to create executable using -lltng-ust -ldl </div><div>2.I executed it as: LD_PRELOAD=liblttng-ust-libc-wrapper.so ./executable (initially as ./exe arg))</div><div>3. Then I followed commands to create , capture the events. and destroyed it.</div><div>4. I used TraceCompass to analyze the trace but it did't show any call trace to malloc or free.</div><div><br></div><div><br></div><div>Corresponding to above steps I am inserting images as below:</div><div><div><img src="cid:ii_ka4uqh700" alt="1malloc_app.PNG" width="476" height="269" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px;"><br></div><div>Above is malloc.c (App)</div><div><img src="cid:ii_ka4uqh871" alt="2malloc_tp.PNG" width="476" height="263" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px;"></div><div><div><img src="cid:ii_ka4v7t7f0" alt="2malloc_tp.PNG" width="496" height="100" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px;"><br></div></div><div><img src="cid:ii_ka4uqhbg3" alt="4.exectable.PNG" width="476" height="31" class="gmail-CToWUd"><br></div><div><img src="cid:ii_ka4uqhbu4" alt="5.trace_creation.PNG" width="476" height="214" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px;"><br></div></div><div><br></div><div>But trace was not showing the malloc call and free call event then alternatively i did the following: </div><div><br></div><div><img src="cid:ii_ka4utfnh5" alt="6.alternativeto5.PNG" width="476" height="82" class="gmail-CToWUd"><br></div><div>in different tab the following steps: after trace start i pressed enter in other tab to execute the app. then used lttng destroy.</div><div><img src="cid:ii_ka4utfob6" alt="7.creation_trace.PNG" width="476" height="108" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px;">.<br></div><div><img src="cid:ii_ka4utfp17" alt="8.tracecompass.PNG" width="476" height="244" class="gmail-CToWUd gmail-a6T" tabindex="0" style="cursor: pointer; outline: 0px;"></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 13 May 2020 at 10:10, Abhinav Ranjan <<a href="mailto:abhi.abhinav240@gmail.com" target="_blank">abhi.abhinav240@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello Sir,<div>I am Abhinav from India.</div><div>Actually I am very new to the Embedded System Engineering profession. In fact I have been asked to do an independent project to instrumenting a c application using <span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:16px">LLTng concept to find/trace calls to malloc(), free() calls.</span></div><div><br></div><div>1. I followed the steps provided to create executable using -lltng-ust -ldl </div><div>2.I executed it as: LD_PRELOAD=liblttng-ust-libc-wrapper.so ./executable</div><div>3. Then I followed commands create , capture the events. and destroyed it.</div><div>4. I used TraceCompass to analyze the trace but it won't show any calls to malloc or free.</div><div><br></div><div>Please help i want to trace the malloc(),free() calls in the application.</div><div>Corresponding to above steps I am inserting images as below:</div><div><div><img src="cid:ii_ka4uqh700" alt="1malloc_app.PNG" width="476" height="269"><br></div><div><img src="cid:ii_ka4uqh871" alt="2malloc_tp.PNG" width="476" height="263"><br></div><div><img src="cid:ii_ka4uqhal2" alt="3malloc-tp_header.PNG" width="476" height="259"><br></div><div><img src="cid:ii_ka4uqhbg3" alt="4.exectable.PNG" width="476" height="31"><br></div><div><img src="cid:ii_ka4uqhbu4" alt="5.trace_creation.PNG" width="476" height="214"><br></div></div><div><br></div><div>But trace was not showing the malloc call and free call event then alternatively i did the following: </div><div><br></div><div><img src="cid:ii_ka4utfnh5" alt="6.alternativeto5.PNG" width="476" height="82"><br></div><div><img src="cid:ii_ka4utfob6" alt="7.creation_trace.PNG" width="476" height="108"><br></div><div><img src="cid:ii_ka4utfp17" alt="8.tracecompass.PNG" width="476" height="244"><br></div><div> <br></div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Thanking You!</div><div><br></div><div>Regards,<br></div><div>Abhinav<br></div><div>9482866639</div><div><br></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Thanking You!</div><div><br></div><div>Regards,<br></div><div>Abhinav<br></div><div><br></div></div></div></div></div></div></div>