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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Richter
Date: Friday, August 13, 2010 - 1:22 am

On 13.08.10 00:37:48, Frederic Weisbecker wrote:


We cannot assume that all cpus have the same behavior here. Imagine a
cpu that handles 2 counters and *does not* trigger a back-to-back
nmi. With flags only implemented, the next unknown nmi will be dropped
anyway, no matter when it fires. We have to check the nmi sequence.

The next thing you have to be aware is, a registered nmi handler is
not called with every nmi. If there was another nmi source and a
handler with higher priority was returning a stop, when all other
subsequent handlers are not called. Esp. 'unknown nmi' is called only
in rare cases. So, a handler might not get noticed of an nmi. This
means, if a handler gets called a 2nd time, it must not necessarily
the next (2nd) nmi.

-Robert

-- 
Advanced Micro Devices, Inc.
Operating System Research Center

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
A question of perf NMI handler, Lin Ming, (Wed Aug 4, 2:21 am)
Re: A question of perf NMI handler, Peter Zijlstra, (Wed Aug 4, 2:50 am)
Re: A question of perf NMI handler, Robert Richter, (Wed Aug 4, 3:01 am)
Re: A question of perf NMI handler, Peter Zijlstra, (Wed Aug 4, 3:24 am)
Re: A question of perf NMI handler, Robert Richter, (Wed Aug 4, 3:29 am)
Re: A question of perf NMI handler, Don Zickus, (Wed Aug 4, 6:54 am)
Re: A question of perf NMI handler, Don Zickus, (Wed Aug 4, 7:00 am)
Re: A question of perf NMI handler, Peter Zijlstra, (Wed Aug 4, 7:11 am)
Re: A question of perf NMI handler, Don Zickus, (Wed Aug 4, 7:52 am)
Re: A question of perf NMI handler, Peter Zijlstra, (Wed Aug 4, 8:02 am)
Re: A question of perf NMI handler, Cyrill Gorcunov, (Wed Aug 4, 8:18 am)
Re: A question of perf NMI handler, Don Zickus, (Wed Aug 4, 8:45 am)
Re: A question of perf NMI handler, Don Zickus, (Wed Aug 4, 8:50 am)
Re: A question of perf NMI handler, Cyrill Gorcunov, (Wed Aug 4, 9:10 am)
Re: A question of perf NMI handler, Don Zickus, (Wed Aug 4, 9:20 am)
Re: A question of perf NMI handler, Cyrill Gorcunov, (Wed Aug 4, 9:39 am)
Re: A question of perf NMI handler, Robert Richter, (Wed Aug 4, 11:48 am)
Re: A question of perf NMI handler, Andi Kleen, (Wed Aug 4, 12:22 pm)
Re: A question of perf NMI handler, Cyrill Gorcunov, (Wed Aug 4, 12:26 pm)
Re: A question of perf NMI handler, Robert Richter, (Thu Aug 5, 11:52 pm)
Re: A question of perf NMI handler, Don Zickus, (Fri Aug 6, 7:21 am)
Re: A question of perf NMI handler, Andi Kleen, (Fri Aug 6, 8:35 am)
Re: A question of perf NMI handler, Andi Kleen, (Fri Aug 6, 8:37 am)
Re: [PATCH] perf, x86: try to handle unknown nmis with run ..., Frederic Weisbecker, (Tue Aug 10, 7:44 pm)
Re: [PATCH -v2] perf, x86: try to handle unknown nmis with ..., Frederic Weisbecker, (Thu Aug 12, 9:25 pm)
Re: [PATCH] perf, x86: try to handle unknown nmis with run ..., Frederic Weisbecker, (Thu Aug 12, 9:37 pm)
Re: [PATCH] perf, x86: try to handle unknown nmis with run ..., Robert Richter, (Fri Aug 13, 1:22 am)
Re: [PATCH] perf, x86: try to handle unknown nmis with run ..., Frederic Weisbecker, (Fri Aug 13, 6:28 pm)
[tip:perf/urgent] perf, x86: Try to handle unknown nmis wi ..., tip-bot for Robert R ..., (Fri Aug 20, 7:17 am)
[tip:perf/urgent] perf, x86: Fix handle_irq return values, tip-bot for Peter Zi ..., (Fri Aug 20, 7:17 am)