1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
/*
* rndr_stats.h: Include file used to display system statistics in selected format.
* (C) 1999-2018 by Sebastien Godard (sysstat <at> orange.fr)
*/
#ifndef _RNDR_STATS_H
#define _RNDR_STATS_H
#include "common.h"
/*
***************************************************************************
* Definitions for functions used by sadf.
***************************************************************************
*/
#define PT_NOFLAG 0x0000 /* Prevent undescribed '0' in render calls */
#define PT_USEINT 0x0001 /* Use the integer arg, not double nor string */
#define PT_NEWLIN 0x0002 /* Terminate the current output line */
#define PT_USESTR 0x0004 /* Use the string arg */
#define PT_USERND 0x0008 /* Double value, format %.0f */
#define NOVAL 0 /* For placeholder zeros */
#define DNOVAL 0.0 /* Wilma! */
/*
* Conses are used to type independent passing
* of variable optional data into our rendering routine.
*/
typedef enum e_tcons {iv, sv} tcons; /* Types of conses */
typedef struct {
tcons t; /* Type in {iv,sv} */
union {
unsigned long int i;
char *s;
} a, b; /* Value pair, either ints or char *s */
} Cons;
/*
***************************************************************************
* Prototypes for functions used to display system statistics in selected
* format.
***************************************************************************
*/
/* Functions used to display statistics in the format selected by sadf */
__print_funct_t render_pcsw_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_cpu_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_irq_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_swap_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_paging_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_io_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_memory_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_ktables_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_queue_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_serial_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_disk_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_dev_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_edev_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_nfs_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_nfsd_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_sock_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_ip_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_eip_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_icmp_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_eicmp_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_tcp_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_etcp_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_udp_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_sock6_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_ip6_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_eip6_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_icmp6_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_eicmp6_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_net_udp6_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_pwr_cpufreq_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_pwr_fan_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_pwr_temp_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_pwr_in_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_huge_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_pwr_wghfreq_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_pwr_usb_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_filesystem_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_fchost_stats
(struct activity *, int, char *, int, unsigned long long);
__print_funct_t render_softnet_stats
(struct activity *, int, char *, int, unsigned long long);
#endif /* _RNDR_STATS_H */
|