Re: Anyone tracing interrupt enable/disable?

Mathieu Desnoyers <[email protected]> Fri, 27 Jul 2007 17:42:50 -0400
Newsgroups gmane.linux.kernel.tracing
Message-ID <20070727214250.GA12179@Krystal>
* VomLehn, David ([email protected]) wrote:
> I'm pretty new to LTT, so please forgive what may be an ignorant
> question, but is anyone tracing interrupt enable/disable events, such as
> local_irq_enable, local_irq_restore, etc.? This would seem to be very
> useful in certain circumstances, but might be tricky/performance
> critical enough to require a specialized function or set of functions.
> 

Hi,

Just enable the "Locking" facility in the kernel menuconfig,
Instrumentation section. Make sure that after issuing lttctl -R to stop
tracing, you check the dmesg output for events lost. Because of its very
high event throughput, you may need to increase buffer size (see lttctl
-h to see how).

The current implementation uses the kernel/lockdep.c irq tracer, which
might not be available to all platforms. (tested on x86 and x86_64)

Also, be aware that on x86_64, I have seen _very_ high irq
enable/disable event rate due to idle=poll kernel config option, because
its idle loop basically enable/disable interrupts all the time.

Mathieu

> --
> David VomLehn, Staff O/S Software Engineer
> Scientific Atlanta, A Cisco Company
> 10590 N. Tantau Avenue, Cupertino, CA 95014
> [email protected] <mailto:[email protected]>
> voice: 408-777-5052 fax: 408-777-0176
> 
> 
> 
> 
> 
> 
>      - - - - - Appended by Scientific Atlanta, a Cisco company - - - - - 
> This e-mail and any attachments may contain information which is confidential,
> proprietary, privileged or otherwise protected by law. The information is solely
> intended for the named addressee (or a person responsible for delivering it to
> the addressee). If you are not the intended recipient of this message, you are
> not authorized to read, print, retain, copy or disseminate this message or any
> part of it. If you have received this e-mail in error, please notify the sender
> immediately by return e-mail and delete it from your computer.
> _______________________________________________
> Ltt-dev mailing list
> [email protected]
> http://listserv.shafik.org/mailman/listinfo/ltt-dev


-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68