6 * This file defines the interface between top and the machine-dependent
7 * module. It is NOT machine dependent and should not need to be changed
8 * for any specific machine.
12 * the statics struct is filled in by machine_init
16 char **procstate_names;
17 char **cpustate_names;
28 * the system_info struct is filled in by a machine dependent routine.
31 #ifdef p_active /* uw7 define macro p_active */
32 #define P_ACTIVE p_pactive
34 #define P_ACTIVE p_active
40 double load_avg[NUM_AVERAGES];
42 int P_ACTIVE; /* number of procs considered "active" */
48 struct timeval boottime;
52 /* cpu_states is an array of percentages * 10. For example,
53 the (integer) value 105 is 10.5% (or .105).
57 * the process_select struct tells get_process_info what processes we
58 * are interested in seeing
63 int idle; /* show idle processes */
64 int self; /* show self */
65 int system; /* show system processes */
66 int thread; /* show threads */
67 int uid; /* only this uid (unless uid == -1) */
68 int wcpu; /* show weighted cpu */
69 int jid; /* only this jid (unless jid == -1) */
70 int jail; /* show jail ID */
71 int kidle; /* show per-CPU idle threads */
72 char *command; /* only this command (unless == NULL) */
75 /* routines defined by the machine dependent module */
77 char *format_header();
78 char *format_next_process();
80 /* non-int routines typically used by the machine dependent module */