profiling functions called in interrupt context
From: Amit Nagal <hidden>
Date: 2011-09-20 04:43:04
On Tue, Sep 20, 2011 at 10:05 AM, rohan puri [off-list ref] wrote:
On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal [off-list ref] wrote:quoted
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 NagalFor this you can make use of ftrace. Refer link http://www.mjmwired.net/kernel/Documentation/trace/ftrace.txt Regards, Rohan
Tools like ftrace are not available to me in my embedded arm target . So i want to use kernel apis to deal with time measurement in interrupt context . Regards Amit Nagal