aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_ktrace.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2007-08-29 21:17:11 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2007-08-29 21:17:11 +0000
commit57b7fe337e89dfff89a880012eadb58a9745f81e (patch)
tree8e2283c9916f79523b5c80d25aa0c699e1f84581 /sys/kern/kern_ktrace.c
parenteb0fa74e92fd57e58208ab3e98f25a85e4a49012 (diff)
downloadsrc-57b7fe337e89dfff89a880012eadb58a9745f81e.tar.gz
src-57b7fe337e89dfff89a880012eadb58a9745f81e.zip
Partially revert the previous change. I failed to notice that where
ktruserret() is invoked, an unlocked check of the per-process queue is performed inline, thus, we don't lock the ktrace_sx on every userret(). Pointy hat to: jhb Approved by: re (kensmith) Pointy hat recovered from: rwatson
Notes
Notes: svn path=/head/; revision=172011
Diffstat (limited to 'sys/kern/kern_ktrace.c')
-rw-r--r--sys/kern/kern_ktrace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
index 0ca4a3028fd5..2b7ee33a9cd7 100644
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -444,8 +444,6 @@ void
ktruserret(struct thread *td)
{
- if (STAILQ_EMPTY(&td->td_proc->p_ktr))
- return;
ktrace_enter(td);
sx_xlock(&ktrace_sx);
ktr_drain(td);