From aa8bb5b66ca2ecf4eda492f90c5a223f5b046f8e Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Wed, 11 Apr 2012 14:38:56 +0000 Subject: 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 --- sys/arch/arm/arm/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/arm') diff --git a/sys/arch/arm/arm/syscall.c b/sys/arch/arm/arm/syscall.c index 3b242d13dec..655139c521a 100644 --- a/sys/arch/arm/arm/syscall.c +++ b/sys/arch/arm/arm/syscall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.c,v 1.13 2011/09/20 22:02:11 miod Exp $ */ +/* $OpenBSD: syscall.c,v 1.14 2012/04/11 14:38:55 mikeb Exp $ */ /* $NetBSD: syscall.c,v 1.24 2003/11/14 19:03:17 scw Exp $ */ /*- @@ -217,7 +217,7 @@ child_return(arg) #ifdef KTRACE if (KTRPOINT(p, KTR_SYSRET)) { 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); } -- cgit v1.2.3