diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-27 19:03:22 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-27 19:03:22 -0400 |
commit | 7c09ec981c6e06af2e62d67a609eb53728267954 (patch) | |
tree | 76a93db7cadc452ac70eabbd52fdd87ed5fd54c4 /config/config.example.py | |
parent | 5554e053e9f3d5f7987d3f1d889802b211af8eab (diff) |
Added script to parse directory data, create CSVs for every chagned value.
This change also makes SchedTrace and OverheadTrace events configurable.
Diffstat (limited to 'config/config.example.py')
-rw-r--r-- | config/config.example.py | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/config/config.example.py b/config/config.example.py index b307687..9675f66 100644 --- a/config/config.example.py +++ b/config/config.example.py | |||
@@ -1,6 +1,7 @@ | |||
1 | from __future__ import print_function | 1 | from __future__ import print_function |
2 | import os | 2 | import os |
3 | import sys | 3 | import sys |
4 | import itertools | ||
4 | 5 | ||
5 | """ | 6 | """ |
6 | These are paths to repository directories. | 7 | These are paths to repository directories. |
@@ -21,7 +22,8 @@ BINS = {'bespin' : '{}/bespin'.format(REPOS['liblitmus']), | |||
21 | 'split' : '{}/split'.format(REPOS['analysis']), | 22 | 'split' : '{}/split'.format(REPOS['analysis']), |
22 | 'sort' : '{}/sort-all'.format(REPOS['analysis']), | 23 | 'sort' : '{}/sort-all'.format(REPOS['analysis']), |
23 | 'analyze' : '{}/analyze'.format(REPOS['analysis']), | 24 | 'analyze' : '{}/analyze'.format(REPOS['analysis']), |
24 | 'trace-cmd' : '{}/trace-cmd'.format(REPOS['trace-cmd'])} | 25 | 'trace-cmd' : '{}/trace-cmd'.format(REPOS['trace-cmd']), |
26 | 'st_show' : '{}/st_show'.format(REPOS['sched_trace'])} | ||
25 | 27 | ||
26 | DEFAULTS = {'params_file' : 'params.py', | 28 | DEFAULTS = {'params_file' : 'params.py', |
27 | 'sched_file' : 'sched.py', | 29 | 'sched_file' : 'sched.py', |
@@ -32,11 +34,23 @@ DEFAULTS = {'params_file' : 'params.py', | |||
32 | FILES = {'ft_data' : 'ft.bin', | 34 | FILES = {'ft_data' : 'ft.bin', |
33 | 'linux_data' : 'trace.dat', | 35 | 'linux_data' : 'trace.dat', |
34 | 'sched_data' : 'st-{}.bin', | 36 | 'sched_data' : 'st-{}.bin', |
35 | 'log_data' : 'trace.slog'} | 37 | 'log_data' : 'trace.slog',} |
36 | 38 | ||
37 | PARAMS = {'sched' : 'scheduler', | 39 | PARAMS = {'sched' : 'scheduler', |
38 | 'dur' : 'duration'} | 40 | 'dur' : 'duration'} |
39 | 41 | ||
42 | SCHED_EVENTS = range(501, 513) | ||
43 | BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS'] | ||
44 | |||
45 | # Expand for mixed-crit | ||
46 | # CRIT_EVENTS = ['LVL{}_SCHED', 'LEVEL{}_RELEASE'] | ||
47 | # CRIT_LEVELS = ['A', 'B', 'C'] | ||
48 | # BASE_EVENTS += [s.format(l) for (l,s) in | ||
49 | # itertools.product(CRIT_LEVELS, CRIT_EVENTS)] | ||
50 | |||
51 | ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in | ||
52 | itertools.product(BASE_EVENTS, ["START","END"])] | ||
53 | |||
40 | valid = True | 54 | valid = True |
41 | for repo, loc in REPOS.items(): | 55 | for repo, loc in REPOS.items(): |
42 | if not os.path.isdir(loc): | 56 | if not os.path.isdir(loc): |