forked from GarCoSim/TraceFileGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefines.h
executable file
·64 lines (44 loc) · 1.62 KB
/
defines.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef DEFINES_H_
#define DEFINES_H_
//#include "globals.h"
///#include "Utils/configReader.h"
//using namespace gcKons;
//Rootset size
#define ROOTSET_SIZE 10
//number of threads
#define NUM_THREADS 10
/* Ratio defining how often allocations are performed in
comparison to reference operations (in %)*/
#define RATIO_ALLOC_SET 75
//the maximum number of child objects in an object
#define MAX_POINTERS 10
//the minimum/maximum payload size of an object
#define MIN_PAYLOAD 1
#define MAX_PAYLOAD 64
// the probability that a reference operation will create an escaped object (in %)
#define ESCAPE_PROBABILITY 5
/*the probablility that if an escaping is happening,
* the target thread will be the partner thread (in %)*/
#define ESPACE_TO_PARTNER 90
/*The probability of being a root delete line in the trace file*/
#define ROOT_DELETE_PROBABILITY 10
//quite a vague metric, but it helps.
/*The age of a thread when it becomes immortal (in Trace File Lines)*/
#define ROOT_IMMORTALITY_AGE 1000000
/* A parameter used to run the older version (version == 0) and the new version (version == 1)*/
#define VERSION 1
/* The ratio of how often the sequence of operations (a + w - ) are performed in comparison to the
* sequence of operations (a +) in (%)
* a: allocate
* +: add to the root set
* w: reference operation
* -: delete from root set
* */
#define ALLOCATION 70
/* The ratio of how often allocation ( (a+) & (a + w - ) ) are performed */
#define RATIO_ALLOCATION 70
#define REFERENCE 40
#define CREFERENCE 90
/* Ratio of operations on objects accessible by the given thread*/
#define THREADRATIO 90
#endif