Disable detailed PV entry accounting by default. Add a config option

to enable it.

MFC after:	1 week
This commit is contained in:
Alan Cox 2012-03-24 19:43:49 +00:00
parent 2774871bdf
commit 5d4c773b32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233433
6 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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