[PATCH] perf, x86: try to handle unknown nmis with running perfctrs

From: Robert Richter
Date: Mon Aug 09 2010 - 15:53:03 EST


On 06.08.10 10:21:31, Don Zickus wrote:
> On Fri, Aug 06, 2010 at 08:52:03AM +0200, Robert Richter wrote:

> > I was playing around with it yesterday trying to fix this. My idea is
> > to skip an unkown nmi if the privious nmi was a *handled* perfctr
>
> You might want to add a little more logic that says *handled* _and_ had
> more than one perfctr trigger. Most of the time only one perfctr is
> probably triggering, so you might be eating unknown_nmi's needlessly.
>
> Just a thought.

Yes, that's true. It could be implemented on top of the patch below.

>
> > nmi. I will probably post an rfc patch early next week.

Here it comes: