#
e754c6bb |
| 24-Jul-2005 |
Robert Watson <rwatson@FreeBSD.org> |
Having decided not to provide a libmemstat(3) error number to text conversion routine, now change my mind and add one, memstat_strerror(3), which returns a const char * pointer to a string describing
Having decided not to provide a libmemstat(3) error number to text conversion routine, now change my mind and add one, memstat_strerror(3), which returns a const char * pointer to a string describing the error, to be used on the results of memstat_mtl_geterror().
While here, also correct a minor typo in the HISTORY man page.
Pointers on improving ease of internationalization would be appreciated.
MFC after: 1 day
show more ...
|
#
0cddce49 |
| 14-Jul-2005 |
Robert Watson <rwatson@FreeBSD.org> |
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 ar
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
show more ...
|