From a5853581ad9518280753f90e906c0827a2e5673b Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Tue, 14 Apr 2009 23:49:32 -0400 Subject: make MAX_TASKS configurable --- SConstruct | 3 ++- include/load.h | 2 -- 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 @@ # ##################################################################### # User configuration. -# -- Nothing to configure at the moment. +MAX_TASKS = 1000 # max number of tasks per trace # ##################################################################### # Internal configuration. @@ -21,6 +21,7 @@ env = Environment( CC = 'gcc', CCFLAGS = Split(DEBUG_FLAGS), CPPPATH = Split(INCLUDE_DIRS), + CPPDEFINES = '-DMAX_TASKS=%d' % MAX_TASKS, ) # 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 { struct evlink** next; }; -#define MAX_TASKS 1000 - extern struct task tasks[MAX_TASKS]; extern struct evlink* sys_events; extern u64 time0; -- cgit v1.2.2