memstat_internal.h (148041) | memstat_internal.h (148170) |
---|---|
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 148041 2005-07-15 11:19:55Z rwatson $ | 26 * $FreeBSD: head/lib/libmemstat/memstat_internal.h 148170 2005-07-20 09:17:40Z rwatson $ |
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 --- 45 unchanged lines hidden (view full) --- 80 * First, central zone/type state, all numbers excluding any items 81 * cached in per-CPU caches. 82 * 83 * XXXRW: Might be desirable to separately expose allocation stats 84 * from zone, which should (combined with per-cpu) add up to the 85 * global stats above. 86 */ 87 uint64_t mt_zonefree; /* Free items in zone. */ | 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 --- 45 unchanged lines hidden (view full) --- 80 * First, central zone/type state, all numbers excluding any items 81 * cached in per-CPU caches. 82 * 83 * XXXRW: Might be desirable to separately expose allocation stats 84 * from zone, which should (combined with per-cpu) add up to the 85 * global stats above. 86 */ 87 uint64_t mt_zonefree; /* Free items in zone. */ |
88 uint64_t mt_kegfree; /* Free items in keg. */ |
|
88 89 /* 90 * Per-CPU measurements fall into two categories: per-CPU allocation, 91 * and per-CPU cache state. 92 */ 93 struct { 94 uint64_t mtp_memalloced;/* Per-CPU mt_memalloced. */ 95 uint64_t mtp_memfreed; /* Per-CPU mt_memfreed. */ --- 25 unchanged lines hidden --- | 89 90 /* 91 * Per-CPU measurements fall into two categories: per-CPU allocation, 92 * and per-CPU cache state. 93 */ 94 struct { 95 uint64_t mtp_memalloced;/* Per-CPU mt_memalloced. */ 96 uint64_t mtp_memfreed; /* Per-CPU mt_memfreed. */ --- 25 unchanged lines hidden --- |