I would much rather see this in generic code, somewhere aroundYes, moving to generic code is better. Thanks for the suggestion! I will do that.
__perf_event_overflow() I suppose. That would retain proper accounting
for the interrupt rate etc..
Also it would work for all architectures. Because I'm thinking more than
just x86 will suffer from skid.
If you're really worried, I suppose you can put it behind a PERF_PMU_CAPI guess what you are suggesting is to add checking like:
flag or something.