freebsd-dev/sys/fs/procfs
Konstantin Belousov cfb03f67d9 Reuse kern_proc_vmmap_resident() for procfs_map resident count.
The existing algorithm in procfs_map() to calculate count of resident
pages in an entry is too primitive, resulting in too long run time for
large sparse mapping entries.  Re-use the kern_proc_vmmap_resident()
from kern_proc.c which only looks at the existing pages in the
iterations.

Also, this makes procfs to honor kern.proc_vmmap_skip_resident_count,
if user does not need this information.

Reported by:	Glenn Weinberg <glenn.weinberg@intel.com>
PR:	224532
No objections from:	des (procfs maintainer)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D13595
2017-12-28 13:23:13 +00:00
..
procfs_dbregs.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_fpregs.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_ioctl.c sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
procfs_map.c Reuse kern_proc_vmmap_resident() for procfs_map resident count. 2017-12-28 13:23:13 +00:00
procfs_mem.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_note.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_osrel.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_regs.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_rlimit.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
procfs_status.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs_type.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
procfs.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00