235
251
#define _buf0 buf[0]
253
/* Structure used to define a bitmap needed by an activity */
256
* Bitmap for activities that need one. Remember to allocate it
259
unsigned char *b_array;
261
* Size of the bitmap in bits. In fact, bitmap is sized to bitmap_size + 1
262
* to take into account CPU "all"
267
/* Structure used to define an activity */
237
268
struct activity {
239
270
* This variable contains the identification value (A_...) for this activity.
320
* Bitmap for activities that need one. Such a bitmap is needed by activity if
321
* @bitmap_size has a non zero value. Bitmap should be allocated before use!
323
unsigned char *bitmap;
325
* Size of the bitmap in bits. In fact, bitmap is sized to bitmap_size + 1
326
* to take into account CPU "all"
351
* Bitmap for activities that need one. Such a bitmap is needed by activity
352
* if @bitmap is not NULL.
354
struct act_bitmap *bitmap;
541
567
***************************************************************************
545
* Structure used to compute statistics average
546
* for counters which are not cumulative.
549
unsigned long long frmkb;
550
unsigned long long bufkb;
551
unsigned long long camkb;
552
unsigned long long frskb;
553
unsigned long long tlskb;
554
unsigned long long caskb;
555
unsigned long long comkb;
556
unsigned long long dentry_stat;
557
unsigned long long file_used;
558
unsigned long long inode_used;
559
unsigned long long pty_nr;
560
unsigned long long sock_inuse;
561
unsigned long long tcp_inuse;
562
unsigned long long tcp_tw;
563
unsigned long long udp_inuse;
564
unsigned long long raw_inuse;
565
unsigned long long frag_inuse;
566
unsigned long long nr_running;
567
unsigned long long nr_threads;
568
unsigned long load_avg_1;
569
unsigned long load_avg_5;
570
unsigned long load_avg_15;
574
#define STATS_SUM_SIZE (sizeof(struct stats_sum))
576
570
/* Structure for timestamps */
647
641
wrap_read_net_etcp(struct activity *);
648
642
extern __read_funct_t
649
643
wrap_read_net_udp(struct activity *);
644
extern __read_funct_t
645
wrap_read_net_sock6(struct activity *);
646
extern __read_funct_t
647
wrap_read_net_ip6(struct activity *);
648
extern __read_funct_t
649
wrap_read_net_eip6(struct activity *);
650
extern __read_funct_t
651
wrap_read_net_icmp6(struct activity *);
652
extern __read_funct_t
653
wrap_read_net_eicmp6(struct activity *);
654
extern __read_funct_t
655
wrap_read_net_udp6(struct activity *);
656
extern __read_funct_t
657
wrap_read_cpuinfo(struct activity *);
651
659
/* Other functions */