On Thu, Sep 30, 2010 at 05:09:14PM +0800, Deng-Cheng Zhu wrote: > o Remove function code from pmu.h, keep them duplicated in Oprofile and > Perf-events. The duplication would be resolved by the idea of using > Perf-events as the Oprofile backend. I'll submit a separate patchset to > do this after this one gets merged. I dunno if you're aware of this but I've been working on a perf backend for OProfile. Currently only ARM and SH are making use of it, http://marc.info/?l=linux-arm-kernel&m=128435815708349&w=2 It would be trivial to add MIPS support but I suspect that would require you to rework this patch series. However, what we should try to avoid is duplicating any effort of getting perf and OProfile working together. Would you mind waiting for my patch series to be merged before starting work on your perf-OProfile patchset for MIPS? Alternatively, you can base your work on, git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/sh-2.6.git perf-oprofile