machine.c (248167) | machine.c (251630) |
---|---|
1/* 2 * top - a top users display for Unix 3 * 4 * SYNOPSIS: For FreeBSD-2.x and later 5 * 6 * DESCRIPTION: 7 * Originally written for BSD4.4 system by Christos Zoulas. 8 * Ported to FreeBSD 2.x by Steven Wallace && Wolfram Schneider --- 6 unchanged lines hidden (view full) --- 15 * 16 * LIBS: -lkvm 17 * 18 * AUTHOR: Christos Zoulas <christos@ee.cornell.edu> 19 * Steven Wallace <swallace@freebsd.org> 20 * Wolfram Schneider <wosch@FreeBSD.org> 21 * Thomas Moestl <tmoestl@gmx.net> 22 * | 1/* 2 * top - a top users display for Unix 3 * 4 * SYNOPSIS: For FreeBSD-2.x and later 5 * 6 * DESCRIPTION: 7 * Originally written for BSD4.4 system by Christos Zoulas. 8 * Ported to FreeBSD 2.x by Steven Wallace && Wolfram Schneider --- 6 unchanged lines hidden (view full) --- 15 * 16 * LIBS: -lkvm 17 * 18 * AUTHOR: Christos Zoulas <christos@ee.cornell.edu> 19 * Steven Wallace <swallace@freebsd.org> 20 * Wolfram Schneider <wosch@FreeBSD.org> 21 * Thomas Moestl <tmoestl@gmx.net> 22 * |
23 * $FreeBSD: head/usr.bin/top/machine.c 248167 2013-03-11 16:33:05Z jhb $ | 23 * $FreeBSD: head/usr.bin/top/machine.c 251630 2013-06-11 19:05:29Z jhb $ |
24 */ 25 26#include <sys/param.h> 27#include <sys/errno.h> 28#include <sys/file.h> 29#include <sys/proc.h> 30#include <sys/resource.h> 31#include <sys/rtprio.h> --- 70 unchanged lines hidden (view full) --- 102 103static char io_header[] = 104 " PID%s %-*.*s VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND"; 105 106#define io_Proc_format \ 107 "%5d%s %-*.*s %6ld %6ld %6ld %6ld %6ld %6ld %6.2f%% %.*s" 108 109static char smp_header_thr[] = | 24 */ 25 26#include <sys/param.h> 27#include <sys/errno.h> 28#include <sys/file.h> 29#include <sys/proc.h> 30#include <sys/resource.h> 31#include <sys/rtprio.h> --- 70 unchanged lines hidden (view full) --- 102 103static char io_header[] = 104 " PID%s %-*.*s VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND"; 105 106#define io_Proc_format \ 107 "%5d%s %-*.*s %6ld %6ld %6ld %6ld %6ld %6ld %6.2f%% %.*s" 108 109static char smp_header_thr[] = |
110 " PID%s %-*.*s THR PRI NICE SIZE RES STATE C TIME %6s COMMAND"; | 110 " PID%s %-*.*s THR PRI NICE SIZE RES STATE C TIME %7s COMMAND"; |
111static char smp_header[] = | 111static char smp_header[] = |
112 " PID%s %-*.*s " "PRI NICE SIZE RES STATE C TIME %6s COMMAND"; | 112 " PID%s %-*.*s " "PRI NICE SIZE RES STATE C TIME %7s COMMAND"; |
113 114#define smp_Proc_format \ | 113 114#define smp_Proc_format \ |
115 "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s %2d%7s %5.2f%% %.*s" | 115 "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s %2d%7s %6.2f%% %.*s" |
116 117static char up_header_thr[] = | 116 117static char up_header_thr[] = |
118 " PID%s %-*.*s THR PRI NICE SIZE RES STATE TIME %6s COMMAND"; | 118 " PID%s %-*.*s THR PRI NICE SIZE RES STATE TIME %7s COMMAND"; |
119static char up_header[] = | 119static char up_header[] = |
120 " PID%s %-*.*s " "PRI NICE SIZE RES STATE TIME %6s COMMAND"; | 120 " PID%s %-*.*s " "PRI NICE SIZE RES STATE TIME %7s COMMAND"; |
121 122#define up_Proc_format \ | 121 122#define up_Proc_format \ |
123 "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s%.0d%7s %5.2f%% %.*s" | 123 "%5d%s %-*.*s %s%3d %4s%7s %6s %-6.6s%.0d%7s %6.2f%% %.*s" |
124 125 126/* process state names for the "STATE" column of the display */ 127/* the extra nulls in the string "run" are for adding a slash and 128 the processor number when needed */ 129 130char *state_abbrev[] = { 131 "", "START", "RUN\0\0\0", "SLEEP", "STOP", "ZOMB", "WAIT", "LOCK" --- 1371 unchanged lines hidden --- | 124 125 126/* process state names for the "STATE" column of the display */ 127/* the extra nulls in the string "run" are for adding a slash and 128 the processor number when needed */ 129 130char *state_abbrev[] = { 131 "", "START", "RUN\0\0\0", "SLEEP", "STOP", "ZOMB", "WAIT", "LOCK" --- 1371 unchanged lines hidden --- |