version 1.140, 2016/07/27 14:44:59 |
version 1.141, 2016/08/14 22:47:26 |
|
|
/* |
/* |
* Force a header to be prepended to the next output. |
* Force a header to be prepended to the next output. |
*/ |
*/ |
/* ARGSUSED */ |
|
void |
void |
needhdr(int signo) |
needhdr(__unused int signo) |
{ |
{ |
|
|
hdrcnt = 1; |
hdrcnt = 1; |
|
|
inttotal = 0; |
inttotal = 0; |
for (i = 0; i < nintr; i++) { |
for (i = 0; i < nintr; i++) { |
char name[128]; |
char name[128]; |
u_quad_t cnt; |
uint64_t cnt; |
int vector; |
int vector; |
|
|
mib[0] = CTL_KERN; |
mib[0] = CTL_KERN; |
|
|
int i, j, len, size, first, mib[4]; |
int i, j, len, size, first, mib[4]; |
u_long totuse = 0, totfree = 0; |
u_long totuse = 0, totfree = 0; |
char buf[BUFSIZ], *bufp, *ap; |
char buf[BUFSIZ], *bufp, *ap; |
quad_t totreq = 0; |
unsigned long long totreq = 0; |
const char *name; |
const char *name; |
size_t siz; |
size_t siz; |
|
|
|
|
totreq += ks->ks_calls; |
totreq += ks->ks_calls; |
} |
} |
(void)printf("\nMemory Totals: In Use Free Requests\n"); |
(void)printf("\nMemory Totals: In Use Free Requests\n"); |
(void)printf(" %7luK %6luK %8qu\n", |
(void)printf(" %7luK %6luK %8llu\n", |
(totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq); |
(totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq); |
} |
} |
|
|