From owner-cvs-src@FreeBSD.ORG Sun Jul 24 14:49:50 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BECE16A41F; Sun, 24 Jul 2005 14:49:50 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D455E43D45; Sun, 24 Jul 2005 14:49:49 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j6OEnntZ018295; Sun, 24 Jul 2005 14:49:49 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j6OEnnJd018294; Sun, 24 Jul 2005 14:49:49 GMT (envelope-from rwatson) Message-Id: <200507241449.j6OEnnJd018294@repoman.freebsd.org> From: Robert Watson Date: Sun, 24 Jul 2005 14:49:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: 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 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2005 14:49:50 -0000 rwatson 2005-07-24 14:49:49 UTC FreeBSD src repository Added files: (Branch: RELENG_6) lib/libmemstat Makefile libmemstat.3 memstat.c memstat.h memstat_all.c memstat_internal.h memstat_malloc.c memstat_uma.c Log: Merge libmemstat(3) from HEAD to RELENG_6. Original commit description: 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. This change merges all improvements, enhancements, bug fixes, etc, as of this date. Revisions merged are: Makefile:1.1-1.3 libmemstat.3:1.1-1.6 memstat.h:1.1-1.7 memstat_all.c:1.1 memstat_internal.h:1.5 memstat_malloc.c:1.1-1.4 memstat_uma.c:1.1-1.7 Approved by: re (kensmith) Revision Changes Path 1.3.2.1 +25 -0 src/lib/libmemstat/Makefile (new) 1.6.2.1 +453 -0 src/lib/libmemstat/libmemstat.3 (new) 1.5.2.1 +408 -0 src/lib/libmemstat/memstat.c (new) 1.7.2.1 +164 -0 src/lib/libmemstat/memstat.h (new) 1.1.2.1 +47 -0 src/lib/libmemstat/memstat_all.c (new) 1.5.2.1 +123 -0 src/lib/libmemstat/memstat_internal.h (new) 1.4.2.1 +228 -0 src/lib/libmemstat/memstat_malloc.c (new) 1.7.2.1 +221 -0 src/lib/libmemstat/memstat_uma.c (new)