Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch g/c obsolete vtrace(2) stuff
details: https://anonhg.NetBSD.org/src/rev/67a3d690f35c
branches: trunk
changeset: 500545:67a3d690f35c
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Wed Dec 13 18:13:05 2000 +0000
description:
g/c obsolete vtrace(2) stuff
diffstat:
sys/arch/amiga/amiga/sys_machdep.c | 60 +-------------------------------
sys/arch/atari/atari/sys_machdep.c | 60 +-------------------------------
sys/arch/hp300/hp300/sys_machdep.c | 61 +--------------------------------
sys/arch/luna68k/luna68k/sys_machdep.c | 63 +--------------------------------
sys/arch/mac68k/mac68k/sys_machdep.c | 61 +--------------------------------
sys/arch/mips/mips/sys_machdep.c | 62 +--------------------------------
sys/arch/mvme68k/mvme68k/sys_machdep.c | 61 +--------------------------------
sys/arch/news68k/news68k/sys_machdep.c | 61 +--------------------------------
sys/arch/next68k/next68k/sys_machdep.c | 61 +--------------------------------
sys/arch/pc532/pc532/sys_machdep.c | 60 +-------------------------------
sys/arch/sparc/sparc/sys_machdep.c | 60 +-------------------------------
sys/arch/sparc64/sparc64/sys_machdep.c | 60 +-------------------------------
sys/arch/sun3/sun3/sys_machdep.c | 62 +--------------------------------
sys/arch/x68k/x68k/sys_machdep.c | 61 +--------------------------------
14 files changed, 15 insertions(+), 838 deletions(-)
diffs (truncated from 1140 to 300 lines):
diff -r c1a45c41af03 -r 67a3d690f35c sys/arch/amiga/amiga/sys_machdep.c
--- a/sys/arch/amiga/amiga/sys_machdep.c Wed Dec 13 17:48:46 2000 +0000
+++ b/sys/arch/amiga/amiga/sys_machdep.c Wed Dec 13 18:13:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.28 2000/06/29 08:44:03 mrg Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.29 2000/12/13 18:13:05 jdolecek Exp $ */
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
@@ -44,7 +44,6 @@
#include <sys/uio.h>
#include <sys/kernel.h>
#include <sys/buf.h>
-#include <sys/trace.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
@@ -54,63 +53,6 @@
#include <machine/cpu.h>
#include <m68k/cacheops.h>
-#ifdef TRACE
-int nvualarm;
-
-sys_vtrace(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
-{
- register struct sys_vtrace_args /* {
- syscallarg(int) request;
- syscallarg(int) value;
- } */ *uap = v;
- int vdoualarm();
-
- switch (SCARG(uap, request)) {
-
- case VTR_DISABLE: /* disable a trace point */
- case VTR_ENABLE: /* enable a trace point */
- if (SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap, value)];
- traceflags[SCARG(uap, value)] = SCARG(uap, request);
- break;
-
- case VTR_VALUE: /* return a trace point setting */
- if (SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap, value)];
- break;
-
- case VTR_UALARM: /* set a real-time ualarm, less than 1 min */
- if (SCARG(uap, value) <= 0 || SCARG(uap, value) > 60 * hz ||
- nvualarm > 5)
- return (EINVAL);
- nvualarm++;
- timeout(vdoualarm, (caddr_t)p->p_pid, SCARG(uap, value));
- break;
-
- case VTR_STAMP:
- trace(TR_STAMP, SCARG(uap, value), p->p_pid);
- break;
- }
- return (0);
-}
-
-vdoualarm(arg)
- int arg;
-{
- register struct proc *p;
-
- p = pfind(arg);
- if (p)
- psignal(p, 16);
- nvualarm--;
-}
-#endif
-
/* XXX should be in an include file somewhere */
#define CC_PURGE 1
#define CC_FLUSH 2
diff -r c1a45c41af03 -r 67a3d690f35c sys/arch/atari/atari/sys_machdep.c
--- a/sys/arch/atari/atari/sys_machdep.c Wed Dec 13 17:48:46 2000 +0000
+++ b/sys/arch/atari/atari/sys_machdep.c Wed Dec 13 18:13:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.23 2000/06/29 08:28:23 mrg Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.24 2000/12/13 18:13:06 jdolecek Exp $ */
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
@@ -44,7 +44,6 @@
#include <sys/uio.h>
#include <sys/kernel.h>
#include <sys/buf.h>
-#include <sys/trace.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
@@ -54,63 +53,6 @@
#include <m68k/cpu.h>
#include <m68k/cacheops.h>
-#ifdef TRACE
-int nvualarm;
-
-sys_vtrace(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
-{
- register struct sys_vtrace_args /* {
- syscallarg(int) request;
- syscallarg(int) value;
- } */ *uap = v;
- int vdoualarm();
-
- switch(SCARG(uap, request)) {
-
- case VTR_DISABLE: /* disable a trace point */
- case VTR_ENABLE: /* enable a trace point */
- if(SCARG(uap, value) < 0 || SCARG(uap,value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap,value)];
- traceflags[SCARG(uap, value)] = SCARG(uap, request);
- break;
-
- case VTR_VALUE: /* return a trace point setting */
- if(SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap, value)];
- break;
-
- case VTR_UALARM: /* set a real-time ualarm, less than 1 min */
- if(SCARG(uap, value) <= 0 || SCARG(uap, value) > 60 * hz
- || nvualarm > 5)
- return (EINVAL);
- nvualarm++;
- timeout(vdoualarm, (caddr_t)p->p_pid, SCARG(uap, value));
- break;
-
- case VTR_STAMP:
- trace(TR_STAMP, SCARG(uap, value), p->p_pid);
- break;
- }
- return (0);
-}
-
-vdoualarm(arg)
- int arg;
-{
- register struct proc *p;
-
- p = pfind(arg);
- if (p)
- psignal(p, 16);
- nvualarm--;
-}
-#endif
-
#include <machine/cpu.h>
/* XXX should be in an include file somewhere */
diff -r c1a45c41af03 -r 67a3d690f35c sys/arch/hp300/hp300/sys_machdep.c
--- a/sys/arch/hp300/hp300/sys_machdep.c Wed Dec 13 17:48:46 2000 +0000
+++ b/sys/arch/hp300/hp300/sys_machdep.c Wed Dec 13 18:13:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.29 2000/06/29 08:23:03 mrg Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.30 2000/12/13 18:13:07 jdolecek Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -48,71 +48,12 @@
#include <sys/uio.h>
#include <sys/kernel.h>
#include <sys/buf.h>
-#include <sys/trace.h>
#include <sys/mount.h>
#include <uvm/uvm_extern.h>
#include <sys/syscallargs.h>
-#ifdef TRACE
-int nvualarm;
-
-sys_vtrace(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
-{
- struct sys_vtrace_args /* {
- syscallarg(int) request;
- syscallarg(int) value;
- } */ *uap = v;
- int vdoualarm();
-
- switch (SCARG(uap, request)) {
-
- case VTR_DISABLE: /* disable a trace point */
- case VTR_ENABLE: /* enable a trace point */
- if (SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap, value)];
- traceflags[SCARG(uap, value)] = SCARG(uap, request);
- break;
-
- case VTR_VALUE: /* return a trace point setting */
- if (SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap, value)];
- break;
-
- case VTR_UALARM: /* set a real-time ualarm, less than 1 min */
- if (SCARG(uap, value) <= 0 || SCARG(uap, value) > 60 * hz ||
- nvualarm > 5)
- return (EINVAL);
- nvualarm++;
- timeout(vdoualarm, (void *)p->p_pid, SCARG(uap, value));
- break;
-
- case VTR_STAMP:
- trace(TR_STAMP, SCARG(uap, value), p->p_pid);
- break;
- }
- return (0);
-}
-
-vdoualarm(arg)
- void *arg;
-{
- int pid = (int)arg;
- struct proc *p;
-
- p = pfind(pid);
- if (p)
- psignal(p, 16);
- nvualarm--;
-}
-#endif
-
#include <machine/cpu.h>
/* XXX should be in an include file somewhere */
diff -r c1a45c41af03 -r 67a3d690f35c sys/arch/luna68k/luna68k/sys_machdep.c
--- a/sys/arch/luna68k/luna68k/sys_machdep.c Wed Dec 13 17:48:46 2000 +0000
+++ b/sys/arch/luna68k/luna68k/sys_machdep.c Wed Dec 13 18:13:05 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.3 2000/06/29 08:17:26 mrg Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.4 2000/12/13 18:13:07 jdolecek Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -37,7 +37,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.3 2000/06/29 08:17:26 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.4 2000/12/13 18:13:07 jdolecek Exp $");
#include "opt_compat_hpux.h"
@@ -50,7 +50,6 @@
#include <sys/uio.h>
#include <sys/kernel.h>
#include <sys/buf.h>
-#include <sys/trace.h>
#include <sys/mount.h>
#include <uvm/uvm_extern.h>
@@ -61,64 +60,6 @@
#include <m68k/cacheops_30.h>
#include <m68k/cacheops_40.h>
-#ifdef TRACE
-int nvualarm;
-
-sys_vtrace(p, v, retval)
- struct proc *p;
- void *v;
- register_t *retval;
-{
- struct sys_vtrace_args /* {
- syscallarg(int) request;
- syscallarg(int) value;
- } */ *uap = v;
- int vdoualarm();
-
- switch (SCARG(uap, request)) {
-
- case VTR_DISABLE: /* disable a trace point */
- case VTR_ENABLE: /* enable a trace point */
- if (SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap, value)];
- traceflags[SCARG(uap, value)] = SCARG(uap, request);
- break;
-
- case VTR_VALUE: /* return a trace point setting */
- if (SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
Home |
Main Index |
Thread Index |
Old Index