1.\" Copyright (c) 2005 Robert N. M. Watson 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/lib/libmemstat/libmemstat.3 261726 2014-02-10 20:09:10Z glebius $ |
26.\" |
27.Dd February 11, 2014 |
28.Dt LIBMEMSTAT 3 29.Os 30.Sh NAME 31.Nm libmemstat 32.Nd "library interface to retrieve kernel memory allocator statistics" 33.Sh LIBRARY 34.Lb libmemstat 35.Sh SYNOPSIS --- 39 unchanged lines hidden (view full) --- 75.Fn memstat_get_countlimit "const struct memory_type *mtp" 76.Ft uint64_t 77.Fn memstat_get_byteslimit "const struct memory_type *mtp" 78.Ft uint64_t 79.Fn memstat_get_sizemask "const struct memory_type *mtp" 80.Ft uint64_t 81.Fn memstat_get_size "const struct memory_type *mtp" 82.Ft uint64_t |
83.Fn memstat_get_rsize "const struct memory_type *mtp" 84.Ft uint64_t |
85.Fn memstat_get_memalloced "const struct memory_type *mtp" 86.Ft uint64_t 87.Fn memstat_get_memfreed "const struct memory_type *mtp" 88.Ft uint64_t 89.Fn memstat_get_numallocs "const struct memory_type *mtp" 90.Ft uint64_t 91.Fn memstat_get_numfrees "const struct memory_type *mtp" 92.Ft uint64_t --- 191 unchanged lines hidden (view full) --- 284.It Fn memstat_get_byteslimit 285If the memory type has an administrative limit on the number of bytes of 286memory that may be simultaneously allocated for the memory type, return it. 287.It Fn memstat_get_sizemask 288If the memory type supports variable allocation sizes, return a bitmask of 289sizes allocated for the memory type. 290.It Fn memstat_get_size 291If the memory type supports a fixed allocation size, return that size. |
292.It Fn memstat_get_rsize 293If the memory type supports a fixed allocation size, return real size 294of an allocation. 295Real size can exceed requested size due to alignment constraints or 296implicit padding. |
297.It Fn memstat_get_memalloced 298Return the total number of bytes allocated for the memory type over its 299lifetime. 300.It Fn memstat_get_memfreed 301Return the total number of bytes freed for the memory type over its lifetime. 302.It Fn memstat_get_numallocs 303Return the total number of allocations for the memory type over its lifetime. 304.It Fn memstat_get_numfrees --- 195 unchanged lines hidden --- |