.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = 0, /* wrap_get_cpu_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_stat_cpu,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_stat_pcsw,
#endif
#ifdef SOURCE_SAR
.group = G_INT,
#ifdef SOURCE_SADC
.f_count_index = 1, /* wrap_get_irq_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_stat_irq,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_swap,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_paging,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_io,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_meminfo,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_kernel_tables,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_loadavg,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = 2, /* wrap_get_serial_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_tty_driver_serial,
#endif
#ifdef SOURCE_SAR
.group = G_DISK,
#ifdef SOURCE_SADC
.f_count_index = 3, /* wrap_get_disk_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_disk,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = 4, /* wrap_get_iface_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_dev,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = 4, /* wrap_get_iface_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_edev,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_nfs,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_nfsd,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_sock,
#endif
#ifdef SOURCE_SAR
.group = G_SNMP,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_ip,
#endif
#ifdef SOURCE_SAR
.group = G_SNMP,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_eip,
#endif
#ifdef SOURCE_SAR
.group = G_SNMP,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_icmp,
#endif
#ifdef SOURCE_SAR
.group = G_SNMP,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_eicmp,
#endif
#ifdef SOURCE_SAR
.group = G_SNMP,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_tcp,
#endif
#ifdef SOURCE_SAR
.group = G_SNMP,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_etcp,
#endif
#ifdef SOURCE_SAR
.group = G_SNMP,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_udp,
#endif
#ifdef SOURCE_SAR
.group = G_IPV6,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_sock6,
#endif
#ifdef SOURCE_SAR
.group = G_IPV6,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_ip6,
#endif
#ifdef SOURCE_SAR
.group = G_IPV6,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_eip6,
#endif
#ifdef SOURCE_SAR
.group = G_IPV6,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_icmp6,
#endif
#ifdef SOURCE_SAR
.group = G_IPV6,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_eicmp6,
#endif
#ifdef SOURCE_SAR
.group = G_IPV6,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_net_udp6,
#endif
#ifdef SOURCE_SAR
.group = G_POWER,
#ifdef SOURCE_SADC
.f_count_index = 0, /* wrap_get_cpu_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_cpuinfo,
#endif
#ifdef SOURCE_SAR
.group = G_POWER,
#ifdef SOURCE_SADC
.f_count_index = 5, /* wrap_get_fan_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_fan,
#endif
#ifdef SOURCE_SAR
.group = G_POWER,
#ifdef SOURCE_SADC
.f_count_index = 6, /* wrap_get_temp_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_temp,
#endif
#ifdef SOURCE_SAR
.group = G_POWER,
#ifdef SOURCE_SADC
.f_count_index = 7, /* wrap_get_in_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_in,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = -1,
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_meminfo_huge,
#endif
#ifdef SOURCE_SAR
.group = G_POWER,
#ifdef SOURCE_SADC
.f_count_index = 0, /* wrap_get_cpu_nr() */
- .f_count2 = wrap_get_freq_nr,
+ .f_count2_index = 12, /* wrap_get_freq_nr() */
.f_read = wrap_read_cpu_wghfreq,
#endif
#ifdef SOURCE_SAR
.group = G_POWER,
#ifdef SOURCE_SADC
.f_count_index = 8, /* wrap_get_usb_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_bus_usb_dev,
#endif
#ifdef SOURCE_SAR
.group = G_XDISK,
#ifdef SOURCE_SADC
.f_count_index = 9, /* wrap_get_filesystem_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_filesystem,
#endif
#ifdef SOURCE_SAR
.group = G_DISK,
#ifdef SOURCE_SADC
.f_count_index = 10, /* wrap_get_fchost_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_fchost,
#endif
#ifdef SOURCE_SAR
.group = G_DEFAULT,
#ifdef SOURCE_SADC
.f_count_index = 0, /* wrap_get_cpu_nr() */
- .f_count2 = NULL,
+ .f_count2_index = -1,
.f_read = wrap_read_softnet,
#endif
#ifdef SOURCE_SAR
.magic = ACTIVITY_MAGIC_BASE,
.group = G_DEFAULT,
#ifdef SOURCE_SADC
- .f_count_index = 11,
- .f_count2 = NULL,
+ .f_count_index = 11, /* wrap_detect_psi() */
+ .f_count2_index = -1,
.f_read = wrap_read_psicpu,
#endif
#ifdef SOURCE_SAR
.magic = ACTIVITY_MAGIC_BASE,
.group = G_DEFAULT,
#ifdef SOURCE_SADC
- .f_count_index = 11,
- .f_count2 = NULL,
+ .f_count_index = 11, /* wrap_detect_psi() */
+ .f_count2_index = -1,
.f_read = wrap_read_psiio,
#endif
#ifdef SOURCE_SAR
.magic = ACTIVITY_MAGIC_BASE,
.group = G_DEFAULT,
#ifdef SOURCE_SADC
- .f_count_index = 11,
- .f_count2 = NULL,
+ .f_count_index = 11, /* wrap_detect_psi() */
+ .f_count2_index = -1,
.f_read = wrap_read_psimem,
#endif
#ifdef SOURCE_SAR
.buf = {NULL, NULL, NULL},
.bitmap = NULL
};
-
+/* wrap_detect_psi */
#ifdef SOURCE_SADC
/*
* Array of functions used to count number of items.
*/
__nr_t (*f_count[NR_F_COUNT]) (struct activity *) = {
- wrap_get_cpu_nr,
- wrap_get_irq_nr,
- wrap_get_serial_nr,
- wrap_get_disk_nr,
- wrap_get_iface_nr,
- wrap_get_fan_nr,
- wrap_get_temp_nr,
- wrap_get_in_nr,
- wrap_get_usb_nr,
- wrap_get_filesystem_nr,
- wrap_get_fchost_nr,
- wrap_detect_psi
+ wrap_get_cpu_nr, /* 0 */
+ wrap_get_irq_nr, /* 1 */
+ wrap_get_serial_nr, /* 2 */
+ wrap_get_disk_nr, /* 3 */
+ wrap_get_iface_nr, /* 4 */
+ wrap_get_fan_nr, /* 5 */
+ wrap_get_temp_nr, /* 6 */
+ wrap_get_in_nr, /* 7 */
+ wrap_get_usb_nr, /* 8 */
+ wrap_get_filesystem_nr, /* 9 */
+ wrap_get_fchost_nr, /* 10 */
+ wrap_detect_psi, /* 11 */
+ wrap_get_freq_nr /* 12 */
};
#endif