summaryrefslogtreecommitdiff
path: root/sys/kern/subr_prof.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-03-03 17:20:29 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-03-03 17:20:29 +0000
commita69a4a568209bb69852224e2cd6f6394ed4da746 (patch)
tree35d8778bf8e995cb348c0bb9d78d38b7a7e6e356 /sys/kern/subr_prof.c
parent5aeba8440e8d2256e4b716030f97e3bf493b725a (diff)
From NetBSD: 960217 merge
Diffstat (limited to 'sys/kern/subr_prof.c')
-rw-r--r--sys/kern/subr_prof.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c
index 85c07cbe64d..6b86246954c 100644
--- a/sys/kern/subr_prof.c
+++ b/sys/kern/subr_prof.c
@@ -1,4 +1,5 @@
-/* $NetBSD: subr_prof.c,v 1.8 1995/11/22 23:07:26 cgd Exp $ */
+/* $OpenBSD: subr_prof.c,v 1.3 1996/03/03 17:20:01 niklas Exp $ */
+/* $NetBSD: subr_prof.c,v 1.10 1996/02/09 19:00:06 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@@ -40,7 +41,7 @@
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/user.h>
-
+#include <sys/cpu.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
@@ -57,6 +58,8 @@ struct gmonparam _gmonparam = { GMON_PROF_OFF };
extern char etext[];
+
+void
kmstartup()
{
char *cp;
@@ -146,6 +149,7 @@ sysctl_doprof(name, namelen, oldp, oldlenp, newp, newlen, p)
* 1.0 is represented as 0x10000. A scale factor of 0 turns off profiling.
*/
/* ARGSUSED */
+int
sys_profil(p, v, retval)
struct proc *p;
void *v;
@@ -153,8 +157,8 @@ sys_profil(p, v, retval)
{
register struct sys_profil_args /* {
syscallarg(caddr_t) samples;
- syscallarg(size_t) size;
- syscallarg(u_long) offset;
+ syscallarg(u_int) size;
+ syscallarg(u_int) offset;
syscallarg(u_int) scale;
} */ *uap = v;
register struct uprof *upp;