Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 #ifdef KTRACE some stuff.
details: https://anonhg.NetBSD.org/src/rev/b4671416c5e8
branches: trunk
changeset: 500435:b4671416c5e8
user: mycroft <mycroft%NetBSD.org@localhost>
date: Tue Dec 12 03:33:16 2000 +0000
description:
#ifdef KTRACE some stuff.
diffstat:
sys/arch/i386/i386/ibcs2_syscall.c | 4 +++-
sys/arch/i386/i386/linux_syscall.c | 4 +++-
sys/arch/i386/i386/svr4_syscall.c | 4 +++-
sys/arch/i386/i386/syscall.c | 4 +++-
4 files changed, 12 insertions(+), 4 deletions(-)
diffs (84 lines):
diff -r 12075bd58fb8 -r b4671416c5e8 sys/arch/i386/i386/ibcs2_syscall.c
--- a/sys/arch/i386/i386/ibcs2_syscall.c Tue Dec 12 01:32:34 2000 +0000
+++ b/sys/arch/i386/i386/ibcs2_syscall.c Tue Dec 12 03:33:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_syscall.c,v 1.10 2000/12/11 17:36:03 mycroft Exp $ */
+/* $NetBSD: ibcs2_syscall.c,v 1.11 2000/12/12 03:33:16 mycroft Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -77,9 +77,11 @@
struct proc *p;
{
+#ifdef KTRACE
if (p->p_traceflag & (KTRFAC_SYSCALL | KTRFAC_SYSRET))
p->p_md.md_syscall = ibcs2_syscall_fancy;
else
+#endif
p->p_md.md_syscall = ibcs2_syscall_plain;
}
diff -r 12075bd58fb8 -r b4671416c5e8 sys/arch/i386/i386/linux_syscall.c
--- a/sys/arch/i386/i386/linux_syscall.c Tue Dec 12 01:32:34 2000 +0000
+++ b/sys/arch/i386/i386/linux_syscall.c Tue Dec 12 03:33:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.c,v 1.10 2000/12/11 17:36:03 mycroft Exp $ */
+/* $NetBSD: linux_syscall.c,v 1.11 2000/12/12 03:33:16 mycroft Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -77,9 +77,11 @@
struct proc *p;
{
+#ifdef KTRACE
if (p->p_traceflag & (KTRFAC_SYSCALL | KTRFAC_SYSRET))
p->p_md.md_syscall = linux_syscall_fancy;
else
+#endif
p->p_md.md_syscall = linux_syscall_plain;
}
diff -r 12075bd58fb8 -r b4671416c5e8 sys/arch/i386/i386/svr4_syscall.c
--- a/sys/arch/i386/i386/svr4_syscall.c Tue Dec 12 01:32:34 2000 +0000
+++ b/sys/arch/i386/i386/svr4_syscall.c Tue Dec 12 03:33:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_syscall.c,v 1.9 2000/12/11 17:36:03 mycroft Exp $ */
+/* $NetBSD: svr4_syscall.c,v 1.10 2000/12/12 03:33:16 mycroft Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -76,9 +76,11 @@
struct proc *p;
{
+#ifdef KTRACE
if (p->p_traceflag & (KTRFAC_SYSCALL | KTRFAC_SYSRET))
p->p_md.md_syscall = svr4_syscall_fancy;
else
+#endif
p->p_md.md_syscall = svr4_syscall_plain;
}
diff -r 12075bd58fb8 -r b4671416c5e8 sys/arch/i386/i386/syscall.c
--- a/sys/arch/i386/i386/syscall.c Tue Dec 12 01:32:34 2000 +0000
+++ b/sys/arch/i386/i386/syscall.c Tue Dec 12 03:33:16 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.4 2000/12/11 17:36:03 mycroft Exp $ */
+/* $NetBSD: syscall.c,v 1.5 2000/12/12 03:33:16 mycroft Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -73,9 +73,11 @@
struct proc *p;
{
+#ifdef KTRACE
if (p->p_traceflag & (KTRFAC_SYSCALL | KTRFAC_SYSRET))
p->p_md.md_syscall = syscall_fancy;
else
+#endif
p->p_md.md_syscall = syscall_plain;
}
Home |
Main Index |
Thread Index |
Old Index