diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-11-26 16:02:48 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-11-26 16:02:48 -0500 |
commit | cb8db5d30ee769304c2c2b00f2a7d9bcb3c4098f (patch) | |
tree | c5352d84285af565d5246c3eb861ffba709761f1 /config/config.example.py | |
parent | 41c867480f1e20bd3b168258ed71450499ea6ccf (diff) |
Removed 2-step parse for scheduling statistics.
Diffstat (limited to 'config/config.example.py')
-rw-r--r-- | config/config.example.py | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/config/config.example.py b/config/config.example.py index 50d30ba..9f24097 100644 --- a/config/config.example.py +++ b/config/config.example.py | |||
@@ -3,56 +3,43 @@ import os | |||
3 | import sys | 3 | import sys |
4 | import itertools | 4 | import itertools |
5 | 5 | ||
6 | """ | 6 | ''' |
7 | These are paths to repository directories. | 7 | These are paths to repository directories. |
8 | 8 | ||
9 | """ | 9 | ''' |
10 | REPOS = {'liblitmus' : '/home/hermanjl/git/liblitmus', | 10 | REPOS = {'liblitmus' : '/home/hermanjl/git/liblitmus', |
11 | 'sched_trace' : '/home/hermanjl/git/sched_trace', | 11 | 'sched_trace' : '/home/hermanjl/git/sched_trace', |
12 | 'analysis' : '/home/hermanjl/git/overhead-analysis-cjk', | ||
13 | 'ft_tools' : '/home/hermanjl/git/feather-trace-tools', | 12 | 'ft_tools' : '/home/hermanjl/git/feather-trace-tools', |
14 | 'trace-cmd' : '/home/hermanjl/git/trace-cmd'} | 13 | 'trace-cmd' : '/home/hermanjl/git/trace-cmd'} |
15 | 14 | ||
16 | BINS = {'bespin' : '{}/bespin'.format(REPOS['liblitmus']), | 15 | BINS = {'rtspin' : '{}/rtspin'.format(REPOS['liblitmus']), |
17 | 'colorspin' : '{}/colorspin'.format(REPOS['liblitmus']), | ||
18 | 'rtspin' : '{}/rtspin'.format(REPOS['liblitmus']), | ||
19 | 'release' : '{}/release_ts'.format(REPOS['liblitmus']), | 16 | 'release' : '{}/release_ts'.format(REPOS['liblitmus']), |
20 | 'ftcat' : '{}/ftcat'.format(REPOS['ft_tools']), | 17 | 'ftcat' : '{}/ftcat'.format(REPOS['ft_tools']), |
18 | 'ftsplit' : '{}/ft2csv'.format(REPOS['ft_tools']), | ||
19 | 'ftsort' : '{}/ftsort'.format(REPOS['ft_tools']), | ||
21 | 'st_trace' : '{}/st_trace'.format(REPOS['ft_tools']), | 20 | 'st_trace' : '{}/st_trace'.format(REPOS['ft_tools']), |
22 | 'split' : '{}/split'.format(REPOS['analysis']), | ||
23 | 'sort' : '{}/sort-all'.format(REPOS['analysis']), | ||
24 | 'analyze' : '{}/analyze'.format(REPOS['analysis']), | ||
25 | 'trace-cmd' : '{}/trace-cmd'.format(REPOS['trace-cmd']), | 21 | 'trace-cmd' : '{}/trace-cmd'.format(REPOS['trace-cmd']), |
26 | 'st_show' : '{}/st_show'.format(REPOS['sched_trace'])} | 22 | 'st_show' : '{}/st_show'.format(REPOS['sched_trace'])} |
27 | 23 | ||
28 | DEFAULTS = {'params_file' : 'params.py', | 24 | DEFAULTS = {'params_file' : 'params.py', |
29 | 'sched_file' : 'sched.py', | 25 | 'sched_file' : 'sched.py', |
30 | 'exps_file' : 'exps.py', | 26 | 'exps_file' : 'exps.py', |
31 | 'duration' : '10', | 27 | 'duration' : 10, |
32 | 'spin' : 'rtspin'} | 28 | 'spin' : 'rtspin', |
29 | 'cycles' : 2000} | ||
33 | 30 | ||
34 | FILES = {'ft_data' : 'ft.bin', | 31 | FILES = {'ft_data' : 'ft.bin', |
35 | 'linux_data' : 'trace.dat', | 32 | 'linux_data' : 'trace.dat', |
36 | 'sched_data' : 'st-{}.bin', | 33 | 'sched_data' : 'st-{}.bin', |
37 | 'log_data' : 'trace.slog',} | 34 | 'log_data' : 'trace.slog',} |
38 | 35 | ||
39 | PARAMS = {'sched' : 'scheduler', | 36 | PARAMS = {'sched' : 'scheduler', |
40 | 'dur' : 'duration', | 37 | 'dur' : 'duration', |
41 | 'kernel' : 'uname'} | 38 | 'kernel': 'uname', |
39 | 'cycles' : 'cpu-frequency'} | ||
42 | 40 | ||
43 | SCHED_EVENTS = range(501, 513) | 41 | SCHED_EVENTS = range(501, 513) |
44 | BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'SEND_RESCHED'] | 42 | BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS'] |
45 | BASE_EVENTS += ['CQ_ENQUEUE_READ', 'CQ_ENQUEUE_FLUSH', 'CQ_SUBMIT_WORK', | ||
46 | 'CQ_LOOP_WORK_CHECK', 'CQ_LOOP_PEACE_OUT', 'CQ_LOOP_BRANCH', | ||
47 | 'CQ_WORK_DO_WORK', 'CQ_WORK_NOTIFY', 'CQ_PHASE_WAIT'] | ||
48 | |||
49 | # Expand for mixed-crit | ||
50 | # TODO don't use split | ||
51 | CRIT_EVENTS = ['LVL{}_SCHED', 'LVL{}_RELEASE'] | ||
52 | CRIT_LEVELS = ['A', 'B', 'C'] | ||
53 | BASE_EVENTS += [s.format(l) for (l,s) in | ||
54 | itertools.product(CRIT_LEVELS, CRIT_EVENTS)] | ||
55 | |||
56 | ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in | 43 | ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in |
57 | itertools.product(BASE_EVENTS, ["START","END"])] | 44 | itertools.product(BASE_EVENTS, ["START","END"])] |
58 | ALL_EVENTS += ['RELEASE_LATENCY'] | 45 | ALL_EVENTS += ['RELEASE_LATENCY'] |