procps/proc/sysinfo.h

80 lines
2.1 KiB
C
Raw Normal View History

2002-02-02 04:17:29 +05:30
#ifndef SYSINFO_H
#define SYSINFO_H
2002-11-25 15:46:33 +05:30
#include "procps.h"
2002-05-28 09:48:55 +05:30
extern unsigned long long Hertz; /* clock tick frequency */
2002-02-02 04:17:29 +05:30
extern long smp_num_cpus; /* number of CPUs */
#define JT double
2002-10-09 12:41:08 +05:30
extern void five_cpu_numbers(JT *uret, JT *nret, JT *sret, JT *iret, JT *wret);
2002-02-02 04:17:29 +05:30
#undef JT
extern int uptime (double *uptime_secs, double *idle_secs);
extern void loadavg(double *av1, double *av5, double *av15);
/* obsolete */
extern unsigned kb_main_shared;
/* old but still kicking -- the important stuff */
extern unsigned kb_main_buffers;
extern unsigned kb_main_cached;
extern unsigned kb_main_free;
extern unsigned kb_main_total;
extern unsigned kb_swap_free;
extern unsigned kb_swap_total;
/* recently introduced */
extern unsigned kb_high_free;
extern unsigned kb_high_total;
extern unsigned kb_low_free;
extern unsigned kb_low_total;
/* 2.4.xx era */
extern unsigned kb_active;
extern unsigned kb_inact_dirty;
extern unsigned kb_inact_clean;
extern unsigned kb_inact_target;
2002-10-12 07:27:05 +05:30
extern unsigned kb_swap_cached; /* late 2.4+ */
2002-02-02 04:17:29 +05:30
/* derived values */
extern unsigned kb_swap_used;
extern unsigned kb_main_used;
2002-10-06 22:16:06 +05:30
/* 2.5.41+ */
extern unsigned kb_writeback;
extern unsigned kb_slab;
extern unsigned nr_reversemaps;
extern unsigned kb_committed_as;
extern unsigned kb_dirty;
extern unsigned kb_inactive;
extern unsigned kb_mapped;
extern unsigned kb_pagetables;
2002-02-02 04:17:29 +05:30
extern void meminfo(void);
2002-10-06 22:16:06 +05:30
extern unsigned vm_nr_dirty;
extern unsigned vm_nr_writeback;
extern unsigned vm_nr_pagecache;
extern unsigned vm_nr_page_table_pages;
extern unsigned vm_nr_reverse_maps;
extern unsigned vm_nr_mapped;
extern unsigned vm_nr_slab;
extern unsigned vm_pgpgin;
extern unsigned vm_pgpgout;
extern unsigned vm_pswpin;
extern unsigned vm_pswpout;
extern unsigned vm_pgalloc;
extern unsigned vm_pgfree;
extern unsigned vm_pgactivate;
extern unsigned vm_pgdeactivate;
extern unsigned vm_pgfault;
extern unsigned vm_pgmajfault;
extern unsigned vm_pgscan;
extern unsigned vm_pgrefill;
extern unsigned vm_pgsteal;
extern unsigned vm_kswapd_steal;
extern unsigned vm_pageoutrun;
extern unsigned vm_allocstall;
extern void vminfo(void);
2002-02-02 04:17:29 +05:30
#endif /* SYSINFO_H */