aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--config/config.example.py6
-rw-r--r--config/config.py46
-rwxr-xr-xrun_exps.py2
4 files changed, 8 insertions, 49 deletions
diff --git a/.gitignore b/.gitignore
index 7c62cf4..5d257d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
1config/config.py
1*~ 2*~
2\#*# 3\#*#
3*.pyc 4*.pyc
4.ropeproject* \ No newline at end of file 5.ropeproject*
diff --git a/config/config.example.py b/config/config.example.py
index 5176460..b307687 100644
--- a/config/config.example.py
+++ b/config/config.example.py
@@ -2,10 +2,14 @@ from __future__ import print_function
2import os 2import os
3import sys 3import sys
4 4
5"""
6These are paths to repository directories.
7
8"""
5REPOS = {'liblitmus' : '/home/hermanjl/git/liblitmus', 9REPOS = {'liblitmus' : '/home/hermanjl/git/liblitmus',
6 'sched_trace' : '/home/hermanjl/git/sched_trace', 10 'sched_trace' : '/home/hermanjl/git/sched_trace',
7 'analysis' : '/home/hermanjl/git/overhead-analysis-cjk', 11 'analysis' : '/home/hermanjl/git/overhead-analysis-cjk',
8 'ft_tools' : '/home/hermanjl/git/ft_tools/ftcat', 12 'ft_tools' : '/home/hermanjl/git/feather-trace-tools',
9 'trace-cmd' : '/home/hermanjl/git/trace-cmd'} 13 'trace-cmd' : '/home/hermanjl/git/trace-cmd'}
10 14
11BINS = {'bespin' : '{}/bespin'.format(REPOS['liblitmus']), 15BINS = {'bespin' : '{}/bespin'.format(REPOS['liblitmus']),
diff --git a/config/config.py b/config/config.py
deleted file mode 100644
index 5176460..0000000
--- a/config/config.py
+++ /dev/null
@@ -1,46 +0,0 @@
1from __future__ import print_function
2import os
3import sys
4
5REPOS = {'liblitmus' : '/home/hermanjl/git/liblitmus',
6 'sched_trace' : '/home/hermanjl/git/sched_trace',
7 'analysis' : '/home/hermanjl/git/overhead-analysis-cjk',
8 'ft_tools' : '/home/hermanjl/git/ft_tools/ftcat',
9 'trace-cmd' : '/home/hermanjl/git/trace-cmd'}
10
11BINS = {'bespin' : '{}/bespin'.format(REPOS['liblitmus']),
12 'colorspin' : '{}/colorspin'.format(REPOS['liblitmus']),
13 'rtspin' : '{}/rtspin'.format(REPOS['liblitmus']),
14 'release' : '{}/release_ts'.format(REPOS['liblitmus']),
15 'ftcat' : '{}/ftcat'.format(REPOS['ft_tools']),
16 'st_trace' : '{}/st_trace'.format(REPOS['ft_tools']),
17 'split' : '{}/split'.format(REPOS['analysis']),
18 'sort' : '{}/sort-all'.format(REPOS['analysis']),
19 'analyze' : '{}/analyze'.format(REPOS['analysis']),
20 'trace-cmd' : '{}/trace-cmd'.format(REPOS['trace-cmd'])}
21
22DEFAULTS = {'params_file' : 'params.py',
23 'sched_file' : 'sched.py',
24 'exps_file' : 'exps.py',
25 'duration' : '10',
26 'spin' : 'rtspin'}
27
28FILES = {'ft_data' : 'ft.bin',
29 'linux_data' : 'trace.dat',
30 'sched_data' : 'st-{}.bin',
31 'log_data' : 'trace.slog'}
32
33PARAMS = {'sched' : 'scheduler',
34 'dur' : 'duration'}
35
36valid = True
37for repo, loc in REPOS.items():
38 if not os.path.isdir(loc):
39 valid = False
40 print("Cannot access repo '%s' at '%s'" % (repo, loc), file=sys.stderr)
41for prog, loc in BINS.items():
42 if not os.path.isfile(loc):
43 valid = False
44 print("Cannot access program '%s' at '%s'" % (prog, loc), file=sys.stderr)
45if not valid:
46 print("Errors in config file", file=sys.stderr)
diff --git a/run_exps.py b/run_exps.py
index bc15b98..a2d5077 100755
--- a/run_exps.py
+++ b/run_exps.py
@@ -117,7 +117,7 @@ def load_params(fname):
117 117
118def load_schedule(fname): 118def load_schedule(fname):
119 with open(fname, 'r') as f: 119 with open(fname, 'r') as f:
120 data = f.read() 120 data = f.read().strip()
121 try: 121 try:
122 schedule = eval(data) 122 schedule = eval(data)
123 except: 123 except: