2018-05-21 00:53:42 +00:00
|
|
|
/* $FreeBSD$ */
|
1997-03-23 18:51:21 +00:00
|
|
|
/* constants needed for display.c */
|
|
|
|
|
|
|
|
#define MT_standout 1
|
|
|
|
#define MT_delayed 2
|
|
|
|
|
2018-06-04 04:59:32 +00:00
|
|
|
#include <sys/time.h>
|
|
|
|
struct statics;
|
2016-05-22 04:17:00 +00:00
|
|
|
|
|
|
|
int display_updatecpus(struct statics *statics);
|
|
|
|
void clear_message(void);
|
|
|
|
int display_resize(void);
|
2018-06-03 22:42:54 +00:00
|
|
|
void i_header(const char *text);
|
2016-05-22 04:17:00 +00:00
|
|
|
char *printable(char *string);
|
|
|
|
void display_header(int t);
|
|
|
|
int display_init(struct statics *statics);
|
|
|
|
void i_arc(int *stats);
|
Add ZFS compressed ARC stats to top(1)
Provides:
amount of compressed data
logical size of compressed data (how much it would have taken uncompressed)
compression ratio (logical size : total ARC size)
Overhead (space consumed for compression headers)
Example output:
ARC: 31G Total, 18G MFU, 9067M MRU, 2236K Anon, 615M Header, 2947M Other
25G Compressed, 54G Uncompressed, 1.76:1 Ratio, 2265M Overhead
Reviewed by: jpaetzel, smh, imp, jhb (previous version)
MFC after: 2 week
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D9829
2017-03-17 00:46:50 +00:00
|
|
|
void i_carc(int *stats);
|
2016-05-22 04:17:00 +00:00
|
|
|
void i_cpustates(int *states);
|
|
|
|
void i_loadave(int mpid, double *avenrun);
|
|
|
|
void i_memory(int *stats);
|
|
|
|
void i_message(void);
|
|
|
|
void i_process(int line, char *thisline);
|
|
|
|
void i_procstates(int total, int *brkdn);
|
|
|
|
void i_swap(int *stats);
|
|
|
|
void i_timeofday(time_t *tod);
|
|
|
|
void i_uptime(struct timeval *bt, time_t *tod);
|
2018-06-02 07:44:50 +00:00
|
|
|
void new_message(int type, const char *msgfmt, ...);
|
2018-05-21 00:53:42 +00:00
|
|
|
int readline(char *buffer, int size, int numeric);
|
2019-02-10 13:31:08 +00:00
|
|
|
char *trim_header(const char *text);
|
2016-05-22 04:17:00 +00:00
|
|
|
void u_arc(int *stats);
|
Add ZFS compressed ARC stats to top(1)
Provides:
amount of compressed data
logical size of compressed data (how much it would have taken uncompressed)
compression ratio (logical size : total ARC size)
Overhead (space consumed for compression headers)
Example output:
ARC: 31G Total, 18G MFU, 9067M MRU, 2236K Anon, 615M Header, 2947M Other
25G Compressed, 54G Uncompressed, 1.76:1 Ratio, 2265M Overhead
Reviewed by: jpaetzel, smh, imp, jhb (previous version)
MFC after: 2 week
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D9829
2017-03-17 00:46:50 +00:00
|
|
|
void u_carc(int *stats);
|
2016-05-22 04:17:00 +00:00
|
|
|
void u_cpustates(int *states);
|
|
|
|
void u_endscreen(int hi);
|
2018-06-03 22:42:54 +00:00
|
|
|
void u_header(const char *text);
|
2016-05-22 04:17:00 +00:00
|
|
|
void u_loadave(int mpid, double *avenrun);
|
|
|
|
void u_memory(int *stats);
|
|
|
|
void u_message(void);
|
|
|
|
void u_process(int line, char *newline);
|
|
|
|
void u_procstates(int total, int *brkdn);
|
|
|
|
void u_swap(int *stats);
|
|
|
|
void z_cpustates(void);
|