Deleted Added
full compact
memstat.h (148627) memstat.h (148789)
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.h 148627 2005-08-01 19:07:39Z rwatson $
26 * $FreeBSD: head/lib/libmemstat/memstat.h 148789 2005-08-06 13:54:03Z rwatson $
27 */
28
29#ifndef _MEMSTAT_H_
30#define _MEMSTAT_H_
31
32/*
33 * Number of CPU slots in library-internal data structures. This should be
34 * at least the value of MAXCPU from param.h.

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

114int memstat_sysctl_all(struct memory_type_list *list, int flags);
115int memstat_sysctl_malloc(struct memory_type_list *list, int flags);
116int memstat_sysctl_uma(struct memory_type_list *list, int flags);
117
118/*
119 * Functions to retrieve data from a kernel core (or /dev/kmem).
120 */
121int memstat_kvm_all(struct memory_type_list *list, void *kvm_handle);
27 */
28
29#ifndef _MEMSTAT_H_
30#define _MEMSTAT_H_
31
32/*
33 * Number of CPU slots in library-internal data structures. This should be
34 * at least the value of MAXCPU from param.h.

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

114int memstat_sysctl_all(struct memory_type_list *list, int flags);
115int memstat_sysctl_malloc(struct memory_type_list *list, int flags);
116int memstat_sysctl_uma(struct memory_type_list *list, int flags);
117
118/*
119 * Functions to retrieve data from a kernel core (or /dev/kmem).
120 */
121int memstat_kvm_all(struct memory_type_list *list, void *kvm_handle);
122int memstat_kvm_malloc(struct memory_type_list *list, void *kvm_handle);
122int memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle);
123
124/*
125 * Accessor methods for struct memory_type.
126 */
127const char *memstat_get_name(const struct memory_type *mtp);
128int memstat_get_allocator(const struct memory_type *mtp);
129uint64_t memstat_get_countlimit(const struct memory_type *mtp);

--- 44 unchanged lines hidden ---
123int memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle);
124
125/*
126 * Accessor methods for struct memory_type.
127 */
128const char *memstat_get_name(const struct memory_type *mtp);
129int memstat_get_allocator(const struct memory_type *mtp);
130uint64_t memstat_get_countlimit(const struct memory_type *mtp);

--- 44 unchanged lines hidden ---