cvs commit: src/sys/kern kern_ktrace.c src/sys/sys ktrace.h
Robert Watson
rwatson at FreeBSD.org
Tue Nov 1 04:36:20 PST 2005
rwatson 2005-11-01 12:36:19 UTC
FreeBSD src repository
Modified files:
sys/kern kern_ktrace.c
sys/sys ktrace.h
Log:
Replace ktr_buffer pointer in struct ktr_header with a ktr_unused
intptr_t. The buffer length needs to be written to disk as part
of the trace log, but the kernel pointer for the buffer does not.
Add a new ktr_buffer pointer to the kernel-only ktrace request
structure to hold that pointer. This frees up an integer in the
ktrace record format that can be used to hold the threadid,
although older ktrace files will have a garbage ktr_buffer field
(or more accurately, a kernel pointer value).
MFC after: 2 weeks
Space requested by: davidxu
Revision Changes Path
1.102 +11 -9 src/sys/kern/kern_ktrace.c
1.30 +1 -1 src/sys/sys/ktrace.h
More information about the cvs-src
mailing list