fabian.frederick@gmx.fr vmstat code
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef PROC_SYSINFO_H
|
||||
#define PROC_SYSINFO_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/dir.h>
|
||||
#include "procps.h"
|
||||
|
||||
EXTERN_C_BEGIN
|
||||
@@ -50,6 +51,16 @@ extern unsigned long kb_inactive;
|
||||
extern unsigned long kb_mapped;
|
||||
extern unsigned long kb_pagetables;
|
||||
|
||||
#define BUFFSIZE 8192
|
||||
typedef unsigned long long jiff;
|
||||
extern void crash(const char *filename);
|
||||
extern void getrunners(unsigned int *restrict running, unsigned int *restrict blocked);
|
||||
extern void getstat(jiff *restrict cuse, jiff *restrict cice, jiff *restrict csys, jiff *restrict cide, jiff *restrict ciow,
|
||||
unsigned long *restrict pin, unsigned long *restrict pout, unsigned long *restrict s_in, unsigned long *restrict sout,
|
||||
unsigned *restrict intr, unsigned *restrict ctxt,
|
||||
unsigned int *restrict running, unsigned int *restrict blocked,
|
||||
unsigned int *restrict btime, unsigned int *restrict processes);
|
||||
|
||||
extern void meminfo(void);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user