Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trace interruption on a linux system

The command strace is mainly for tracing system call. Does someone know the equivalent for tracing interruption like IRQ14...

Thanks

like image 761
mathk Avatar asked Dec 07 '22 03:12

mathk


2 Answers

strace is only useful for tracing userspace activity. In order to trace interrupts properly you need an in-kernel tracing solution. Check out the following. ftrace is probably your best bet. Note, however, that these have a fairly high learning curve, but that is expected.

  • http://lwn.net/Articles/370423/

  • http://www.mail-archive.com/[email protected]/msg02422.html

  • http://lttng.org/

  • SystemTap is also a good choice.

like image 95
Noah Watkins Avatar answered Dec 11 '22 11:12

Noah Watkins


I believe you are looking for SystemTap. You may need to patch your kernel to allow SystemTap to extract the information you want, though. It's kind of a mess.

like image 23
zwol Avatar answered Dec 11 '22 11:12

zwol