mpstat.h
来自「linux下查看系统工具原码,如IOSTAT等」· C头文件 代码 · 共 36 行
H
36 行
/* * mpstat: per-processor statistics * (C) 2000-2006 by Sebastien Godard (sysstat <at> wanadoo.fr) */#ifndef _MPSTAT_H#define _MPSTAT_Hstruct mp_stats { unsigned long long cpu_idle __attribute__ ((aligned (8))); unsigned long long cpu_iowait __attribute__ ((packed)); unsigned long long cpu_user __attribute__ ((packed)); unsigned long long cpu_nice __attribute__ ((packed)); unsigned long long cpu_system __attribute__ ((packed)); unsigned long long cpu_hardirq __attribute__ ((packed)); unsigned long long cpu_softirq __attribute__ ((packed)); unsigned long long cpu_steal __attribute__ ((packed)); unsigned long long irq __attribute__ ((packed)); /* Structure must be a multiple of 8 bytes, since we use an array of structures. * Each structure is *aligned*, and we want the structures to be packed together. */};#define MP_STATS_SIZE (sizeof(struct mp_stats))struct mp_timestamp { unsigned long long uptime; unsigned long long uptime0; unsigned char hour; /* (0-23) */ unsigned char minute; /* (0-59) */ unsigned char second; /* (0-59) */};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?