-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathltopas.h
27 lines (20 loc) · 894 Bytes
/
ltopas.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _LTOPAS_H
#define _LTOPAS_H
#define DEVMAP_DIR "/dev/mapper"
#define DEVMAP_MAJOR 253
#define MAX_FILE_LEN 256
#define MAX_NAME_LEN 72
/* macro to print pgpgin/s, pgpgout/s, pgfault/s, pgmajfault/s */
#define PER_SEC_VM(n,m,p) ((((double) ((n) - (m))) / (p)))
#define PER_SEC(x,y) (1000.0 * (x) / (y))
#define MAX_PARTITIONS 1024
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef boolean
typedef int boolean;
#endif
#endif /* _LTOPAS_H */