aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.py')
-rw-r--r--config/config.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/config/config.py b/config/config.py
new file mode 100644
index 0000000..3282705
--- /dev/null
+++ b/config/config.py
@@ -0,0 +1,45 @@
1from __future__ import print_function
2import itertools
3from common import get_executable
4
5'''Paths to binaries.'''
6BINS = {'rtspin' : get_executable('rtspin', 'liblitmus'),
7 'release' : get_executable('release_ts', 'liblitmus'),
8 'ftcat' : get_executable('ftcat', 'feather-trace-tools'),
9 'ftsplit' : get_executable('ft2csv', 'feather-trace-tools'),
10 'ftsort' : get_executable('ftsort', 'feather-trace-tools'),
11 'st_trace' : get_executable('st_trace', 'feather-trace-tools'),
12 'trace-cmd' : get_executable('trace-cmd', 'rt-kernelshark'),
13 # Optional, as sched_trace is not a publically supported repository
14 'st_show' : get_executable('st_show', 'sched_trace', True)}
15
16'''Names of output files.'''
17FILES = {'ft_data' : 'ft.bin',
18 'linux_data' : 'trace.dat',
19 'sched_data' : 'st-{}.bin',
20 'log_data' : 'trace.slog',}
21
22'''Default parameter names in params.py.'''
23PARAMS = {'sched' : 'scheduler',
24 'dur' : 'duration',
25 'kernel' : 'uname',
26 'cycles' : 'cpu-frequency'}
27
28'''Default values for program parameters.'''
29DEFAULTS = {'params_file' : 'params.py',
30 'sched_file' : 'sched.py',
31 'exps_file' : 'exps.py',
32 'duration' : 10,
33 'spin' : 'rtspin',
34 'cycles' : 2000}
35
36'''Default sched_trace events (this is all of them).'''
37SCHED_EVENTS = range(501, 513)
38
39'''Overhead events.'''
40OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS']
41OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in
42 itertools.product(OVH_BASE_EVENTS, ["START","END"])]
43OVH_ALL_EVENTS += ['RELEASE_LATENCY']
44# This event doesn't have a START and END
45OVH_BASE_EVENTS += ['RELEASE_LATENCY']