From 29a9d7776db7cbab30bc2d6af24d069b147587f5 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 23 Jun 2000 02:14:41 +0000 Subject: remove obsolete vtrace guts; art@ --- sys/arch/mips/mips/sys_machdep.c | 59 +--------------------------------------- 1 file changed, 1 insertion(+), 58 deletions(-) (limited to 'sys/arch/mips') diff --git a/sys/arch/mips/mips/sys_machdep.c b/sys/arch/mips/mips/sys_machdep.c index d0bac152f23..47bebbe491e 100644 --- a/sys/arch/mips/mips/sys_machdep.c +++ b/sys/arch/mips/mips/sys_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_machdep.c,v 1.2 2000/06/08 22:25:20 niklas Exp $ */ +/* $OpenBSD: sys_machdep.c,v 1.3 2000/06/23 02:14:38 mickey Exp $ */ /* * Copyright (c) 1992, 1993 @@ -49,67 +49,10 @@ #include #include #include -#include #include #include -#ifdef TRACE -int nvualarm; - -vtrace(p, uap, retval) - struct proc *p; - register struct vtrace_args /* { - syscallarg(int) request; - syscallarg(int) value; - } */ *uap; - register_t *retval; -{ - 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 - int sys_sysarch(p, v, retval) struct proc *p; -- cgit v1.2.3