<br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 10:13 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;">
<div class="im">On Tue, Sep 20, 2011 at 10:05 AM, rohan puri <<a href="mailto:rohan.puri15@gmail.com">rohan.puri15@gmail.com</a>> wrote:<br>
><br>
><br>
> On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal <<a href="mailto:helloin.amit@gmail.com">helloin.amit@gmail.com</a>> wrote:<br>
>><br>
>> 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<br>
>> 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>
</div><div class="im">> For this you can make use of ftrace.<br>
><br>
> Refer link <a href="http://www.mjmwired.net/kernel/Documentation/trace/ftrace.txt" target="_blank">http://www.mjmwired.net/kernel/Documentation/trace/ftrace.txt</a><br>
><br>
> Regards,<br>
> Rohan<br>
><br>
<br>
</div>Tools like ftrace are not available to me in my embedded arm target .<br>
So i want to use kernel apis to deal with time measurement in<br>
interrupt context .<br>
<br>
Regards<br>
<font color="#888888">Amit Nagal<br>
</font></blockquote></div>Hi Amit,<br><br>I think ftrace can be enabled and used on arm arch.<br>Please Refer <a href="http://www.omappedia.org/wiki/Installing_and_Using_Ftrace">http://www.omappedia.org/wiki/Installing_and_Using_Ftrace</a><br>
<br>Regards,<br>Rohan<br>