Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jul 2003 13:59:42 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern subr_trap.c
Message-ID:  <XFMail.20030731135942.jhb@FreeBSD.org>
In-Reply-To: <20030731170953.U5558@gamplex.bde.org>

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

On 31-Jul-2003 Bruce Evans wrote:
> On Wed, 30 Jul 2003, Peter Wemm wrote:
> 
>> peter       2003/07/30 18:36:24 PDT
>>
>>   FreeBSD src repository
>>
>>   Modified files:
>>     sys/kern             subr_trap.c
>>   Log:
>>   When ktracing context switches, make sure we record involuntary switches.
>>   Otherwise, when we get a evicted from the cpu, there is no record of it.
>>   This is not a default ktrace flag.
> 
> This seems to be missing for many other calls to mi_switch().  Perhaps
> mi_switch() itself should handle it.

Unfortuantely it can't since ktrace uses a mutex internally and ktrcsw()
can't be called with sched_lock held.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030731135942.jhb>