diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-04-21 13:28:38 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-04-21 13:28:38 -0400 |
commit | fbd1df6f63eb551b99f71330d2370c570ff323f5 (patch) | |
tree | ca0db4599365bf8f4de7cd247c6363ef0ffba288 /config/config.py | |
parent | daa0e3a92e03a89baf7ea3750df374df79123245 (diff) |
Scripts read directories created by other scripts if no arguments.
With no arguments, all scripts first try to load the current directory. If the
current directory has no data, the scripts search for the output of the previous
scripts in the toolchain, e.g. parse_exps.py loads run-data/*, created by
run_exps.py.
This commit also switched messages to stderr where they belong, and adds in
missing lock and unlock overheads.
Diffstat (limited to 'config/config.py')
-rw-r--r-- | config/config.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/config.py b/config/config.py index cbac6b2..1ac468b 100644 --- a/config/config.py +++ b/config/config.py | |||
@@ -39,13 +39,18 @@ 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'] |