Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2003 11:35:23 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, "Tim J. Robbins" <tjr@FreeBSD.org>
Subject:   RE: cvs commit: src/sys/kern subr_trap.c
Message-ID:  <Pine.BSF.4.21.0301311134300.45015-100000@InterJet.elischer.org>
In-Reply-To: <XFMail.20030131133123.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Fri, 31 Jan 2003, John Baldwin wrote:

> 
> On 31-Jan-2003 Julian Elischer wrote:
> > 
> > do you know of any other problems?
> 
> thread_statclock() has a similar problem as others have noticed:
> 
> int
> thread_statclock(int user)
> {
>         struct thread *td = curthread;
> 
>         ...
>                 if (td->td_mailbox != NULL)
>                         td->td_usticks += ticks;
> }
> 

luckily this is not going to effect anyone at the moment because 
thread_statclock is only called for KSE processes but I'll go beat on
it now..


> Prior to this commit, the 'ticks' variable was an argument to this
> function, now it is using the global variable instead.  This is
> clearly wrong and along with the other breakages this commit has
> introduced so far demonstrate a severe lack of testing or review
> in this commit.  We want to make RELENG_5 more stable as we approach
> 5.1 not less if possible.  There is nothing preventing you from
> doing development work in side trees and only committing it when it
> is tested and has been properly reviewed.  Please back these changes
> out and work on them locally until you have tested them and fully
> reviewed them.
> 
> > 
> > On Fri, 31 Jan 2003, John Baldwin wrote:
> > 
> >> 
> >> On 31-Jan-2003 Tim J. Robbins wrote:
> >> > tjr         2003/01/31 03:22:32 PST
> >> > 
> >> >   Modified files:
> >> >     sys/kern             subr_trap.c 
> >> >   Log:
> >> >   Use a local variable to store the number of ticks that elapsed in
> >> >   kernel mode instead of (unintentionally) using the global `ticks'.
> >> >   This error completely broke profiling.
> >> 
> >> Perhaps we should really back out the 'upcall' change until the patch
> >> has has some more review and bugs like this have been fixed.
> >> 
> >> -- 
> >> 
> >> John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
> >> "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
> >> 
> > 
> 
> -- 
> 
> John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0301311134300.45015-100000>