cvs commit: src/sys/kern subr_trap.c
jhb at FreeBSD.org
Thu Jul 31 10:59:28 PDT 2003
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
>> 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 at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
More information about the cvs-all