Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Actually initialize the sysctl stuff for kernhist! ...



details:   https://anonhg.NetBSD.org/src/rev/fc572c9e0730
branches:  trunk
changeset: 820259:fc572c9e0730
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Jan 05 03:22:20 2017 +0000

description:
Actually initialize the sysctl stuff for kernhist!  Missed this file
in earlier commits.

diffstat:

 sys/kern/init_main.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 52b186c63151 -r fc572c9e0730 sys/kern/init_main.c
--- a/sys/kern/init_main.c      Thu Jan 05 02:22:19 2017 +0000
+++ b/sys/kern/init_main.c      Thu Jan 05 03:22:20 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.488 2016/12/26 23:12:33 pgoyette Exp $ */
+/*     $NetBSD: init_main.c,v 1.489 2017/01/05 03:22:20 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.488 2016/12/26 23:12:33 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.489 2017/01/05 03:22:20 pgoyette Exp $");
 
 #include "opt_ddb.h"
 #include "opt_inet.h"
@@ -115,6 +115,7 @@
 #include "opt_ptrace.h"
 #include "opt_rnd_printf.h"
 #include "opt_splash.h"
+#include "opt_kernhist.h"
 
 #if defined(SPLASHSCREEN) && defined(makeoptions_SPLASHSCREEN_IMAGE)
 extern void *_binary_splash_image_start;
@@ -351,6 +352,10 @@
        bufinit();
        biohist_init();
 
+#ifdef KERNHIST
+       sysctl_kernhist_init();
+#endif
+
 
 #if defined(SPLASHSCREEN) && defined(SPLASHSCREEN_IMAGE)
        size_t splash_size = (&_binary_splash_image_end -



Home | Main Index | Thread Index | Old Index