iostat.c (39230) | iostat.c (40060) |
---|---|
1/* 2 * Copyright (c) 1998 Kenneth D. Merry. 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 --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/* 2 * Copyright (c) 1998 Kenneth D. Merry. 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 --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $Id$ | 28 * $Id: iostat.c,v 1.6 1998/09/15 08:16:40 gibbs Exp $ |
29 */ 30/* 31 * Copyright (c) 1980, 1992, 1993 32 * The Regents of the University of California. All rights reserved. 33 * 34 * Redistribution and use in source and binary forms, with or without 35 * modification, are permitted provided that the following conditions 36 * are met: --- 31 unchanged lines hidden (view full) --- 68#include <sys/buf.h> 69#include <sys/dkstat.h> 70 71#include <string.h> 72#include <stdlib.h> 73#include <nlist.h> 74#include <paths.h> 75#include <devstat.h> | 29 */ 30/* 31 * Copyright (c) 1980, 1992, 1993 32 * The Regents of the University of California. All rights reserved. 33 * 34 * Redistribution and use in source and binary forms, with or without 35 * modification, are permitted provided that the following conditions 36 * are met: --- 31 unchanged lines hidden (view full) --- 68#include <sys/buf.h> 69#include <sys/dkstat.h> 70 71#include <string.h> 72#include <stdlib.h> 73#include <nlist.h> 74#include <paths.h> 75#include <devstat.h> |
76#include <err.h> |
|
76#include "systat.h" 77#include "extern.h" | 77#include "systat.h" 78#include "extern.h" |
79#include "devs.h" |
|
78 79static struct nlist namelist[] = { 80#define X_CP_TIME 0 81 { "_cp_time" }, 82#ifdef vax 83#define X_MBDINIT (X_CP_TIME+1) 84 { "_mbdinit" }, 85#define X_UBDINIT (X_CP_TIME+2) --- 12 unchanged lines hidden (view full) --- 98static double etime; 99static int numbers = 0; /* default display bar graphs */ 100static int kbpt = 0; /* default ms/seek shown */ 101 102static int barlabels __P((int)); 103static void histogram __P((long double, int, double)); 104static int numlabels __P((int)); 105static int devstats __P((int, int, int)); | 80 81static struct nlist namelist[] = { 82#define X_CP_TIME 0 83 { "_cp_time" }, 84#ifdef vax 85#define X_MBDINIT (X_CP_TIME+1) 86 { "_mbdinit" }, 87#define X_UBDINIT (X_CP_TIME+2) --- 12 unchanged lines hidden (view full) --- 100static double etime; 101static int numbers = 0; /* default display bar graphs */ 102static int kbpt = 0; /* default ms/seek shown */ 103 104static int barlabels __P((int)); 105static void histogram __P((long double, int, double)); 106static int numlabels __P((int)); 107static int devstats __P((int, int, int)); |
106static int stats __P((int, int, int)); | |
107static void stat1 __P((int, int)); 108 109WINDOW * 110openiostat() 111{ 112 return (subwin(stdscr, LINES-1-5, 0, 5, 0)); 113} 114 --- 307 unchanged lines hidden --- | 108static void stat1 __P((int, int)); 109 110WINDOW * 111openiostat() 112{ 113 return (subwin(stdscr, LINES-1-5, 0, 5, 0)); 114} 115 --- 307 unchanged lines hidden --- |