Deleted Added
full compact
memstat_internal.h (224569) memstat_internal.h (261726)
1/*-
2 * Copyright (c) 2005 Robert N. M. Watson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2005 Robert N. M. Watson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libmemstat/memstat_internal.h 224569 2011-08-01 09:43:35Z pluknet $
26 * $FreeBSD: head/lib/libmemstat/memstat_internal.h 261726 2014-02-10 20:09:10Z glebius $
27 */
28
29#ifndef _MEMSTAT_INTERNAL_H_
30#define _MEMSTAT_INTERNAL_H_
31
32/*
33 * memstat maintains its own internal notion of statistics on each memory
34 * type, common across UMA and kernel malloc. Some fields are straight from

--- 11 unchanged lines hidden (view full) ---

46 /*
47 * (Relatively) static zone settings, that don't uniquely identify
48 * the zone, but also don't change much.
49 */
50 uint64_t mt_countlimit; /* 0, or maximum allocations. */
51 uint64_t mt_byteslimit; /* 0, or maximum bytes. */
52 uint64_t mt_sizemask; /* malloc: allocated size bitmask. */
53 uint64_t mt_size; /* uma: size of objects. */
27 */
28
29#ifndef _MEMSTAT_INTERNAL_H_
30#define _MEMSTAT_INTERNAL_H_
31
32/*
33 * memstat maintains its own internal notion of statistics on each memory
34 * type, common across UMA and kernel malloc. Some fields are straight from

--- 11 unchanged lines hidden (view full) ---

46 /*
47 * (Relatively) static zone settings, that don't uniquely identify
48 * the zone, but also don't change much.
49 */
50 uint64_t mt_countlimit; /* 0, or maximum allocations. */
51 uint64_t mt_byteslimit; /* 0, or maximum bytes. */
52 uint64_t mt_sizemask; /* malloc: allocated size bitmask. */
53 uint64_t mt_size; /* uma: size of objects. */
54 uint64_t mt_rsize; /* uma: real size of objects. */
54
55 /*
56 * Zone or type information that includes all caches and any central
57 * zone state. Depending on the allocator, this may be synthesized
58 * from several sources, or directly measured.
59 */
60 uint64_t mt_memalloced; /* Bytes allocated over life time. */
61 uint64_t mt_memfreed; /* Bytes freed over life time. */

--- 65 unchanged lines hidden ---
55
56 /*
57 * Zone or type information that includes all caches and any central
58 * zone state. Depending on the allocator, this may be synthesized
59 * from several sources, or directly measured.
60 */
61 uint64_t mt_memalloced; /* Bytes allocated over life time. */
62 uint64_t mt_memfreed; /* Bytes freed over life time. */

--- 65 unchanged lines hidden ---