diff options
author | alc <alc@FreeBSD.org> | 2012-03-24 19:43:49 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2012-03-24 19:43:49 +0000 |
commit | ee76f4b5b22779c8a130b4ea56647184c6224d2f (patch) | |
tree | d1ddfad3efac71bfc597227704b79246c6948011 | |
parent | a3eef43dfb037e531a07691894933a20c769ee56 (diff) | |
download | FreeBSD-src-ee76f4b5b22779c8a130b4ea56647184c6224d2f.zip FreeBSD-src-ee76f4b5b22779c8a130b4ea56647184c6224d2f.tar.gz |
Disable detailed PV entry accounting by default. Add a config option
to enable it.
MFC after: 1 week
-rw-r--r-- | sys/amd64/amd64/pmap.c | 1 | ||||
-rw-r--r-- | sys/amd64/conf/NOTES | 4 | ||||
-rw-r--r-- | sys/conf/options.amd64 | 1 | ||||
-rw-r--r-- | sys/conf/options.i386 | 1 | ||||
-rw-r--r-- | sys/i386/conf/NOTES | 4 | ||||
-rw-r--r-- | sys/i386/i386/pmap.c | 1 |
6 files changed, 10 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 91fd6f3..f293aaf 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -158,7 +158,6 @@ __FBSDID("$FreeBSD$"); #define PMAP_INLINE #endif -#define PV_STATS #ifdef PV_STATS #define PV_STAT(x) do { x ; } while (0) #else diff --git a/sys/amd64/conf/NOTES b/sys/amd64/conf/NOTES index de27e8c..94717d6 100644 --- a/sys/amd64/conf/NOTES +++ b/sys/amd64/conf/NOTES @@ -559,6 +559,10 @@ options LINSYSFS options KSTACK_PAGES=5 +# Enable detailed accounting by the PV entry allocator. + +options PV_STATS + ##################################################################### # More undocumented options for linting. diff --git a/sys/conf/options.amd64 b/sys/conf/options.amd64 index 9da6160..31d1650 100644 --- a/sys/conf/options.amd64 +++ b/sys/conf/options.amd64 @@ -10,6 +10,7 @@ PERFMON MPTABLE_FORCE_HTT MP_WATCHDOG NKPT opt_pmap.h +PV_STATS opt_pmap.h # Options for emulators. These should only be used at config time, so # they are handled like options for static filesystems diff --git a/sys/conf/options.i386 b/sys/conf/options.i386 index 36f2b52..3638266 100644 --- a/sys/conf/options.i386 +++ b/sys/conf/options.i386 @@ -16,6 +16,7 @@ NKPT opt_pmap.h PERFMON PMAP_SHPGPERPROC opt_pmap.h POWERFAIL_NMI opt_trap.h +PV_STATS opt_pmap.h # Options for emulators. These should only be used at config time, so # they are handled like options for static filesystems diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES index 93a35d3..e15e135 100644 --- a/sys/i386/conf/NOTES +++ b/sys/i386/conf/NOTES @@ -976,6 +976,10 @@ device lindev options KSTACK_PAGES=3 +# Enable detailed accounting by the PV entry allocator. + +options PV_STATS + ##################################################################### # More undocumented options for linting. diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index dee48a1..89e7a2f 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -172,7 +172,6 @@ __FBSDID("$FreeBSD$"); #define PMAP_INLINE #endif -#define PV_STATS #ifdef PV_STATS #define PV_STAT(x) do { x ; } while (0) #else |