aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.py
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2017-04-03 23:35:59 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2017-04-03 23:35:59 -0400
commitfb72dd09cfc16d0260363d38df1225b6663bc084 (patch)
treedb1472467249286171d3e35c4b7a77c165571892 /config/config.py
parente15736509ab36e33bc71a0fe1120f2974e389725 (diff)
Diffstat (limited to 'config/config.py')
-rw-r--r--config/config.py21
1 files changed, 17 insertions, 4 deletions
diff --git a/config/config.py b/config/config.py
index cfdfb05..599371c 100644
--- a/config/config.py
+++ b/config/config.py
@@ -4,6 +4,7 @@ from common import get_executable_hint,ft_freq
4 4
5'''Paths to binaries.''' 5'''Paths to binaries.'''
6BINS = {'rtspin' : get_executable_hint('rtspin', 'liblitmus'), 6BINS = {'rtspin' : get_executable_hint('rtspin', 'liblitmus'),
7 'mc2spin' : get_executable_hint('mc2spin', 'liblitmus'),
7 'release' : get_executable_hint('release_ts', 'liblitmus'), 8 'release' : get_executable_hint('release_ts', 'liblitmus'),
8 'ftcat' : get_executable_hint('ftcat', 'feather-trace-tools'), 9 'ftcat' : get_executable_hint('ftcat', 'feather-trace-tools'),
9 'ftsplit' : get_executable_hint('ft2csv', 'feather-trace-tools'), 10 'ftsplit' : get_executable_hint('ft2csv', 'feather-trace-tools'),
@@ -18,7 +19,8 @@ BINS = {'rtspin' : get_executable_hint('rtspin', 'liblitmus'),
18FILES = {'params_file' : 'params.py', 19FILES = {'params_file' : 'params.py',
19 'sched_file' : 'sched.py', 20 'sched_file' : 'sched.py',
20 'ft_data' : 'ft.bin', 21 'ft_data' : 'ft.bin',
21 'ft_matches' : r'(ft.*\.bin$)|(.*\.ft)', 22 'ft_msg_data' : 'ftmsg.bin',
23 'ft_matches' : r'(ft.*\.bin$)|(ftmsg.*\.bin$)|(.*\.ft)',
22 'linux_data' : 'trace.dat', 24 'linux_data' : 'trace.dat',
23 'sched_data' : 'st-{}.bin', 25 'sched_data' : 'st-{}.bin',
24 'log_data' : 'trace.slog'} 26 'log_data' : 'trace.slog'}
@@ -38,24 +40,35 @@ PARAMS = {'sched' : 'scheduler', # Scheduler used by run_exps
38 40
39'''Default values for program options.''' 41'''Default values for program options.'''
40DEFAULTS = {'duration' : 10, 42DEFAULTS = {'duration' : 10,
41 'prog' : 'rtspin', 43 #'prog' : 'rtspin',
44 'prog' : 'mc2spin',
42 'out-gen' : 'exps', 45 'out-gen' : 'exps',
43 'out-run' : 'run-data', 46 'out-run' : 'run-data',
44 'out-parse' : 'parse-data', 47 'out-parse' : 'parse-data',
45 'out-plot' : 'plot-data', 48 'out-plot' : 'plot-data',
46 'cycles' : ft_freq() or 2000} 49 'cycles' : ft_freq()} #ft_freq()} # or 2000}
47 50
48 51
49'''Default sched_trace events (this is all of them).''' 52'''Default sched_trace events (this is all of them).'''
50SCHED_EVENTS = range(501, 513) 53SCHED_EVENTS = range(501, 513)
51 54
52'''Overhead events.''' 55'''Overhead events.'''
53OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK'] 56#OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'RELEASE_C', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK', 'ISR', 'SCHED_A', 'SCHED_C']
57OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'RELEASE_C', 'SCHED2', 'TICK', 'CXS', 'ISR', 'SCHED_A', 'SCHED_C']
54OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in 58OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in
55 itertools.product(OVH_BASE_EVENTS, ["START","END"])] 59 itertools.product(OVH_BASE_EVENTS, ["START","END"])]
56OVH_ALL_EVENTS += ['RELEASE_LATENCY'] 60OVH_ALL_EVENTS += ['RELEASE_LATENCY']
61OVH_ALL_EVENTS += ['RELEASE_LATENCY_A']
62OVH_ALL_EVENTS += ['RELEASE_LATENCY_B']
63OVH_ALL_EVENTS += ['RELEASE_LATENCY_C']
57# This event doesn't have a START and END 64# This event doesn't have a START and END
58OVH_BASE_EVENTS += ['RELEASE_LATENCY'] 65OVH_BASE_EVENTS += ['RELEASE_LATENCY']
66OVH_BASE_EVENTS += ['RELEASE_LATENCY_A']
67OVH_BASE_EVENTS += ['RELEASE_LATENCY_B']
68OVH_BASE_EVENTS += ['RELEASE_LATENCY_C']
69
70OVH_MSG_EVENTS = ['SEND_RESCHED_START' , 'SEND_RESCHED_END']
71OVH_BASE_EVENTS += ['SEND_RESCHED']
59 72
60# If a task is missing more than this many records, its measurements 73# If a task is missing more than this many records, its measurements
61# are not included in sched_trace summaries 74# are not included in sched_trace summaries