Sounds like a good candidate for the first non-x86 port of oprofile[1].
Write the kernel part, and all the nice userspace tools come for free.
There are also a few other perfctr abstraction projects, which are
linked off the oprofile pages somewhere iirc.
-- | Dave Jones. http://www.codemonkey.org.uk | SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/