Date: Wed, 11 Sep 2002 14:00:56 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_ktrace.c Message-ID: <200209112100.g8BL0uQY050744@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2002/09/11 14:00:56 PDT
Modified files:
sys/kern kern_ktrace.c
Log:
- Change utrace ktrace events to malloc the work buffer before getting a
request structure.
- Re-optimize the case of utrace being disabled by doing an explicit
KTRPOINT check instead of relying on the one in ktr_getrequest() so that
we don't waste time on a malloc in the non-tracing case.
- Change utrace() to return an error if the copyin() fails. Before it
would just ignore the request but still return success. This last is
a change in behavior and can be backed out if necessary.
Revision Changes Path
1.77 +10 -9 src/sys/kern/kern_ktrace.c
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?200209112100.g8BL0uQY050744>
