|
@@ -192,6 +192,7 @@ double scale = 1.0;
|
|
|
int logscale = 0;
|
|
|
int ylabels = 0;
|
|
|
int oldsystem = 0;
|
|
|
+int sleeptime = 1000;
|
|
|
|
|
|
char *procnames[NPROC] = {"main", "mouse"};
|
|
|
|
|
@@ -773,54 +774,54 @@ void
|
|
|
contextval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->devsysstat[Context]-m->prevsysstat[Context];
|
|
|
- *vmax = 1000*m->nproc;
|
|
|
+ *vmax = sleeptime*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 1000;
|
|
|
+ *vmax = sleeptime;
|
|
|
}
|
|
|
|
|
|
void
|
|
|
intrval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->devsysstat[Interrupt]-m->prevsysstat[Interrupt];
|
|
|
- *vmax = 1000*m->nproc;
|
|
|
+ *vmax = sleeptime*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 1000;
|
|
|
+ *vmax = sleeptime;
|
|
|
}
|
|
|
|
|
|
void
|
|
|
syscallval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->devsysstat[Syscall]-m->prevsysstat[Syscall];
|
|
|
- *vmax = 1000*m->nproc;
|
|
|
+ *vmax = sleeptime*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 1000;
|
|
|
+ *vmax = sleeptime;
|
|
|
}
|
|
|
|
|
|
void
|
|
|
faultval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->devsysstat[Fault]-m->prevsysstat[Fault];
|
|
|
- *vmax = 1000*m->nproc;
|
|
|
+ *vmax = sleeptime*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 1000;
|
|
|
+ *vmax = sleeptime;
|
|
|
}
|
|
|
|
|
|
void
|
|
|
tlbmissval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->devsysstat[TLBfault]-m->prevsysstat[TLBfault];
|
|
|
- *vmax = 10*m->nproc;
|
|
|
+ *vmax = (sleeptime/1000)*10*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 10;
|
|
|
+ *vmax = (sleeptime/1000)*10;
|
|
|
}
|
|
|
|
|
|
void
|
|
|
tlbpurgeval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->devsysstat[TLBpurge]-m->prevsysstat[TLBpurge];
|
|
|
- *vmax = 10*m->nproc;
|
|
|
+ *vmax = (sleeptime/1000)*10*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 10;
|
|
|
+ *vmax = (sleeptime/1000)*10;
|
|
|
}
|
|
|
|
|
|
void
|
|
@@ -850,27 +851,27 @@ void
|
|
|
etherval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->netetherstats[In]-m->prevetherstats[In] + m->netetherstats[Out]-m->prevetherstats[Out];
|
|
|
- *vmax = 1000*m->nproc;
|
|
|
+ *vmax = sleeptime*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 1000;
|
|
|
+ *vmax = sleeptime;
|
|
|
}
|
|
|
|
|
|
void
|
|
|
etherinval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->netetherstats[In]-m->prevetherstats[In];
|
|
|
- *vmax = 1000*m->nproc;
|
|
|
+ *vmax = sleeptime*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 1000;
|
|
|
+ *vmax = sleeptime;
|
|
|
}
|
|
|
|
|
|
void
|
|
|
etheroutval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
{
|
|
|
*v = m->netetherstats[Out]-m->prevetherstats[Out];
|
|
|
- *vmax = 1000*m->nproc;
|
|
|
+ *vmax = sleeptime*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 1000;
|
|
|
+ *vmax = sleeptime;
|
|
|
}
|
|
|
|
|
|
void
|
|
@@ -881,9 +882,9 @@ ethererrval(Machine *m, ulong *v, ulong *vmax, int init)
|
|
|
*v = 0;
|
|
|
for(i=Err0; i<nelem(m->netetherstats); i++)
|
|
|
*v += m->netetherstats[i];
|
|
|
- *vmax = 10*m->nproc;
|
|
|
+ *vmax = (sleeptime/1000)*10*m->nproc;
|
|
|
if(init)
|
|
|
- *vmax = 10;
|
|
|
+ *vmax = (sleeptime/1000)*10;
|
|
|
}
|
|
|
|
|
|
void
|
|
@@ -901,7 +902,7 @@ signalval(Machine *m, ulong *v, ulong *vmax, int)
|
|
|
{
|
|
|
ulong l;
|
|
|
|
|
|
- *vmax = 1000;
|
|
|
+ *vmax = sleeptime;
|
|
|
l = m->netetherifstats[0];
|
|
|
/*
|
|
|
* Range is seen to be from about -45 (strong) to -95 (weak); rescale
|
|
@@ -1211,7 +1212,6 @@ main(int argc, char *argv[])
|
|
|
char *s;
|
|
|
ulong v, vmax, nargs;
|
|
|
char args[100];
|
|
|
- int sleeptime = 1000;
|
|
|
|
|
|
nmach = 1;
|
|
|
mysysname = getenv("sysname");
|