* one have been disabled, we get the total number of proc since we use
* /sys to count them).
* 2: two proc...
+ *
+ * USED BY:
+ * sadc, cifsiostat, iostat, mpstat, pidstat, tapestat
***************************************************************************
*/
__nr_t get_cpu_nr(unsigned int max_nr_cpus, int highest)
*
* RETURNS:
* Number of interrupts per processor.
+ *
+ * USED BY:
+ * sadc, mpstat
***************************************************************************
*/
__nr_t get_irqcpu_nr(char *file, int max_nr_irqcpu, int cpu_nr)
*
* (*)This doesn't account for all processors in the machine in the case
* where some CPU are offline and located at the end of the list.
+ *
+ * USED BY:
+ * sadc, iostat, mpstat, pidstat
***************************************************************************
*/
__nr_t read_stat_cpu(struct stats_cpu *st_cpu, __nr_t nr_alloc)
*
* RETURNS:
* 1 on success, 0 otherwise.
+ *
+ * USED BY:
+ * sadc, pidstat
***************************************************************************
*/
__nr_t read_meminfo(struct stats_memory *st_memory)
*
* OUT:
* @uptime Uptime value in hundredths of a second.
+ *
+ * USED BY:
+ * sadc, cifsiostat, iostat, mpstat, pidstat
***************************************************************************
*/
void read_uptime(unsigned long long *uptime)
*
* OUT:
* @xds Structure with extended statistics.
+ *
+ * USED BY:
+ * sar, sadf, iostat
***************************************************************************
*/
void compute_ext_disk_stats(struct stats_disk *sdc, struct stats_disk *sdp,
*
* RETURNS:
* Interval of time based on current CPU, expressed in jiffies.
+ *
+ * USED BY:
+ * sar, sadf, mpstat
***************************************************************************
*/
unsigned long long get_per_cpu_interval(struct stats_cpu *scc,
***************************************************************************
*/
int read_softnet(struct stats_softnet *st_softnet, __nr_t nr_alloc,
- unsigned char online_cpu_bitmap[])
+ unsigned char online_cpu_bitmap[])
{
FILE *fp;
struct stats_softnet *st_softnet_i;
/*
* Structure for CPU statistics.
- * In activity buffer: First structure is for global CPU utilisation ("all").
+ * In activity buffer: First structure is for global CPU utilization ("all").
* Following structures are for each individual CPU (0, 1, etc.)
+ *
+ * Used by: sadc, sar, sadf, iostat, mpstat, pidstat
*/
struct stats_cpu {
unsigned long long cpu_user;
#define STATS_IO_UL 0
#define STATS_IO_U 0
-/* Structure for memory and swap space utilization statistics */
+/*
+ * Structure for memory and swap space utilization statistics.
+ *
+ * Used by: sadc, sar, sadf, pidstat
+ */
struct stats_memory {
unsigned long long frmkb;
unsigned long long bufkb;
#define STATS_SERIAL_UL 0
#define STATS_SERIAL_U 7
-/* Structure for block devices statistics */
+/*
+ * Structure for block devices statistics.
+ *
+ * Used by: sadc, sar, sadf, iostat
+ */
struct stats_disk {
unsigned long long nr_ios;
unsigned long long wwn[2];
/*
* Structure for CPU frequency statistics.
- * In activity buffer: First structure is for global CPU utilisation ("all").
+ * In activity buffer: First structure is for global CPU utilization ("all").
* Following structures are for each individual CPU (0, 1, etc.)
*/
struct stats_pwr_cpufreq {
/*
* Structure for weighted CPU frequency statistics.
- * In activity buffer: First structure is for global CPU utilisation ("all").
+ * In activity buffer: First structure is for global CPU utilization ("all").
* Following structures are for each individual CPU (0, 1, etc.)
*/
struct stats_pwr_wghfreq {