On Fri, Sep 28, 2012 at 10:54 AM, Peter Zijlstra <a.p.zijls...@chello.nl> wrote: > On Thu, 2012-09-27 at 21:31 -0700, Andi Kleen wrote: >> Left over are the general registers. We need them for some analysis >> too: for example for loop trip count and string instruction trip >> count sampling. >> >> There isn't really any good way to generalize general registers. >> Obviously they are different for every architecture. > > You missed the whole PERF_SAMPLE_REGS_USER stuff?
I will soon post a patchset to expose PEBS state. The patch set piggybacks on the infrastructure used for USER_REGS and introduce a new sample_intr_regs bitmask. That would be a more generic way of exposing the other fields of the PEBS record. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/