Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Add a proper defflag for GPROF, and include opt_gprof.h, ...
details: https://anonhg.NetBSD.org/src/rev/82eabbae5192
branches: trunk
changeset: 359207:82eabbae5192
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Feb 04 17:31:51 2018 +0000
description:
Add a proper defflag for GPROF, and include opt_gprof.h, otherwise we're
not gonna go very far.
diffstat:
sys/conf/files | 3 ++-
sys/kern/init_main.c | 5 +++--
sys/kern/init_sysctl.c | 5 +++--
sys/kern/kern_clock.c | 5 +++--
sys/kern/subr_prof.c | 8 ++++++--
sys/sys/systm.h | 3 ++-
6 files changed, 19 insertions(+), 10 deletions(-)
diffs (128 lines):
diff -r 4b70d88451b0 -r 82eabbae5192 sys/conf/files
--- a/sys/conf/files Sun Feb 04 17:03:21 2018 +0000
+++ b/sys/conf/files Sun Feb 04 17:31:51 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files,v 1.1192 2018/01/18 00:32:48 mrg Exp $
+# $NetBSD: files,v 1.1193 2018/02/04 17:31:51 maxv Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
version 20171118
@@ -28,6 +28,7 @@
defflag KEYLOCK
defparam opt_syslimits.h CHILD_MAX OPEN_MAX
defflag opt_diagnostic.h _DIAGNOSTIC
+defflag GPROF
defparam opt_copy_symtab.h makeoptions_COPY_SYMTAB
diff -r 4b70d88451b0 -r 82eabbae5192 sys/kern/init_main.c
--- a/sys/kern/init_main.c Sun Feb 04 17:03:21 2018 +0000
+++ b/sys/kern/init_main.c Sun Feb 04 17:31:51 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_main.c,v 1.494 2017/12/26 03:58:03 msaitoh Exp $ */
+/* $NetBSD: init_main.c,v 1.495 2018/02/04 17:31:51 maxv 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.494 2017/12/26 03:58:03 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.495 2018/02/04 17:31:51 maxv Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@@ -116,6 +116,7 @@
#include "opt_rnd_printf.h"
#include "opt_splash.h"
#include "opt_kernhist.h"
+#include "opt_gprof.h"
#if defined(SPLASHSCREEN) && defined(makeoptions_SPLASHSCREEN_IMAGE)
extern void *_binary_splash_image_start;
diff -r 4b70d88451b0 -r 82eabbae5192 sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c Sun Feb 04 17:03:21 2018 +0000
+++ b/sys/kern/init_sysctl.c Sun Feb 04 17:31:51 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_sysctl.c,v 1.213 2017/06/01 02:45:13 chs Exp $ */
+/* $NetBSD: init_sysctl.c,v 1.214 2018/02/04 17:31:51 maxv Exp $ */
/*-
* Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,11 +30,12 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.213 2017/06/01 02:45:13 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.214 2018/02/04 17:31:51 maxv Exp $");
#include "opt_sysv.h"
#include "opt_compat_netbsd.h"
#include "opt_modular.h"
+#include "opt_gprof.h"
#include "pty.h"
#include <sys/types.h>
diff -r 4b70d88451b0 -r 82eabbae5192 sys/kern/kern_clock.c
--- a/sys/kern/kern_clock.c Sun Feb 04 17:03:21 2018 +0000
+++ b/sys/kern/kern_clock.c Sun Feb 04 17:31:51 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_clock.c,v 1.135 2017/02/12 18:43:56 maxv Exp $ */
+/* $NetBSD: kern_clock.c,v 1.136 2018/02/04 17:31:51 maxv Exp $ */
/*-
* Copyright (c) 2000, 2004, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,11 +69,12 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.135 2017/02/12 18:43:56 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_clock.c,v 1.136 2018/02/04 17:31:51 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_dtrace.h"
#include "opt_perfctrs.h"
+#include "opt_gprof.h"
#endif
#include <sys/param.h>
diff -r 4b70d88451b0 -r 82eabbae5192 sys/kern/subr_prof.c
--- a/sys/kern/subr_prof.c Sun Feb 04 17:03:21 2018 +0000
+++ b/sys/kern/subr_prof.c Sun Feb 04 17:31:51 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_prof.c,v 1.47 2014/07/10 21:13:52 christos Exp $ */
+/* $NetBSD: subr_prof.c,v 1.48 2018/02/04 17:31:51 maxv Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@@ -32,7 +32,11 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_prof.c,v 1.47 2014/07/10 21:13:52 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_prof.c,v 1.48 2018/02/04 17:31:51 maxv Exp $");
+
+#ifdef _KERNEL_OPT
+#include "opt_gprof.h"
+#endif
#include <sys/param.h>
#include <sys/systm.h>
diff -r 4b70d88451b0 -r 82eabbae5192 sys/sys/systm.h
--- a/sys/sys/systm.h Sun Feb 04 17:03:21 2018 +0000
+++ b/sys/sys/systm.h Sun Feb 04 17:31:51 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: systm.h,v 1.274 2017/10/27 12:25:15 joerg Exp $ */
+/* $NetBSD: systm.h,v 1.275 2018/02/04 17:31:51 maxv Exp $ */
/*-
* Copyright (c) 1982, 1988, 1991, 1993
@@ -42,6 +42,7 @@
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
#include "opt_multiprocessor.h"
+#include "opt_gprof.h"
#endif
#if !defined(_KERNEL) && !defined(_STANDALONE)
#include <stdbool.h>
Home |
Main Index |
Thread Index |
Old Index