Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 04/19/2000 12:14:19
Module Name: syssrc
Committed By: thorpej
Date: Wed Apr 19 19:14:18 UTC 2000
Modified Files:
syssrc/sys/kern: kern_ktrace.c
Log Message:
- Allocate the ktrace operation header on the stack rather than using
MALLOC()/FREE().
- In ktrgenio():
- Don't allocate the entire size of the I/O for the temporary
buffer used to write the data to the trace file. Instead,
do it in page-sized chunks.
- As in uiomove(), preempt the process if we are hogging the CPU.
- If writing to the trace file errors, abort rather than continuing
to loop through the buffer.
From Artur Grabowski <art@stacken.kth.se>, with some additional cleanup
by me.
To generate a diff of this commit:
cvs rdiff -r1.38 -r1.39 syssrc/sys/kern/kern_ktrace.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.