Deleted Added
full compact
memstat_all.c (148627) memstat_all.c (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_all.c 148627 2005-08-01 19:07:39Z rwatson $
26 * $FreeBSD: head/lib/libmemstat/memstat_all.c 148789 2005-08-06 13:54:03Z rwatson $
27 */
28
29#include <sys/types.h>
30#include <sys/queue.h>
31
32#include "memstat.h"
33
34/*

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

45 return (-1);
46 return (0);
47}
48
49int
50memstat_kvm_all(struct memory_type_list *mtlp, void *kvm_handle)
51{
52
27 */
28
29#include <sys/types.h>
30#include <sys/queue.h>
31
32#include "memstat.h"
33
34/*

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

45 return (-1);
46 return (0);
47}
48
49int
50memstat_kvm_all(struct memory_type_list *mtlp, void *kvm_handle)
51{
52
53#if NOTYET
54 if (memstat_kvm_malloc(mtlp, kvm_handle) < 0)
55 return (-1);
53 if (memstat_kvm_malloc(mtlp, kvm_handle) < 0)
54 return (-1);
56#endif
57 if (memstat_kvm_uma(mtlp, kvm_handle) < 0)
58 return (-1);
59 return (0);
60}
55 if (memstat_kvm_uma(mtlp, kvm_handle) < 0)
56 return (-1);
57 return (0);
58}