summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2009-04-14 23:49:32 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2009-04-14 23:49:32 -0400
commita5853581ad9518280753f90e906c0827a2e5673b (patch)
tree8fd526ccfe2f20d182d9790023d639d9ef889355
parentbc15693803e84200237e6d342e2517f1d9408884 (diff)
make MAX_TASKS configurable
-rw-r--r--SConstruct3
-rw-r--r--include/load.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 18c040c..5ada585 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1,6 +1,6 @@
1# ##################################################################### 1# #####################################################################
2# User configuration. 2# User configuration.
3# -- Nothing to configure at the moment. 3MAX_TASKS = 1000 # max number of tasks per trace
4 4
5# ##################################################################### 5# #####################################################################
6# Internal configuration. 6# Internal configuration.
@@ -21,6 +21,7 @@ env = Environment(
21 CC = 'gcc', 21 CC = 'gcc',
22 CCFLAGS = Split(DEBUG_FLAGS), 22 CCFLAGS = Split(DEBUG_FLAGS),
23 CPPPATH = Split(INCLUDE_DIRS), 23 CPPPATH = Split(INCLUDE_DIRS),
24 CPPDEFINES = '-DMAX_TASKS=%d' % MAX_TASKS,
24) 25)
25 26
26# Link with libcairo. For now without sched_trace support. 27# Link with libcairo. For now without sched_trace support.
diff --git a/include/load.h b/include/load.h
index 8417b36..e4a35c2 100644
--- a/include/load.h
+++ b/include/load.h
@@ -20,8 +20,6 @@ struct task {
20 struct evlink** next; 20 struct evlink** next;
21}; 21};
22 22
23#define MAX_TASKS 1000
24
25extern struct task tasks[MAX_TASKS]; 23extern struct task tasks[MAX_TASKS];
26extern struct evlink* sys_events; 24extern struct evlink* sys_events;
27extern u64 time0; 25extern u64 time0;