On Thu, Dec 01, 2005 at 03:41:50PM -0800, Stephane Eranian wrote: > On Wed, Nov 30, 2005 at 05:23:15PM +0100, Andi Kleen wrote: > > > to count elapsed cycles while executing a ring 0 and ring 3. The watchdog > > > works by polling on the counter and after a certain delta is reached it > > > triggers an NMI interrupt which, in turn, causes a kernel crash and the > > > (bug) report. Is that the correct behavior? > > > > The watchdog is driven by the performance counter (this means > > it has varying frequency, but that's not a big issue for the watchdog) > > > > It underflows every second in the fastest case or very slowly > > (if the machine is idle). Every time it underflows it checks if > > the per CPU timer has been ticking, and if it hasn't for some time > > it triggers an oops. > > How is the checking for underflows done? Polling? There is a bit in the perfctr MSRs to cause an interrupt if it underflows. That is programmed to be an NMI. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Stephane Eranian <[email protected]>
- Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- References:
- Re: Enabling RDPMC in user space by default
- From: "Ray Bryant" <[email protected]>
- Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Stephane Eranian <[email protected]>
- Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Andi Kleen <[email protected]>
- Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Nicholas Miell <[email protected]>
- Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Andi Kleen <[email protected]>
- Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Stephane Eranian <[email protected]>
- Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Andi Kleen <[email protected]>
- Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Stephane Eranian <[email protected]>
- Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Andi Kleen <[email protected]>
- Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- From: Stephane Eranian <[email protected]>
- Re: Enabling RDPMC in user space by default
- Prev by Date: Re: Gene's pcHDTV 3000 analog problem
- Next by Date: Re: Gene's pcHDTV 3000 analog problem
- Previous by thread: Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- Next by thread: Re: [discuss] Re: [Perfctr-devel] Re: Enabling RDPMC in user space by default
- Index(es):