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
65
66
67
68
69
70
71
72
73
74
#ifndef __CONFIG_H_
#define __CONFIG_H_
/*
* config.h - malloc lab configuration file
*
* Copyright (c) 2002, R. Bryant and D. O'Hallaron, All rights reserved.
* May not be used, modified, or copied without permission.
*/
/*
* This is the default path where the driver will look for the
* default tracefiles. You can override it at runtime with the -t flag.
*/
#define TRACEDIR "./traces/"
/*
* This is the list of default tracefiles in TRACEDIR that the driver
* will use for testing. Modify this if you want to add or delete
* traces from the driver's test suite.
*
* The first four test correctness. The last several test utilization
* and performance.
*/
#define DEFAULT_TRACEFILES \
"corners.rep", \
"short2.rep", \
"malloc.rep", \
"coalescing-bal.rep", \
"fs.rep", \
"hostname.rep", \
"login.rep", \
"ls.rep", \
"perl.rep", \
"random-bal.rep", \
"rm.rep", \
"xterm.rep"
/*
* Students get 0 points for this point or below (ops / sec)
*/
#define MIN_SPEED 0E3
/*
* Students can get more points for building faster allocators, up to
* this point (in ops / sec)
*/
#define MAX_SPEED 40000E3
/*
* Students get 0 points for this allocation fraction or below
*/
#define MIN_SPACE 0.61
/*
* Students can get more points for building more efficient allocators,
* up to this point (1 is perfect).
*/
#define MAX_SPACE 0.85
/*
* Alignment requirement in bytes (either 4 or 8)
*/
#define ALIGNMENT 16
/*****************************************************************************
* Set exactly one of these USE_xxx constants to "1" to select a timing method
*****************************************************************************/
#define USE_FCYC 1 /* cycle counter w/K-best scheme (x86 & Alpha only) */
#define USE_ITIMER 0 /* interval timer (any Unix box) */
#define USE_GETTOD 0 /* gettimeofday (any Unix box) */
#endif /* __CONFIG_H */