Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Pass the system call table to trace_enter() and ktrsys()...
details: https://anonhg.NetBSD.org/src/rev/fa03c61e1c30
branches: trunk
changeset: 540685:fa03c61e1c30
user: manu <manu%NetBSD.org@localhost>
date: Sat Dec 21 16:23:56 2002 +0000
description:
Pass the system call table to trace_enter() and ktrsys() so that it is
possible to use alternate system call tables. This is usefull for
displaying correctly the arguments in Mach binaries traces.
If NULL is given, then the regular systam call table for the process is used.
diffstat:
sys/arch/alpha/alpha/linux_syscall.c | 6 +++---
sys/arch/alpha/alpha/osf1_syscall.c | 6 +++---
sys/arch/alpha/alpha/syscall.c | 6 +++---
sys/arch/arm/arm/linux_syscall.c | 6 +++---
sys/arch/arm/arm/syscall.c | 6 +++---
sys/arch/hppa/hppa/trap.c | 4 ++--
sys/arch/i386/i386/freebsd_syscall.c | 6 +++---
sys/arch/i386/i386/ibcs2_syscall.c | 6 +++---
sys/arch/i386/i386/linux_syscall.c | 6 +++---
sys/arch/i386/i386/mach_syscall.c | 7 ++++---
sys/arch/i386/i386/svr4_syscall.c | 6 +++---
sys/arch/i386/i386/syscall.c | 6 +++---
sys/arch/m68k/m68k/linux_syscall.c | 4 ++--
sys/arch/m68k/m68k/m68k_syscall.c | 4 ++--
sys/arch/m68k/m68k/sunos_syscall.c | 4 ++--
sys/arch/mips/mips/syscall.c | 6 +++---
sys/arch/pc532/pc532/trap.c | 4 ++--
sys/arch/powerpc/powerpc/syscall.c | 7 ++++---
sys/arch/sh3/sh3/exception.c | 4 ++--
sys/arch/sh5/sh5/syscall.c | 4 ++--
sys/arch/sparc/sparc/trap.c | 4 ++--
sys/arch/vax/vax/trap.c | 4 ++--
sys/arch/x86_64/x86_64/netbsd32_syscall.c | 4 ++--
sys/arch/x86_64/x86_64/syscall.c | 4 ++--
sys/kern/kern_ktrace.c | 12 ++++++++----
sys/kern/kern_subr.c | 15 ++++++++++-----
sys/sys/ktrace.h | 5 +++--
sys/sys/systm.h | 4 ++--
28 files changed, 86 insertions(+), 74 deletions(-)
diffs (truncated from 674 to 300 lines):
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/alpha/alpha/linux_syscall.c
--- a/sys/arch/alpha/alpha/linux_syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/alpha/alpha/linux_syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.c,v 1.8 2002/11/15 20:06:00 manu Exp $ */
+/* $NetBSD: linux_syscall.c,v 1.9 2002/12/21 16:23:57 manu Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -102,7 +102,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.8 2002/11/15 20:06:00 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.9 2002/12/21 16:23:57 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -316,7 +316,7 @@
args += hidden;
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/alpha/alpha/osf1_syscall.c
--- a/sys/arch/alpha/alpha/osf1_syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/alpha/alpha/osf1_syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_syscall.c,v 1.10 2002/11/15 20:06:00 manu Exp $ */
+/* $NetBSD: osf1_syscall.c,v 1.11 2002/12/21 16:23:57 manu Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -102,7 +102,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: osf1_syscall.c,v 1.10 2002/11/15 20:06:00 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: osf1_syscall.c,v 1.11 2002/12/21 16:23:57 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -311,7 +311,7 @@
}
args += hidden;
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/alpha/alpha/syscall.c
--- a/sys/arch/alpha/alpha/syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/alpha/alpha/syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.5 2002/11/15 20:06:01 manu Exp $ */
+/* $NetBSD: syscall.c,v 1.6 2002/12/21 16:23:57 manu Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.5 2002/11/15 20:06:01 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.6 2002/12/21 16:23:57 manu Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -312,7 +312,7 @@
}
args += hidden;
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/arm/arm/linux_syscall.c
--- a/sys/arch/arm/arm/linux_syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/arm/arm/linux_syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.c,v 1.6 2002/11/15 20:06:01 manu Exp $ */
+/* $NetBSD: linux_syscall.c,v 1.7 2002/12/21 16:23:57 manu Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.6 2002/11/15 20:06:01 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.7 2002/12/21 16:23:57 manu Exp $");
#include <sys/device.h>
#include <sys/errno.h>
@@ -132,7 +132,7 @@
callp = p->p_emul->e_sysent + code;
nargs = callp->sy_argsize / sizeof(register_t);
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/arm/arm/syscall.c
--- a/sys/arch/arm/arm/syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/arm/arm/syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.13 2002/11/16 07:40:38 uebayasi Exp $ */
+/* $NetBSD: syscall.c,v 1.14 2002/12/21 16:23:58 manu Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.13 2002/11/16 07:40:38 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.14 2002/12/21 16:23:58 manu Exp $");
#include <sys/device.h>
#include <sys/errno.h>
@@ -251,7 +251,7 @@
args = copyargs;
}
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/hppa/hppa/trap.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.5 2002/11/15 20:06:01 manu Exp $ */
+/* $NetBSD: trap.c,v 1.6 2002/12/21 16:23:58 manu Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -1065,7 +1065,7 @@
callp += code;
argsize = callp->sy_argsize;
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/i386/i386/freebsd_syscall.c
--- a/sys/arch/i386/i386/freebsd_syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/i386/i386/freebsd_syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: freebsd_syscall.c,v 1.10 2002/11/15 20:06:02 manu Exp $ */
+/* $NetBSD: freebsd_syscall.c,v 1.11 2002/12/21 16:23:56 manu Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_syscall.c,v 1.10 2002/11/15 20:06:02 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_syscall.c,v 1.11 2002/12/21 16:23:56 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_syscall_debug.h"
@@ -231,7 +231,7 @@
}
KERNEL_PROC_LOCK(p);
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/i386/i386/ibcs2_syscall.c
--- a/sys/arch/i386/i386/ibcs2_syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/i386/i386/ibcs2_syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_syscall.c,v 1.19 2002/11/15 20:06:02 manu Exp $ */
+/* $NetBSD: ibcs2_syscall.c,v 1.20 2002/12/21 16:23:56 manu Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_syscall.c,v 1.19 2002/11/15 20:06:02 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_syscall.c,v 1.20 2002/12/21 16:23:56 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_syscall_debug.h"
@@ -228,7 +228,7 @@
}
KERNEL_PROC_LOCK(p);
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/i386/i386/linux_syscall.c
--- a/sys/arch/i386/i386/linux_syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/i386/i386/linux_syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_syscall.c,v 1.22 2002/11/15 20:06:02 manu Exp $ */
+/* $NetBSD: linux_syscall.c,v 1.23 2002/12/21 16:23:56 manu Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.22 2002/11/15 20:06:02 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.23 2002/12/21 16:23:56 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_syscall_debug.h"
@@ -233,7 +233,7 @@
}
KERNEL_PROC_LOCK(p);
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/i386/i386/mach_syscall.c
--- a/sys/arch/i386/i386/mach_syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/i386/i386/mach_syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mach_syscall.c,v 1.5 2002/11/15 20:06:02 manu Exp $ */
+/* $NetBSD: mach_syscall.c,v 1.6 2002/12/21 16:23:56 manu Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_syscall.c,v 1.5 2002/11/15 20:06:02 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_syscall.c,v 1.6 2002/12/21 16:23:56 manu Exp $");
#include "opt_syscall_debug.h"
#include "opt_vm86.h"
@@ -246,7 +246,8 @@
goto bad;
}
- if ((error = trace_enter(p, code, realcode, args, rval)) != 0)
+ if ((error = trace_enter(p, code, realcode,
+ callp - code, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/i386/i386/svr4_syscall.c
--- a/sys/arch/i386/i386/svr4_syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/i386/i386/svr4_syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_syscall.c,v 1.18 2002/11/15 20:06:02 manu Exp $ */
+/* $NetBSD: svr4_syscall.c,v 1.19 2002/12/21 16:23:56 manu Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_syscall.c,v 1.18 2002/11/15 20:06:02 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_syscall.c,v 1.19 2002/12/21 16:23:56 manu Exp $");
#if defined(_KERNEL_OPT)
#include "opt_syscall_debug.h"
@@ -223,7 +223,7 @@
}
KERNEL_PROC_LOCK(p);
- if ((error = trace_enter(p, code, code, args, rval)) != 0)
+ if ((error = trace_enter(p, code, code, NULL, args, rval)) != 0)
goto bad;
rval[0] = 0;
diff -r cf3f26a9fc82 -r fa03c61e1c30 sys/arch/i386/i386/syscall.c
--- a/sys/arch/i386/i386/syscall.c Sat Dec 21 16:22:10 2002 +0000
+++ b/sys/arch/i386/i386/syscall.c Sat Dec 21 16:23:56 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.16 2002/12/14 14:40:36 fvdl Exp $ */
+/* $NetBSD: syscall.c,v 1.17 2002/12/21 16:23:56 manu Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
Home |
Main Index |
Thread Index |
Old Index