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/mips64 | |
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/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c index e72715c71f1..66725092ad3 100644 --- a/sys/arch/mips64/mips64/trap.c +++ b/sys/arch/mips64/mips64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.80 2012/04/10 15:59:21 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.81 2012/04/11 14:38:55 mikeb Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -852,7 +852,7 @@ child_return(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(); |