<br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal <span dir="ltr"><<a href="mailto:helloin.amit@gmail.com">helloin.amit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi ,<br>
<br>
i want to measure time spend in a callback function called from<br>
interrupt context .<br>
since the time spend will be in us / ns , what kernel apis can i use<br>
to measure it ?<br>
<br>
also since i want to use it in interrupt context , kernel time<br>
measurement apis should not sleep .<br>
i am using embedded arm target , and tools like OProfile are not available .<br>
<br>
can i be guided which kernel time measurement apis shall i use to<br>
measure time in a interrupt callback ?<br>
<br>
Regards<br>
Amit Nagal<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br></blockquote><div><br>Hi Amit,<br><br>For this you can make use of ftrace.<br>
<br>Refer link <a href="http://www.mjmwired.net/kernel/Documentation/trace/ftrace.txt">http://www.mjmwired.net/kernel/Documentation/trace/ftrace.txt</a><br><br>Regards,<br>Rohan <br></div></div><br>