diff options
Diffstat (limited to 'config/config.py')
-rw-r--r-- | config/config.py | 46 |
1 files changed, 0 insertions, 46 deletions
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 @@ | |||
1 | from __future__ import print_function | ||
2 | import os | ||
3 | import sys | ||
4 | |||
5 | REPOS = {'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 | |||
11 | BINS = {'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 | |||
22 | DEFAULTS = {'params_file' : 'params.py', | ||
23 | 'sched_file' : 'sched.py', | ||
24 | 'exps_file' : 'exps.py', | ||
25 | 'duration' : '10', | ||
26 | 'spin' : 'rtspin'} | ||
27 | |||
28 | FILES = {'ft_data' : 'ft.bin', | ||
29 | 'linux_data' : 'trace.dat', | ||
30 | 'sched_data' : 'st-{}.bin', | ||
31 | 'log_data' : 'trace.slog'} | ||
32 | |||
33 | PARAMS = {'sched' : 'scheduler', | ||
34 | 'dur' : 'duration'} | ||
35 | |||
36 | valid = True | ||
37 | for 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) | ||
41 | for 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) | ||
45 | if not valid: | ||
46 | print("Errors in config file", file=sys.stderr) | ||