Subject: Re: Kernel profiling - solved? (or where, oh where has nullproc gone?)
To: Michael L. Hitch <osymh@terra.oscs.montana.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 02/28/1999 14:35:49
On Sun, 28 Feb 1999 13:36:42 -0700 (MST) 
 "Michael L. Hitch" <osymh@terra.oscs.montana.edu> wrote:

 >   Aha!  I now see where the mips went wrong.  When the mips was switched
 > to use the proc0 stack, it was *resetting* the stack pointer, which then
 > started scribbling over the current stack frames in use by uvm_scheduler.
 > It should have been using the *current* stack pointer for proc0.  Doing
 > this now allows a profiled kernel to work.

Ah, I see.  Yes.  The Alpha gets this right "automagically" with the swpctx
call.

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>