RFC: Performance Monitor Counters device

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Sep 12 19:52:17 EST 2002


>For 2), you need the same as for 1), plus have the kernel
>generate a signal on every Nth occurence of some event.  The
>PowerPC generates an exception for that, so this is not all
>that hard either.  Maybe the kernel can communicate which PMC
>set off the signal; if not, it's trivial for the userland to
>figure that out from the current counters.

Hrm... you should check the various CPU erratas, I think
the perf. counter exception suffers from the same bugs
the thermal exceptions has regarding clashing with DEC
and thus losing exception context information on some
G4s. If this is the case, that would basically prevent
using it.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list