diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-18 13:15:42 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-18 13:15:42 -0400 |
commit | 16dfc8df20c6befeed423217a2e0f5ae59b5a04d (patch) | |
tree | 722ff18b111f6ab2fc11fffa46e78889bd2d5708 /config/config.py | |
parent | 652a57b5a53e41e585c7e0d10601c807ba08c36f (diff) |
Use smarter defaults which can handle data from Bjorns scripts.
Diffstat (limited to 'config/config.py')
-rw-r--r-- | config/config.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/config.py b/config/config.py index 1199278..a6edece 100644 --- a/config/config.py +++ b/config/config.py | |||
@@ -1,6 +1,6 @@ | |||
1 | from __future__ import print_function | 1 | from __future__ import print_function |
2 | import itertools | 2 | import itertools |
3 | from common import get_executable | 3 | from common import get_executable,ft_freq |
4 | 4 | ||
5 | '''Paths to binaries.''' | 5 | '''Paths to binaries.''' |
6 | BINS = {'rtspin' : get_executable('rtspin', 'liblitmus'), | 6 | BINS = {'rtspin' : get_executable('rtspin', 'liblitmus'), |
@@ -16,6 +16,7 @@ BINS = {'rtspin' : get_executable('rtspin', 'liblitmus'), | |||
16 | 16 | ||
17 | '''Names of output files.''' | 17 | '''Names of output files.''' |
18 | FILES = {'ft_data' : 'ft.bin', | 18 | FILES = {'ft_data' : 'ft.bin', |
19 | 'ft_matches' : r'(ft.*\.bin)|(.*\.ft)', | ||
19 | 'linux_data' : 'trace.dat', | 20 | 'linux_data' : 'trace.dat', |
20 | 'sched_data' : 'st-{}.bin', | 21 | 'sched_data' : 'st-{}.bin', |
21 | 'log_data' : 'trace.slog'} | 22 | 'log_data' : 'trace.slog'} |
@@ -34,7 +35,7 @@ DEFAULTS = {'params_file' : 'params.py', | |||
34 | 'sched_file' : 'sched.py', | 35 | 'sched_file' : 'sched.py', |
35 | 'duration' : 10, | 36 | 'duration' : 10, |
36 | 'spin' : 'rtspin', | 37 | 'spin' : 'rtspin', |
37 | 'cycles' : 2000} | 38 | 'cycles' : ft_freq() or 2000} |
38 | 39 | ||
39 | '''Default sched_trace events (this is all of them).''' | 40 | '''Default sched_trace events (this is all of them).''' |
40 | SCHED_EVENTS = range(501, 513) | 41 | SCHED_EVENTS = range(501, 513) |