diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/config/config.py b/config/config.py index cfdfb05..599371c 100644 --- a/config/config.py +++ b/config/config.py | |||
| @@ -4,6 +4,7 @@ from common import get_executable_hint,ft_freq | |||
| 4 | 4 | ||
| 5 | '''Paths to binaries.''' | 5 | '''Paths to binaries.''' |
| 6 | BINS = {'rtspin' : get_executable_hint('rtspin', 'liblitmus'), | 6 | BINS = {'rtspin' : get_executable_hint('rtspin', 'liblitmus'), |
| 7 | 'mc2spin' : get_executable_hint('mc2spin', 'liblitmus'), | ||
| 7 | 'release' : get_executable_hint('release_ts', 'liblitmus'), | 8 | 'release' : get_executable_hint('release_ts', 'liblitmus'), |
| 8 | 'ftcat' : get_executable_hint('ftcat', 'feather-trace-tools'), | 9 | 'ftcat' : get_executable_hint('ftcat', 'feather-trace-tools'), |
| 9 | 'ftsplit' : get_executable_hint('ft2csv', 'feather-trace-tools'), | 10 | 'ftsplit' : get_executable_hint('ft2csv', 'feather-trace-tools'), |
| @@ -18,7 +19,8 @@ BINS = {'rtspin' : get_executable_hint('rtspin', 'liblitmus'), | |||
| 18 | FILES = {'params_file' : 'params.py', | 19 | FILES = {'params_file' : 'params.py', |
| 19 | 'sched_file' : 'sched.py', | 20 | 'sched_file' : 'sched.py', |
| 20 | 'ft_data' : 'ft.bin', | 21 | 'ft_data' : 'ft.bin', |
| 21 | 'ft_matches' : r'(ft.*\.bin$)|(.*\.ft)', | 22 | 'ft_msg_data' : 'ftmsg.bin', |
| 23 | 'ft_matches' : r'(ft.*\.bin$)|(ftmsg.*\.bin$)|(.*\.ft)', | ||
| 22 | 'linux_data' : 'trace.dat', | 24 | 'linux_data' : 'trace.dat', |
| 23 | 'sched_data' : 'st-{}.bin', | 25 | 'sched_data' : 'st-{}.bin', |
| 24 | 'log_data' : 'trace.slog'} | 26 | 'log_data' : 'trace.slog'} |
| @@ -38,24 +40,35 @@ PARAMS = {'sched' : 'scheduler', # Scheduler used by run_exps | |||
| 38 | 40 | ||
| 39 | '''Default values for program options.''' | 41 | '''Default values for program options.''' |
| 40 | DEFAULTS = {'duration' : 10, | 42 | DEFAULTS = {'duration' : 10, |
| 41 | 'prog' : 'rtspin', | 43 | #'prog' : 'rtspin', |
| 44 | 'prog' : 'mc2spin', | ||
| 42 | 'out-gen' : 'exps', | 45 | 'out-gen' : 'exps', |
| 43 | 'out-run' : 'run-data', | 46 | 'out-run' : 'run-data', |
| 44 | 'out-parse' : 'parse-data', | 47 | 'out-parse' : 'parse-data', |
| 45 | 'out-plot' : 'plot-data', | 48 | 'out-plot' : 'plot-data', |
| 46 | 'cycles' : ft_freq() or 2000} | 49 | 'cycles' : ft_freq()} #ft_freq()} # or 2000} |
| 47 | 50 | ||
| 48 | 51 | ||
| 49 | '''Default sched_trace events (this is all of them).''' | 52 | '''Default sched_trace events (this is all of them).''' |
| 50 | SCHED_EVENTS = range(501, 513) | 53 | SCHED_EVENTS = range(501, 513) |
| 51 | 54 | ||
| 52 | '''Overhead events.''' | 55 | '''Overhead events.''' |
| 53 | OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK'] | 56 | #OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'RELEASE_C', 'SCHED2', 'TICK', 'CXS', 'LOCK', 'UNLOCK', 'ISR', 'SCHED_A', 'SCHED_C'] |
| 57 | OVH_BASE_EVENTS = ['SCHED', 'RELEASE', 'RELEASE_C', 'SCHED2', 'TICK', 'CXS', 'ISR', 'SCHED_A', 'SCHED_C'] | ||
| 54 | OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in | 58 | OVH_ALL_EVENTS = ["%s_%s" % (e, t) for (e,t) in |
| 55 | itertools.product(OVH_BASE_EVENTS, ["START","END"])] | 59 | itertools.product(OVH_BASE_EVENTS, ["START","END"])] |
| 56 | OVH_ALL_EVENTS += ['RELEASE_LATENCY'] | 60 | OVH_ALL_EVENTS += ['RELEASE_LATENCY'] |
| 61 | OVH_ALL_EVENTS += ['RELEASE_LATENCY_A'] | ||
| 62 | OVH_ALL_EVENTS += ['RELEASE_LATENCY_B'] | ||
| 63 | OVH_ALL_EVENTS += ['RELEASE_LATENCY_C'] | ||
| 57 | # This event doesn't have a START and END | 64 | # This event doesn't have a START and END |
| 58 | OVH_BASE_EVENTS += ['RELEASE_LATENCY'] | 65 | OVH_BASE_EVENTS += ['RELEASE_LATENCY'] |
| 66 | OVH_BASE_EVENTS += ['RELEASE_LATENCY_A'] | ||
| 67 | OVH_BASE_EVENTS += ['RELEASE_LATENCY_B'] | ||
| 68 | OVH_BASE_EVENTS += ['RELEASE_LATENCY_C'] | ||
| 69 | |||
| 70 | OVH_MSG_EVENTS = ['SEND_RESCHED_START' , 'SEND_RESCHED_END'] | ||
| 71 | OVH_BASE_EVENTS += ['SEND_RESCHED'] | ||
| 59 | 72 | ||
| 60 | # If a task is missing more than this many records, its measurements | 73 | # If a task is missing more than this many records, its measurements |
| 61 | # are not included in sched_trace summaries | 74 | # are not included in sched_trace summaries |
