aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.py')
-rw-r--r--config/config.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/config/config.py b/config/config.py
index cbac6b2..5e6f9e3 100644
--- a/config/config.py
+++ b/config/config.py
@@ -9,7 +9,7 @@ BINS = {'rtspin' : get_executable_hint('rtspin', 'liblitmus'),
9 'ftsplit' : get_executable_hint('ft2csv', 'feather-trace-tools'), 9 'ftsplit' : get_executable_hint('ft2csv', 'feather-trace-tools'),
10 'ftsort' : get_executable_hint('ftsort', 'feather-trace-tools'), 10 'ftsort' : get_executable_hint('ftsort', 'feather-trace-tools'),
11 'st_trace' : get_executable_hint('st_trace', 'feather-trace-tools'), 11 'st_trace' : get_executable_hint('st_trace', 'feather-trace-tools'),
12 # Option, as not everyone uses kernelshark yet 12 # Optional, as not everyone uses kernelshark yet
13 'trace-cmd' : get_executable_hint('trace-cmd', 'rt-kernelshark', True), 13 'trace-cmd' : get_executable_hint('trace-cmd', 'rt-kernelshark', True),
14 # Optional, as sched_trace is not a publically supported repository 14 # Optional, as sched_trace is not a publically supported repository
15 'st_show' : get_executable_hint('st_show', 'sched_trace', True)} 15 'st_show' : get_executable_hint('st_show', 'sched_trace', True)}
@@ -39,15 +39,24 @@ DEFAULTS = {'params_file' : 'params.py',
39 'sched_file' : 'sched.py', 39 'sched_file' : 'sched.py',
40 'duration' : 10, 40 'duration' : 10,
41 'prog' : 'rtspin', 41 'prog' : 'rtspin',
42 'out-gen' : 'exps',
43 'out-run' : 'run-data',
44 'out-parse' : 'parse-data',
45 'out-plot' : 'plot-data',
42 'cycles' : ft_freq() or 2000} 46 'cycles' : ft_freq() or 2000}
43 47
48
44'''Default sched_trace events (this is all of them).''' 49'''Default sched_trace events (this is all of them).'''
45SCHED_EVENTS = range(501, 513) 50SCHED_EVENTS = range(501, 513)
46 51
47'''Overhead events.''' 52'''Overhead events.'''
48OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS'] 53OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK']
49OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in 54OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in
50 itertools.product(OVH_BASE_EVENTS, ["START","END"])] 55 itertools.product(OVH_BASE_EVENTS, ["START","END"])]
51OVH_ALL_EVENTS += ['RELEASE_LATENCY'] 56OVH_ALL_EVENTS += ['RELEASE_LATENCY']
52# This event doesn't have a START and END 57# This event doesn't have a START and END
53OVH_BASE_EVENTS += ['RELEASE_LATENCY'] 58OVH_BASE_EVENTS += ['RELEASE_LATENCY']
59
60# If a task is missing more than this many records, its measurements
61# are not included in sched_trace summaries
62MAX_RECORD_LOSS = .2