~ubuntu-branches/ubuntu/raring/sysstat/raring

« back to all changes in this revision

Viewing changes to rd_stats.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2011-03-23 13:26:07 UTC
  • mfrom: (1.1.20 upstream) (2.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20110323132607-huhxd19s8ts5muq7
Tags: 10.0.0-1
* New upstream (stable) release:
  + Don't link sysstat's commands with sensors library if not
    needed (closes: #612571).
  + [Adam Heath]: iostat incorrectly mapped device-mapper IDs
    greater than 256. This is now fixed (closes: #614397).
* debian/rules: switch to using dh command.
* Remove 07-remove_fdatasync.patch, no longer needed. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * rd_stats.h: Include file used to read system statistics
3
 
 * (C) 1999-2010 by Sebastien Godard (sysstat <at> orange.fr)
 
3
 * (C) 1999-2011 by Sebastien Godard (sysstat <at> orange.fr)
4
4
 */
5
5
 
6
6
#ifndef _RD_STATS_H
484
484
 
485
485
#define STATS_PWR_CPUFREQ_SIZE  (sizeof(struct stats_pwr_cpufreq))
486
486
 
487
 
/*
488
 
 * Structure for fan statistics.
489
 
 */
490
 
struct stats_pwr_fan {
491
 
        double  rpm                             __attribute__ ((aligned (8)));
492
 
        double  rpm_min                         __attribute__ ((aligned (8)));
493
 
        char    device[MAX_SENSORS_DEV_LEN]     __attribute__ ((aligned (8)));
494
 
};
495
 
 
496
 
#define STATS_PWR_FAN_SIZE     (sizeof(struct stats_pwr_fan))
497
 
 
498
 
/*
499
 
 * Structure for device temperature statistics.
500
 
 */
501
 
struct stats_pwr_temp {
502
 
        double  temp                            __attribute__ ((aligned (8)));
503
 
        double  temp_min                        __attribute__ ((aligned (8)));
504
 
        double  temp_max                        __attribute__ ((aligned (8)));
505
 
        char    device[MAX_SENSORS_DEV_LEN]     __attribute__ ((aligned (8)));
506
 
};
507
 
 
508
 
#define STATS_PWR_TEMP_SIZE    (sizeof(struct stats_pwr_temp))
509
 
 
510
 
/*
511
 
 * Structure for voltage inputs statistics.
512
 
 */
513
 
struct stats_pwr_in {
514
 
        double  in                              __attribute__ ((aligned (8)));
515
 
        double  in_min                          __attribute__ ((aligned (8)));
516
 
        double  in_max                          __attribute__ ((aligned (8)));
517
 
        char    device[MAX_SENSORS_DEV_LEN]     __attribute__ ((aligned (8)));
518
 
};
519
 
 
520
 
#define STATS_PWR_IN_SIZE       (sizeof(struct stats_pwr_in))
521
 
 
522
487
/* Structure for hugepages statistics */
523
488
struct stats_huge {
524
489
        unsigned long frhkb                     __attribute__ ((aligned (8)));
609
574
extern void
610
575
        read_cpuinfo(struct stats_pwr_cpufreq *, int);
611
576
extern void
612
 
        read_fan(struct stats_pwr_fan *, int);
613
 
extern void
614
 
        read_temp(struct stats_pwr_temp *, int);
615
 
extern void
616
 
        read_in(struct stats_pwr_in *, int);
617
 
extern void
618
577
        read_meminfo_huge(struct stats_huge *);
619
578
extern void
620
579
        read_time_in_state(struct stats_pwr_wghfreq *, int, int);
640
599
extern int
641
600
        get_irqcpu_nr(char *, int, int);
642
601
extern int
643
 
        get_fan_nr(void);
644
 
extern int
645
 
        get_temp_nr(void);
646
 
extern int
647
 
        get_in_nr(void);
648
 
extern int
649
602
        get_freq_nr(void);
650
603
 
651
604
#endif /* _RD_STATS_H */