Re: [PATCH 4/6 -tip] perf_counter: Add Generalized Hardwareinterrupt support for AMD

From: Ingo Molnar
Date: Wed Jul 01 2009 - 07:24:58 EST



* Jaswinder Singh Rajput <jaswinder@xxxxxxxxxx> wrote:

>
> $ ./perf stat -e interrupts -e masked -e int-pending-mask-cycles -- ls -lR /usr/include/ > /dev/null
>
> Performance counter stats for 'ls -lR /usr/include/':
>
> 377 interrupts
> 53429936 int-mask-cycles
> 1119 int-pending-mask-cycles
>
> 0.371457539 seconds time elapsed

Agreed, this is another useful generalization - and the 'cycles
pending' metrics are not retrievable via any software means.

We could and should probably add a software counter for hardirqs as
wel. That would allow the vector/irqnr information to be passed in,
and it would allow architectures without irq metrics in the PMU to
have this counter too.

This way we could profile based on a specific interrupt source only
- say based on the networking card.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/