.hdr_line = "CPU;%user;%nice;%system;%iowait;%steal;%idle|"
"CPU;%usr;%nice;%sys;%iowait;%steal;%irq;%soft;%guest;%gnice;%idle",
#endif
- .gtypes_nr = {10, 0, 0},
+ .gtypes_nr = {STATS_CPU_ULL, STATS_CPU_UL, STATS_CPU_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_cpu_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "proc/s;cswch/s",
#endif
- .gtypes_nr = {1, 1, 0},
+ .gtypes_nr = {STATS_PCSW_ULL, STATS_PCSW_UL, STATS_PCSW_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_pcsw_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "INTR;intr/s",
#endif
- .gtypes_nr = {1, 0, 0},
+ .gtypes_nr = {STATS_IRQ_ULL, STATS_IRQ_UL, STATS_IRQ_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_irq_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "pswpin/s;pswpout/s",
#endif
- .gtypes_nr = {0, 2, 0},
+ .gtypes_nr = {STATS_SWAP_ULL, STATS_SWAP_UL, STATS_SWAP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_swap_stats,
.hdr_line = "pgpgin/s;pgpgout/s;fault/s;majflt/s;"
"pgfree/s;pgscank/s;pgscand/s;pgsteal/s;%vmeff",
#endif
- .gtypes_nr = {0, 8, 0},
+ .gtypes_nr = {STATS_PAGING_ULL, STATS_PAGING_UL, STATS_PAGING_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_paging_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "tps;rtps;wtps;bread/s;bwrtn/s",
#endif
- .gtypes_nr = {5, 0, 0},
+ .gtypes_nr = {STATS_IO_ULL, STATS_IO_UL, STATS_IO_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_io_stats,
.hdr_line = "kbmemfree;kbavail;kbmemused;%memused;kbbuffers;kbcached;kbcommit;%commit;kbactive;kbinact;kbdirty&kbanonpg;kbslab;kbkstack;kbpgtbl;kbvmused|"
"kbswpfree;kbswpused;%swpused;kbswpcad;%swpcad",
#endif
- .gtypes_nr = {0, 17, 0},
+ .gtypes_nr = {STATS_MEMORY_ULL, STATS_MEMORY_UL, STATS_MEMORY_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_memory_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "dentunusd;file-nr;inode-nr;pty-nr",
#endif
- .gtypes_nr = {0, 0, 4},
+ .gtypes_nr = {STATS_KTABLES_ULL, STATS_KTABLES_UL, STATS_KTABLES_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_ktables_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "runq-sz;plist-sz;ldavg-1;ldavg-5;ldavg-15;blocked",
#endif
- .gtypes_nr = {0, 2, 4},
+ .gtypes_nr = {STATS_QUEUE_ULL, STATS_QUEUE_UL, STATS_QUEUE_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_queue_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "TTY;rcvin/s;txmtin/s;framerr/s;prtyerr/s;brk/s;ovrun/s",
#endif
- .gtypes_nr = {0, 0, 7},
+ .gtypes_nr = {STATS_SERIAL_ULL, STATS_SERIAL_UL, STATS_SERIAL_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_serial_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "DEV;tps;rkB/s;wkB/s;areq-sz;aqu-sz;await;svctm;%util",
#endif
- .gtypes_nr = {1, 2, 6},
+ .gtypes_nr = {STATS_DISK_ULL, STATS_DISK_UL, STATS_DISK_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_disk_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "IFACE;rxpck/s;txpck/s;rxkB/s;txkB/s;rxcmp/s;txcmp/s;rxmcst/s;%ifutil",
#endif
- .gtypes_nr = {7, 0, 1},
+ .gtypes_nr = {STATS_NET_DEV_ULL, STATS_NET_DEV_UL, STATS_NET_DEV_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_dev_stats,
.hdr_line = "IFACE;rxerr/s;txerr/s;coll/s;rxdrop/s;txdrop/s;"
"txcarr/s;rxfram/s;rxfifo/s;txfifo/s",
#endif
- .gtypes_nr = {9, 0, 0},
+ .gtypes_nr = {STATS_NET_EDEV_ULL, STATS_NET_EDEV_UL, STATS_NET_EDEV_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_edev_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "call/s;retrans/s;read/s;write/s;access/s;getatt/s",
#endif
- .gtypes_nr = {0, 0, 6},
+ .gtypes_nr = {STATS_NET_NFS_ULL, STATS_NET_NFS_UL, STATS_NET_NFS_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_nfs_stats,
.hdr_line = "scall/s;badcall/s;packet/s;udp/s;tcp/s;hit/s;miss/s;"
"sread/s;swrite/s;saccess/s;sgetatt/s",
#endif
- .gtypes_nr = {0, 0, 11},
+ .gtypes_nr = {STATS_NET_NFSD_ULL, STATS_NET_NFSD_UL, STATS_NET_NFSD_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_nfsd_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "totsck;tcpsck;udpsck;rawsck;ip-frag;tcp-tw",
#endif
- .gtypes_nr = {0, 0, 6},
+ .gtypes_nr = {STATS_NET_SOCK_ULL, STATS_NET_SOCK_UL, STATS_NET_SOCK_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_sock_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "irec/s;fwddgm/s;idel/s;orq/s;asmrq/s;asmok/s;fragok/s;fragcrt/s",
#endif
- .gtypes_nr = {8, 0, 0},
+ .gtypes_nr = {STATS_NET_IP_ULL, STATS_NET_IP_UL, STATS_NET_IP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_ip_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "ihdrerr/s;iadrerr/s;iukwnpr/s;idisc/s;odisc/s;onort/s;asmf/s;fragf/s",
#endif
- .gtypes_nr = {8, 0, 0},
+ .gtypes_nr = {STATS_NET_EIP_ULL, STATS_NET_EIP_UL, STATS_NET_EIP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_eip_stats,
.hdr_line = "imsg/s;omsg/s;iech/s;iechr/s;oech/s;oechr/s;itm/s;itmr/s;otm/s;"
"otmr/s;iadrmk/s;iadrmkr/s;oadrmk/s;oadrmkr/s",
#endif
- .gtypes_nr = {0, 14, 0},
+ .gtypes_nr = {STATS_NET_ICMP_ULL, STATS_NET_ICMP_UL, STATS_NET_ICMP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_icmp_stats,
.hdr_line = "ierr/s;oerr/s;idstunr/s;odstunr/s;itmex/s;otmex/s;"
"iparmpb/s;oparmpb/s;isrcq/s;osrcq/s;iredir/s;oredir/s",
#endif
- .gtypes_nr = {0, 12, 0},
+ .gtypes_nr = {STATS_NET_EICMP_ULL, STATS_NET_EICMP_UL, STATS_NET_EICMP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_eicmp_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "active/s;passive/s;iseg/s;oseg/s",
#endif
- .gtypes_nr = {0, 4, 0},
+ .gtypes_nr = {STATS_NET_TCP_ULL, STATS_NET_TCP_UL, STATS_NET_TCP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_tcp_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "atmptf/s;estres/s;retrans/s;isegerr/s;orsts/s",
#endif
- .gtypes_nr = {0, 5, 0},
+ .gtypes_nr = {STATS_NET_ETCP_ULL, STATS_NET_ETCP_UL, STATS_NET_ETCP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_etcp_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "idgm/s;odgm/s;noport/s;idgmerr/s",
#endif
- .gtypes_nr = {0, 4, 0},
+ .gtypes_nr = {STATS_NET_UDP_ULL, STATS_NET_UDP_UL, STATS_NET_UDP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_udp_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "tcp6sck;udp6sck;raw6sck;ip6-frag",
#endif
- .gtypes_nr = {0, 0, 4},
+ .gtypes_nr = {STATS_NET_SOCK6_ULL, STATS_NET_SOCK6_UL, STATS_NET_SOCK6_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_sock6_stats,
.hdr_line = "irec6/s;fwddgm6/s;idel6/s;orq6/s;asmrq6/s;asmok6/s;"
"imcpck6/s;omcpck6/s;fragok6/s;fragcr6/s",
#endif
- .gtypes_nr = {10, 0, 0},
+ .gtypes_nr = {STATS_NET_IP6_ULL, STATS_NET_IP6_UL, STATS_NET_IP6_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_ip6_stats,
.hdr_line = "ihdrer6/s;iadrer6/s;iukwnp6/s;i2big6/s;idisc6/s;odisc6/s;"
"inort6/s;onort6/s;asmf6/s;fragf6/s;itrpck6/s",
#endif
- .gtypes_nr = {11, 0, 0},
+ .gtypes_nr = {STATS_NET_EIP6_ULL, STATS_NET_EIP6_UL, STATS_NET_EIP6_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_eip6_stats,
"igmbrd6/s;ogmbrd6/s;irtsol6/s;ortsol6/s;irtad6/s;inbsol6/s;onbsol6/s;"
"inbad6/s;onbad6/s",
#endif
- .gtypes_nr = {0, 17, 0},
+ .gtypes_nr = {STATS_NET_ICMP6_ULL, STATS_NET_ICMP6_UL, STATS_NET_ICMP6_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_icmp6_stats,
.hdr_line = "ierr6/s;idtunr6/s;odtunr6/s;itmex6/s;otmex6/s;"
"iprmpb6/s;oprmpb6/s;iredir6/s;oredir6/s;ipck2b6/s;opck2b6/s",
#endif
- .gtypes_nr = {0, 11, 0},
+ .gtypes_nr = {STATS_NET_EICMP6_ULL, STATS_NET_EICMP6_UL, STATS_NET_EICMP6_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_eicmp6_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "idgm6/s;odgm6/s;noport6/s;idgmer6/s",
#endif
- .gtypes_nr = {0, 4, 0},
+ .gtypes_nr = {STATS_NET_UDP6_ULL, STATS_NET_UDP6_UL, STATS_NET_UDP6_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_net_udp6_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "CPU;MHz",
#endif
- .gtypes_nr = {0, 1, 0},
+ .gtypes_nr = {STATS_PWR_CPUFREQ_ULL, STATS_PWR_CPUFREQ_UL, STATS_PWR_CPUFREQ_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_pwr_cpufreq_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "FAN;DEVICE;rpm;drpm",
#endif
- .gtypes_nr = {2, 0, 0},
+ .gtypes_nr = {STATS_PWR_FAN_ULL, STATS_PWR_FAN_UL, STATS_PWR_FAN_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_pwr_fan_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "TEMP;DEVICE;degC;%temp",
#endif
- .gtypes_nr = {3, 0, 0},
+ .gtypes_nr = {STATS_PWR_TEMP_ULL, STATS_PWR_TEMP_UL, STATS_PWR_TEMP_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_pwr_temp_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "IN;DEVICE;inV;%in",
#endif
- .gtypes_nr = {3, 0, 0},
+ .gtypes_nr = {STATS_PWR_IN_ULL, STATS_PWR_IN_UL, STATS_PWR_IN_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_pwr_in_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "kbhugfree;kbhugused;%hugused",
#endif
- .gtypes_nr = {0, 2, 0},
+ .gtypes_nr = {STATS_HUGE_ULL, STATS_HUGE_UL, STATS_HUGE_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_huge_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "CPU;wghMHz",
#endif
- .gtypes_nr = {1, 1, 0},
+ .gtypes_nr = {STATS_PWR_WGHFREQ_ULL, STATS_PWR_WGHFREQ_UL, STATS_PWR_WGHFREQ_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_pwr_wghfreq_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "manufact;product;BUS;idvendor;idprod;maxpower",
#endif
- .gtypes_nr = {0, 0, 4},
+ .gtypes_nr = {STATS_PWR_USB_ULL, STATS_PWR_USB_UL, STATS_PWR_USB_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_pwr_usb_stats,
.hdr_line = "FILESYSTEM;MBfsfree;MBfsused;%fsused;%ufsused;Ifree;Iused;%Iused|"
"MOUNTPOINT;MBfsfree;MBfsused;%fsused;%ufsused;Ifree;Iused;%Iused",
#endif
- .gtypes_nr = {5, 0, 0},
+ .gtypes_nr = {STATS_FILESYSTEM_ULL, STATS_FILESYSTEM_UL, STATS_FILESYSTEM_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_filesystem_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "FCHOST;fch_rxf/s;fch_txf/s;fch_rxw/s;fch_txw/s",
#endif
- .gtypes_nr = {0, 4, 0},
+ .gtypes_nr = {STATS_FCHOST_ULL, STATS_FCHOST_UL, STATS_FCHOST_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_fchost_stats,
#if defined(SOURCE_SAR) || defined(SOURCE_SADF)
.hdr_line = "CPU;total/s;dropd/s;squeezd/s;rx_rps/s;flw_lim/s",
#endif
- .gtypes_nr = {0, 0, 5},
+ .gtypes_nr = {STATS_SOFTNET_ULL, STATS_SOFTNET_UL, STATS_SOFTNET_U},
.ftypes_nr = {0, 0, 0},
#ifdef SOURCE_SADF
.f_render = render_softnet_stats,
};
#define STATS_PWR_FAN_SIZE (sizeof(struct stats_pwr_fan))
+#define STATS_PWR_FAN_ULL 2
+#define STATS_PWR_FAN_UL 0
+#define STATS_PWR_FAN_U 0
/*
* Structure for device temperature statistics.
};
#define STATS_PWR_TEMP_SIZE (sizeof(struct stats_pwr_temp))
+#define STATS_PWR_TEMP_ULL 3
+#define STATS_PWR_TEMP_UL 0
+#define STATS_PWR_TEMP_U 0
/*
* Structure for voltage inputs statistics.
};
#define STATS_PWR_IN_SIZE (sizeof(struct stats_pwr_in))
+#define STATS_PWR_IN_ULL 3
+#define STATS_PWR_IN_UL 0
+#define STATS_PWR_IN_U 0
/*
***************************************************************************
};
#define STATS_CPU_SIZE (sizeof(struct stats_cpu))
+#define STATS_CPU_ULL 10
+#define STATS_CPU_UL 0
+#define STATS_CPU_U 0
/*
* Structure for task creation and context switch statistics.
*/
struct stats_pcsw {
unsigned long long context_switch;
- unsigned long processes __attribute__ ((aligned (8)));
+ unsigned long processes __attribute__ ((aligned (8)));
};
#define STATS_PCSW_SIZE (sizeof(struct stats_pcsw))
+#define STATS_PCSW_ULL 1
+#define STATS_PCSW_UL 1
+#define STATS_PCSW_U 0
/*
* Structure for interrupts statistics.
* In activity buffer: First structure is for total number of interrupts ("SUM").
* Following structures are for each individual interrupt (0, 1, etc.)
- *
- * NOTE: The total number of interrupts is saved as a %llu by the kernel,
- * whereas individual interrupts are saved as %u.
*/
struct stats_irq {
unsigned long long irq_nr;
};
#define STATS_IRQ_SIZE (sizeof(struct stats_irq))
+#define STATS_IRQ_ULL 1
+#define STATS_IRQ_UL 0
+#define STATS_IRQ_U 0
/* Structure for swapping statistics */
struct stats_swap {
};
#define STATS_SWAP_SIZE (sizeof(struct stats_swap))
+#define STATS_SWAP_ULL 0
+#define STATS_SWAP_UL 2
+#define STATS_SWAP_U 0
/* Structure for paging statistics */
struct stats_paging {
};
#define STATS_PAGING_SIZE (sizeof(struct stats_paging))
+#define STATS_PAGING_ULL 0
+#define STATS_PAGING_UL 8
+#define STATS_PAGING_U 0
/* Structure for I/O and transfer rate statistics */
struct stats_io {
};
#define STATS_IO_SIZE (sizeof(struct stats_io))
+#define STATS_IO_ULL 5
+#define STATS_IO_UL 0
+#define STATS_IO_U 0
/* Structure for memory and swap space utilization statistics */
struct stats_memory {
- unsigned long frmkb __attribute__ ((aligned (8)));
- unsigned long bufkb __attribute__ ((aligned (8)));
- unsigned long camkb __attribute__ ((aligned (8)));
- unsigned long tlmkb __attribute__ ((aligned (8)));
- unsigned long frskb __attribute__ ((aligned (8)));
- unsigned long tlskb __attribute__ ((aligned (8)));
- unsigned long caskb __attribute__ ((aligned (8)));
- unsigned long comkb __attribute__ ((aligned (8)));
- unsigned long activekb __attribute__ ((aligned (8)));
- unsigned long inactkb __attribute__ ((aligned (8)));
- unsigned long dirtykb __attribute__ ((aligned (8)));
- unsigned long anonpgkb __attribute__ ((aligned (8)));
- unsigned long slabkb __attribute__ ((aligned (8)));
- unsigned long kstackkb __attribute__ ((aligned (8)));
- unsigned long pgtblkb __attribute__ ((aligned (8)));
- unsigned long vmusedkb __attribute__ ((aligned (8)));
- unsigned long availablekb __attribute__ ((aligned (8)));
+ unsigned long long frmkb;
+ unsigned long long bufkb;
+ unsigned long long camkb;
+ unsigned long long tlmkb;
+ unsigned long long frskb;
+ unsigned long long tlskb;
+ unsigned long long caskb;
+ unsigned long long comkb;
+ unsigned long long activekb;
+ unsigned long long inactkb;
+ unsigned long long dirtykb;
+ unsigned long long anonpgkb;
+ unsigned long long slabkb;
+ unsigned long long kstackkb;
+ unsigned long long pgtblkb;
+ unsigned long long vmusedkb;
+ unsigned long long availablekb;
};
#define STATS_MEMORY_SIZE (sizeof(struct stats_memory))
+#define STATS_MEMORY_ULL 17
+#define STATS_MEMORY_UL 0
+#define STATS_MEMORY_U 0
/* Structure for kernel tables statistics */
struct stats_ktables {
- unsigned int file_used;
- unsigned int inode_used;
- unsigned int dentry_stat;
- unsigned int pty_nr;
+ unsigned long long file_used;
+ unsigned long long inode_used;
+ unsigned long long dentry_stat;
+ unsigned long long pty_nr;
};
#define STATS_KTABLES_SIZE (sizeof(struct stats_ktables))
+#define STATS_KTABLES_ULL 4
+#define STATS_KTABLES_UL 0
+#define STATS_KTABLES_U 0
/* Structure for queue and load statistics */
struct stats_queue {
- unsigned long nr_running __attribute__ ((aligned (8)));
- unsigned long procs_blocked __attribute__ ((aligned (8)));
- unsigned int load_avg_1 __attribute__ ((aligned (8)));
- unsigned int load_avg_5;
- unsigned int load_avg_15;
- unsigned int nr_threads;
+ unsigned long long nr_running;
+ unsigned long long procs_blocked;
+ unsigned long long nr_threads;
+ unsigned int load_avg_1;
+ unsigned int load_avg_5;
+ unsigned int load_avg_15;
};
#define STATS_QUEUE_SIZE (sizeof(struct stats_queue))
+#define STATS_QUEUE_ULL 3
+#define STATS_QUEUE_UL 0
+#define STATS_QUEUE_U 3
/* Structure for serial statistics */
struct stats_serial {
};
#define STATS_SERIAL_SIZE (sizeof(struct stats_serial))
+#define STATS_SERIAL_ULL 0
+#define STATS_SERIAL_UL 0
+#define STATS_SERIAL_U 7
/* Structure for block devices statistics */
struct stats_disk {
unsigned long long nr_ios;
- unsigned long rd_sect __attribute__ ((aligned (8)));
- unsigned long wr_sect __attribute__ ((aligned (8)));
- unsigned int rd_ticks __attribute__ ((aligned (8)));
- unsigned int wr_ticks;
- unsigned int tot_ticks;
- unsigned int rq_ticks;
- unsigned int major;
- unsigned int minor;
+ unsigned long rd_sect __attribute__ ((aligned (8)));
+ unsigned long wr_sect __attribute__ ((aligned (8)));
+ unsigned int rd_ticks __attribute__ ((aligned (8)));
+ unsigned int wr_ticks;
+ unsigned int tot_ticks;
+ unsigned int rq_ticks;
+ unsigned int major;
+ unsigned int minor;
};
#define STATS_DISK_SIZE (sizeof(struct stats_disk))
+#define STATS_DISK_ULL 1
+#define STATS_DISK_UL 2
+#define STATS_DISK_U 6
/* Structure for network interfaces statistics */
struct stats_net_dev {
unsigned long long rx_compressed;
unsigned long long tx_compressed;
unsigned long long multicast;
- unsigned int speed;
- char interface[MAX_IFACE_LEN];
- char duplex;
+ unsigned int speed;
+ char interface[MAX_IFACE_LEN];
+ char duplex;
};
#define STATS_NET_DEV_SIZE (sizeof(struct stats_net_dev))
+#define STATS_NET_DEV_ULL 7
+#define STATS_NET_DEV_UL 0
+#define STATS_NET_DEV_U 1
/* Structure for network interface errors statistics */
struct stats_net_edev {
unsigned long long tx_fifo_errors;
unsigned long long rx_frame_errors;
unsigned long long tx_carrier_errors;
- char interface[MAX_IFACE_LEN];
+ char interface[MAX_IFACE_LEN];
};
#define STATS_NET_EDEV_SIZE (sizeof(struct stats_net_edev))
+#define STATS_NET_EDEV_ULL 9
+#define STATS_NET_EDEV_UL 0
+#define STATS_NET_EDEV_U 0
/* Structure for NFS client statistics */
struct stats_net_nfs {
- unsigned int nfs_rpccnt;
- unsigned int nfs_rpcretrans;
- unsigned int nfs_readcnt;
- unsigned int nfs_writecnt;
- unsigned int nfs_accesscnt;
- unsigned int nfs_getattcnt;
+ unsigned int nfs_rpccnt;
+ unsigned int nfs_rpcretrans;
+ unsigned int nfs_readcnt;
+ unsigned int nfs_writecnt;
+ unsigned int nfs_accesscnt;
+ unsigned int nfs_getattcnt;
};
#define STATS_NET_NFS_SIZE (sizeof(struct stats_net_nfs))
+#define STATS_NET_NFS_ULL 0
+#define STATS_NET_NFS_UL 0
+#define STATS_NET_NFS_U 6
/* Structure for NFS server statistics */
struct stats_net_nfsd {
- unsigned int nfsd_rpccnt;
- unsigned int nfsd_rpcbad;
- unsigned int nfsd_netcnt;
- unsigned int nfsd_netudpcnt;
- unsigned int nfsd_nettcpcnt;
- unsigned int nfsd_rchits;
- unsigned int nfsd_rcmisses;
- unsigned int nfsd_readcnt;
- unsigned int nfsd_writecnt;
- unsigned int nfsd_accesscnt;
- unsigned int nfsd_getattcnt;
+ unsigned int nfsd_rpccnt;
+ unsigned int nfsd_rpcbad;
+ unsigned int nfsd_netcnt;
+ unsigned int nfsd_netudpcnt;
+ unsigned int nfsd_nettcpcnt;
+ unsigned int nfsd_rchits;
+ unsigned int nfsd_rcmisses;
+ unsigned int nfsd_readcnt;
+ unsigned int nfsd_writecnt;
+ unsigned int nfsd_accesscnt;
+ unsigned int nfsd_getattcnt;
};
#define STATS_NET_NFSD_SIZE (sizeof(struct stats_net_nfsd))
+#define STATS_NET_NFSD_ULL 0
+#define STATS_NET_NFSD_UL 0
+#define STATS_NET_NFSD_U 11
/* Structure for IPv4 sockets statistics */
struct stats_net_sock {
- unsigned int sock_inuse;
- unsigned int tcp_inuse;
- unsigned int tcp_tw;
- unsigned int udp_inuse;
- unsigned int raw_inuse;
- unsigned int frag_inuse;
+ unsigned int sock_inuse;
+ unsigned int tcp_inuse;
+ unsigned int tcp_tw;
+ unsigned int udp_inuse;
+ unsigned int raw_inuse;
+ unsigned int frag_inuse;
};
#define STATS_NET_SOCK_SIZE (sizeof(struct stats_net_sock))
+#define STATS_NET_SOCK_ULL 0
+#define STATS_NET_SOCK_UL 0
+#define STATS_NET_SOCK_U 6
/* Structure for IP statistics */
struct stats_net_ip {
};
#define STATS_NET_IP_SIZE (sizeof(struct stats_net_ip))
+#define STATS_NET_IP_ULL 8
+#define STATS_NET_IP_UL 0
+#define STATS_NET_IP_U 0
/* Structure for IP errors statistics */
struct stats_net_eip {
};
#define STATS_NET_EIP_SIZE (sizeof(struct stats_net_eip))
+#define STATS_NET_EIP_ULL 8
+#define STATS_NET_EIP_UL 0
+#define STATS_NET_EIP_U 0
/* Structure for ICMP statistics */
struct stats_net_icmp {
};
#define STATS_NET_ICMP_SIZE (sizeof(struct stats_net_icmp))
+#define STATS_NET_ICMP_ULL 0
+#define STATS_NET_ICMP_UL 14
+#define STATS_NET_ICMP_U 0
/* Structure for ICMP error message statistics */
struct stats_net_eicmp {
};
#define STATS_NET_EICMP_SIZE (sizeof(struct stats_net_eicmp))
+#define STATS_NET_EICMP_ULL 0
+#define STATS_NET_EICMP_UL 12
+#define STATS_NET_EICMP_U 0
/* Structure for TCP statistics */
struct stats_net_tcp {
};
#define STATS_NET_TCP_SIZE (sizeof(struct stats_net_tcp))
+#define STATS_NET_TCP_ULL 0
+#define STATS_NET_TCP_UL 4
+#define STATS_NET_TCP_U 0
/* Structure for TCP errors statistics */
struct stats_net_etcp {
};
#define STATS_NET_ETCP_SIZE (sizeof(struct stats_net_etcp))
+#define STATS_NET_ETCP_ULL 0
+#define STATS_NET_ETCP_UL 5
+#define STATS_NET_ETCP_U 0
/* Structure for UDP statistics */
struct stats_net_udp {
};
#define STATS_NET_UDP_SIZE (sizeof(struct stats_net_udp))
+#define STATS_NET_UDP_ULL 0
+#define STATS_NET_UDP_UL 4
+#define STATS_NET_UDP_U 0
+
+/* Structure for IPv6 sockets statistics */
+struct stats_net_sock6 {
+ unsigned int tcp6_inuse;
+ unsigned int udp6_inuse;
+ unsigned int raw6_inuse;
+ unsigned int frag6_inuse;
+};
+
+#define STATS_NET_SOCK6_SIZE (sizeof(struct stats_net_sock6))
+#define STATS_NET_SOCK6_ULL 0
+#define STATS_NET_SOCK6_UL 0
+#define STATS_NET_SOCK6_U 4
/* Structure for IPv6 statistics */
struct stats_net_ip6 {
};
#define STATS_NET_IP6_SIZE (sizeof(struct stats_net_ip6))
+#define STATS_NET_IP6_ULL 10
+#define STATS_NET_IP6_UL 0
+#define STATS_NET_IP6_U 0
/* Structure for IPv6 errors statistics */
struct stats_net_eip6 {
};
#define STATS_NET_EIP6_SIZE (sizeof(struct stats_net_eip6))
+#define STATS_NET_EIP6_ULL 11
+#define STATS_NET_EIP6_UL 0
+#define STATS_NET_EIP6_U 0
/* Structure for ICMPv6 statistics */
struct stats_net_icmp6 {
};
#define STATS_NET_ICMP6_SIZE (sizeof(struct stats_net_icmp6))
+#define STATS_NET_ICMP6_ULL 0
+#define STATS_NET_ICMP6_UL 17
+#define STATS_NET_ICMP6_U 0
/* Structure for ICMPv6 error message statistics */
struct stats_net_eicmp6 {
};
#define STATS_NET_EICMP6_SIZE (sizeof(struct stats_net_eicmp6))
+#define STATS_NET_EICMP6_ULL 0
+#define STATS_NET_EICMP6_UL 11
+#define STATS_NET_EICMP6_U 0
/* Structure for UDPv6 statistics */
struct stats_net_udp6 {
};
#define STATS_NET_UDP6_SIZE (sizeof(struct stats_net_udp6))
-
-/* Structure for IPv6 sockets statistics */
-struct stats_net_sock6 {
- unsigned int tcp6_inuse;
- unsigned int udp6_inuse;
- unsigned int raw6_inuse;
- unsigned int frag6_inuse;
-};
-
-#define STATS_NET_SOCK6_SIZE (sizeof(struct stats_net_sock6))
+#define STATS_NET_UDP6_ULL 0
+#define STATS_NET_UDP6_UL 4
+#define STATS_NET_UDP6_U 0
/*
* Structure for CPU frequency statistics.
};
#define STATS_PWR_CPUFREQ_SIZE (sizeof(struct stats_pwr_cpufreq))
+#define STATS_PWR_CPUFREQ_ULL 0
+#define STATS_PWR_CPUFREQ_UL 1
+#define STATS_PWR_CPUFREQ_U 0
/* Structure for hugepages statistics */
struct stats_huge {
- unsigned long frhkb __attribute__ ((aligned (8)));
- unsigned long tlhkb __attribute__ ((aligned (8)));
+ unsigned long long frhkb;
+ unsigned long long tlhkb;
};
#define STATS_HUGE_SIZE (sizeof(struct stats_memory))
+#define STATS_HUGE_ULL 2
+#define STATS_HUGE_UL 0
+#define STATS_HUGE_U 0
/*
* Structure for weighted CPU frequency statistics.
* Following structures are for each individual CPU (0, 1, etc.)
*/
struct stats_pwr_wghfreq {
- unsigned long long time_in_state;
- unsigned long freq __attribute__ ((aligned (8)));
+ unsigned long long time_in_state;
+ unsigned long freq __attribute__ ((aligned (8)));
};
#define STATS_PWR_WGHFREQ_SIZE (sizeof(struct stats_pwr_wghfreq))
+#define STATS_PWR_WGHFREQ_ULL 1
+#define STATS_PWR_WGHFREQ_UL 1
+#define STATS_PWR_WGHFREQ_U 0
/*
* Structure for USB devices plugged into the system.
*/
struct stats_pwr_usb {
- unsigned int bus_nr;
- unsigned int vendor_id;
- unsigned int product_id;
- unsigned int bmaxpower;
- char manufacturer[MAX_MANUF_LEN];
- char product[MAX_PROD_LEN];
+ unsigned int bus_nr;
+ unsigned int vendor_id;
+ unsigned int product_id;
+ unsigned int bmaxpower;
+ char manufacturer[MAX_MANUF_LEN];
+ char product[MAX_PROD_LEN];
};
#define STATS_PWR_USB_SIZE (sizeof(struct stats_pwr_usb))
+#define STATS_PWR_USB_ULL 0
+#define STATS_PWR_USB_UL 0
+#define STATS_PWR_USB_U 4
/* Structure for filesystems statistics */
struct stats_filesystem {
};
#define STATS_FILESYSTEM_SIZE (sizeof(struct stats_filesystem))
+#define STATS_FILESYSTEM_ULL 5
+#define STATS_FILESYSTEM_UL 0
+#define STATS_FILESYSTEM_U 0
/* Structure for Fibre Channel HBA statistics */
struct stats_fchost {
};
#define STATS_FCHOST_SIZE (sizeof(struct stats_fchost))
+#define STATS_FCHOST_ULL 0
+#define STATS_FCHOST_UL 4
+#define STATS_FCHOST_U 0
/* Structure for softnet statistics */
struct stats_softnet {
};
#define STATS_SOFTNET_SIZE (sizeof(struct stats_softnet))
+#define STATS_SOFTNET_ULL 0
+#define STATS_SOFTNET_UL 0
+#define STATS_SOFTNET_U 5
/*
***************************************************************************