diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-16 20:46:19 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-16 20:46:19 -0400 |
commit | bdb33621ac67b2cd9fadf3f3b006419ebb16a713 (patch) | |
tree | 8918b5dbc6db8a73c275e445153c7ea42857210b /config/config.example.py | |
parent | fd92ecb5a642eeae6c54d3cca1508fc4c4cb6a87 (diff) |
Created run_exps.py script.
Currently poorly documented.
Diffstat (limited to 'config/config.example.py')
-rw-r--r-- | config/config.example.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/config/config.example.py b/config/config.example.py new file mode 100644 index 0000000..5176460 --- /dev/null +++ b/config/config.example.py | |||
@@ -0,0 +1,46 @@ | |||
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) | ||