diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-04-23 17:28:12 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-04-23 17:28:12 -0400 |
commit | 2ceaa6c607ef85bde4f14017634d9d1621efca29 (patch) | |
tree | c85e755e59907a48ff762fd56473449f33c23894 /config/config.py | |
parent | a0e4b9fe9d7fab9a50a626cfeda3c614a9a6af5d (diff) | |
parent | 7545402506aa76261e18d85af585ff0ac1cf05c1 (diff) |
Merge branch 'master' into wip-color-mc
Conflicts:
gen/generator.py
parse/sched.py
parse_exps.py
Diffstat (limited to 'config/config.py')
-rw-r--r-- | config/config.py | 13 |
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).''' |
45 | SCHED_EVENTS = range(501, 513) | 50 | SCHED_EVENTS = range(501, 513) |
46 | 51 | ||
47 | '''Overhead events.''' | 52 | '''Overhead events.''' |
48 | OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS'] | 53 | OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK'] |
49 | OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in | 54 | OVH_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"])] |
51 | OVH_ALL_EVENTS += ['RELEASE_LATENCY'] | 56 | OVH_ALL_EVENTS += ['RELEASE_LATENCY'] |
52 | # This event doesn't have a START and END | 57 | # This event doesn't have a START and END |
53 | OVH_BASE_EVENTS += ['RELEASE_LATENCY'] | 58 | OVH_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 | ||
62 | MAX_RECORD_LOSS = .2 | ||