Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm fix error in previous: UVMHIST_PDHIST_SIZE needs to ...
details: https://anonhg.NetBSD.org/src/rev/696030ff5ec9
branches: trunk
changeset: 961391:696030ff5ec9
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Apr 17 21:37:21 2021 +0000
description:
fix error in previous: UVMHIST_PDHIST_SIZE needs to stay next to pdhistbuf[].
diffstat:
sys/uvm/uvm_map.c | 7 ++-----
sys/uvm/uvm_pdaemon.c | 7 +++++--
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (56 lines):
diff -r 9e66b95ce28f -r 696030ff5ec9 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sat Apr 17 21:20:08 2021 +0000
+++ b/sys/uvm/uvm_map.c Sat Apr 17 21:37:21 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.387 2021/04/17 01:53:58 mrg Exp $ */
+/* $NetBSD: uvm_map.c,v 1.388 2021/04/17 21:37:21 mrg Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.387 2021/04/17 01:53:58 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.388 2021/04/17 21:37:21 mrg Exp $");
#include "opt_ddb.h"
#include "opt_pax.h"
@@ -105,9 +105,6 @@
#ifndef UVMHIST_MAPHIST_SIZE
#define UVMHIST_MAPHIST_SIZE 100
#endif
-#ifndef UVMHIST_PDHIST_SIZE
-#define UVMHIST_PDHIST_SIZE 100
-#endif
static struct kern_history_ent maphistbuf[UVMHIST_MAPHIST_SIZE];
UVMHIST_DEFINE(maphist) = UVMHIST_INITIALIZER(maphist, maphistbuf);
#endif
diff -r 9e66b95ce28f -r 696030ff5ec9 sys/uvm/uvm_pdaemon.c
--- a/sys/uvm/uvm_pdaemon.c Sat Apr 17 21:20:08 2021 +0000
+++ b/sys/uvm/uvm_pdaemon.c Sat Apr 17 21:37:21 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pdaemon.c,v 1.132 2021/04/17 01:53:58 mrg Exp $ */
+/* $NetBSD: uvm_pdaemon.c,v 1.133 2021/04/17 21:37:21 mrg Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.132 2021/04/17 01:53:58 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pdaemon.c,v 1.133 2021/04/17 21:37:21 mrg Exp $");
#include "opt_uvmhist.h"
#include "opt_readahead.h"
@@ -88,6 +88,9 @@
#include <uvm/uvm_pgflcache.h>
#ifdef UVMHIST
+#ifndef UVMHIST_PDHIST_SIZE
+#define UVMHIST_PDHIST_SIZE 100
+#endif
static struct kern_history_ent pdhistbuf[UVMHIST_PDHIST_SIZE];
UVMHIST_DEFINE(pdhist) = UVMHIST_INITIALIZER(pdhisthist, pdhistbuf);
#endif
Home |
Main Index |
Thread Index |
Old Index