diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-04-11 14:38:56 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-04-11 14:38:56 +0000 |
commit | aa8bb5b66ca2ecf4eda492f90c5a223f5b046f8e (patch) | |
tree | 31ad4ffde1a8118fb37d026089db55643046ed32 /sys/arch/amd64 | |
parent | 6eacadb45a40963eac56a6cb8615584d3e9975ff (diff) |
The first ktrace record for a newly spawned thread is a return
from a fork syscall done by the parent. Use __tfork, not rfork
here to match the ktrace records for the parent (CALL __tfork,
RET __tfork). ok guenther
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/trap.c b/sys/arch/amd64/amd64/trap.c index 0d3bf9a5df5..85c969834db 100644 --- a/sys/arch/amd64/amd64/trap.c +++ b/sys/arch/amd64/amd64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.27 2011/11/16 20:50:18 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.28 2012/04/11 14:38:55 mikeb Exp $ */ /* $NetBSD: trap.c,v 1.2 2003/05/04 23:51:56 fvdl Exp $ */ /*- @@ -639,7 +639,7 @@ child_return(void *arg) if (KTRPOINT(p, KTR_SYSRET)) { KERNEL_LOCK(); ktrsysret(p, - (p->p_flag & P_THREAD) ? SYS_rfork : + (p->p_flag & P_THREAD) ? SYS___tfork : (p->p_p->ps_flags & PS_PPWAIT) ? SYS_vfork : SYS_fork, 0, 0); KERNEL_UNLOCK(); |