views:

143

answers:

4

Hi,

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

Thanks

+2  A: 

You can keep track of the number of interrupts through /proc/interrupts. Without specific kernel hacking that's probably the best you can get from userland. What more would you want to trace?

mvds
I would like to know all interrupt that occur during an execution
mathk
an execution of who? please be a little more specific.
mvds
like the stract.`$ strace ls`
mathk
You said that, yes. Strace shows system calls: things a program needs to be done by the kernel, such as I/O. Now, the question is: what are you looking for? Interrupts are hardware signals, and you can at the very least count them. That's what you can use `/proc/interrupts` for. What do you want to see, other than that?
mvds
+3  A: 

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.

Zack
+2  A: 

Take a look at oprofile.

Nikolai N Fetissov
+2  A: 

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.

Noah Watkins