From owner-cvs-all@FreeBSD.ORG Wed Nov 9 10:20:49 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7064416A41F; Wed, 9 Nov 2005 10:20:49 +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 3156943D46; Wed, 9 Nov 2005 10:20: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 jA9AKn0t023667; Wed, 9 Nov 2005 10:20:49 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jA9AKms3023666; Wed, 9 Nov 2005 10:20:48 GMT (envelope-from rwatson) Message-Id: <200511091020.jA9AKms3023666@repoman.freebsd.org> From: Robert Watson Date: Wed, 9 Nov 2005 10:20:48 +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 libmemstat.3 memstat.c memstat.h memstat_all.c memstat_uma.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 10:20:49 -0000 rwatson 2005-11-09 10:20:48 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) lib/libmemstat libmemstat.3 memstat.c memstat.h memstat_all.c memstat_uma.c Log: Merge libmemstat.3:1.7, memstat.c:1.7, memstat.h:1.8, memstat_all.c:1.2, memstat_uma.c:1.10 from HEAD to RELENG_6: Add memstat_kvm_uma(), an implementation of a libmemstat(3) query routine that knows how to extract UMA(9) allocator statistics from a core dump or live memory image using kvm(3). The caller is expected to provide the necessary kvm_t handle, which is then used by libmemstat(3). With these changes, it is trivially straight forward to re-introduce vmstat -z support on core dumps, which was lost when UMA was introduced. In the short term, this requires including vm/ include files that are not intended for extra-kernel use, requiring in turn some ugliness. Merge memstat_uma.c:1.11 from HEAD to RELENG_6: Define LIBMEMSTAT so that vm_page.h won't perform a nested include of opt_vmpage.h. Remove definition of _KERNEL, it is no longer required in order to include uma_int.h, as the sensitive parts of uma_int.h (a number of inlines depending on kernel-only constants) are now protected by _KERNEL. The use of LIBMEMSTAT here will be cleaned up in the future. Revision Changes Path 1.6.2.3 +7 -2 src/lib/libmemstat/libmemstat.3 1.5.2.3 +6 -0 src/lib/libmemstat/memstat.c 1.7.2.2 +9 -0 src/lib/libmemstat/memstat.h 1.1.2.2 +13 -0 src/lib/libmemstat/memstat_all.c 1.7.2.4 +205 -0 src/lib/libmemstat/memstat_uma.c