ps.h revision 1.3.2.2 1 1.3.2.2 thorpej /* $NetBSD: ps.h,v 1.3.2.2 2002/05/04 18:44:28 thorpej Exp $ */
2 1.3.2.2 thorpej
3 1.3.2.2 thorpej /*-
4 1.3.2.2 thorpej * Copyright (c) 1999
5 1.3.2.2 thorpej * The NetBSD Foundation, Inc. All rights reserved.
6 1.3.2.2 thorpej *
7 1.3.2.2 thorpej * Redistribution and use in source and binary forms, with or without
8 1.3.2.2 thorpej * modification, are permitted provided that the following conditions
9 1.3.2.2 thorpej * are met:
10 1.3.2.2 thorpej * 1. Redistributions of source code must retain the above copyright
11 1.3.2.2 thorpej * notice, this list of conditions and the following disclaimer.
12 1.3.2.2 thorpej * 2. Redistributions in binary form must reproduce the above copyright
13 1.3.2.2 thorpej * notice, this list of conditions and the following disclaimer in the
14 1.3.2.2 thorpej * documentation and/or other materials provided with the distribution.
15 1.3.2.2 thorpej * 3. All advertising materials mentioning features or use of this software
16 1.3.2.2 thorpej * must display the following acknowledgement:
17 1.3.2.2 thorpej * This product includes software developed by the University of
18 1.3.2.2 thorpej * California, Berkeley and its contributors.
19 1.3.2.2 thorpej * 4. Neither the name of the University nor the names of its contributors
20 1.3.2.2 thorpej * may be used to endorse or promote products derived from this software
21 1.3.2.2 thorpej * without specific prior written permission.
22 1.3.2.2 thorpej *
23 1.3.2.2 thorpej * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 1.3.2.2 thorpej * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 1.3.2.2 thorpej * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 1.3.2.2 thorpej * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 1.3.2.2 thorpej * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 1.3.2.2 thorpej * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 1.3.2.2 thorpej * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 1.3.2.2 thorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 1.3.2.2 thorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 1.3.2.2 thorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 1.3.2.2 thorpej * SUCH DAMAGE.
34 1.3.2.2 thorpej */
35 1.3.2.2 thorpej
36 1.3.2.2 thorpej extern int nproc;
37 1.3.2.2 thorpej extern struct p_times {
38 1.3.2.2 thorpej float pt_pctcpu;
39 1.3.2.2 thorpej struct kinfo_proc2 *pt_kp;
40 1.3.2.2 thorpej } *pt;
41 1.3.2.2 thorpej
42 1.3.2.2 thorpej extern u_int64_t stime[CPUSTATES];
43 1.3.2.2 thorpej extern int fscale;
44 1.3.2.2 thorpej extern double lccpu;
45 1.3.2.2 thorpej extern long mempages;
46