Date: Thu, 14 Jul 2005 17:40:02 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libmemstat Makefile libmemstat.3 memstat.c memstat.h memstat_all.c memstat_internal.h memstat_malloc.c memstat_uma.c Message-ID: <200507141740.j6EHe25K099162@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2005-07-14 17:40:02 UTC FreeBSD src repository Added files: lib/libmemstat Makefile libmemstat.3 memstat.c memstat.h memstat_all.c memstat_internal.h memstat_malloc.c memstat_uma.c Log: Add libmemstat(3), a library for use by debugging and monitoring applications in tracking kernel memory statistics. It provides an abstracted interface to uma(9) and malloc(9) statistics, wrapped around the recently added binary stream sysctls for the allocators. Using this interface, it is easy to build monitoring tools, query specific memory types for usage information, etc. Facilities are provided for binding caller-provided data to memory types, incremental updates of memory types, and queries that span multiple allocators. Support for additional allocators is (relatively) easy to add. The API for libmemstat(3) will probably change some over time as consumers are written, and requirements evolve. It is written to avoid encoding ABIs for data structure layout into consuming applications for this reason. MFC after: 1 week Revision Changes Path 1.1 +23 -0 src/lib/libmemstat/Makefile (new) 1.1 +238 -0 src/lib/libmemstat/libmemstat.3 (new) 1.1 +366 -0 src/lib/libmemstat/memstat.c (new) 1.1 +134 -0 src/lib/libmemstat/memstat.h (new) 1.1 +47 -0 src/lib/libmemstat/memstat_all.c (new) 1.1 +124 -0 src/lib/libmemstat/memstat_internal.h (new) 1.1 +240 -0 src/lib/libmemstat/memstat_malloc.c (new) 1.1 +230 -0 src/lib/libmemstat/memstat_uma.c (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507141740.j6EHe25K099162>