diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-14 23:49:32 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2009-04-14 23:49:32 -0400 |
commit | a5853581ad9518280753f90e906c0827a2e5673b (patch) | |
tree | 8fd526ccfe2f20d182d9790023d639d9ef889355 | |
parent | bc15693803e84200237e6d342e2517f1d9408884 (diff) |
make MAX_TASKS configurable
-rw-r--r-- | SConstruct | 3 | ||||
-rw-r--r-- | include/load.h | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -1,6 +1,6 @@ | |||
1 | # ##################################################################### | 1 | # ##################################################################### |
2 | # User configuration. | 2 | # User configuration. |
3 | # -- Nothing to configure at the moment. | 3 | MAX_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 | |||
25 | extern struct task tasks[MAX_TASKS]; | 23 | extern struct task tasks[MAX_TASKS]; |
26 | extern struct evlink* sys_events; | 24 | extern struct evlink* sys_events; |
27 | extern u64 time0; | 25 | extern u64 time0; |