Thread (7 messages) 7 messages, 4 authors, 2011-09-20

profiling functions called in interrupt context

From: rohan puri <hidden>
Date: 2011-09-20 04:35:32

On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal [off-list ref] wrote:
Hi ,

i want to measure time spend in a callback function called from
interrupt context .
since the time spend will be in us / ns , what kernel apis can i use
to measure it ?

also since i want to use it in interrupt context  , kernel time
measurement apis should not sleep .
i am using embedded arm target , and tools like OProfile  are not available
.

can i be guided which  kernel time measurement apis shall i use to
measure time in a interrupt callback ?

Regards
Amit Nagal

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Amit,

For this you can make use of ftrace.

Refer link http://www.mjmwired.net/kernel/Documentation/trace/ftrace.txt

Regards,
Rohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110920/45732d38/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help