diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-18 11:21:33 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-18 11:21:33 -0400 |
commit | 652a57b5a53e41e585c7e0d10601c807ba08c36f (patch) | |
tree | 5f73195458cf1871171822be29b7439bec3caedc | |
parent | 7200ba40d1283f56891697cd40df7a118f37d05e (diff) |
Made trace-cmd support optional.
-rw-r--r-- | config/config.py | 5 | ||||
-rw-r--r-- | run/tracer.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/config/config.py b/config/config.py index ec35ea6..1199278 100644 --- a/config/config.py +++ b/config/config.py | |||
@@ -9,7 +9,8 @@ BINS = {'rtspin' : get_executable('rtspin', 'liblitmus'), | |||
9 | 'ftsplit' : get_executable('ft2csv', 'feather-trace-tools'), | 9 | 'ftsplit' : get_executable('ft2csv', 'feather-trace-tools'), |
10 | 'ftsort' : get_executable('ftsort', 'feather-trace-tools'), | 10 | 'ftsort' : get_executable('ftsort', 'feather-trace-tools'), |
11 | 'st_trace' : get_executable('st_trace', 'feather-trace-tools'), | 11 | 'st_trace' : get_executable('st_trace', 'feather-trace-tools'), |
12 | 'trace-cmd' : get_executable('trace-cmd', 'rt-kernelshark'), | 12 | # Option, as not everyone uses kernelshark yet |
13 | 'trace-cmd' : get_executable('trace-cmd', 'rt-kernelshark', True), | ||
13 | # Optional, as sched_trace is not a publically supported repository | 14 | # Optional, as sched_trace is not a publically supported repository |
14 | 'st_show' : get_executable('st_show', 'sched_trace', True)} | 15 | 'st_show' : get_executable('st_show', 'sched_trace', True)} |
15 | 16 | ||
@@ -32,7 +33,7 @@ PARAMS = {'sched' : 'scheduler', # Scheduler used by run_exps | |||
32 | DEFAULTS = {'params_file' : 'params.py', | 33 | DEFAULTS = {'params_file' : 'params.py', |
33 | 'sched_file' : 'sched.py', | 34 | 'sched_file' : 'sched.py', |
34 | 'duration' : 10, | 35 | 'duration' : 10, |
35 | 'spin' : 'rtspin', | 36 | 'spin' : 'rtspin', |
36 | 'cycles' : 2000} | 37 | 'cycles' : 2000} |
37 | 38 | ||
38 | '''Default sched_trace events (this is all of them).''' | 39 | '''Default sched_trace events (this is all of them).''' |
diff --git a/run/tracer.py b/run/tracer.py index 723bcad..303aae0 100644 --- a/run/tracer.py +++ b/run/tracer.py | |||
@@ -37,7 +37,7 @@ class LinuxTracer(Tracer): | |||
37 | 37 | ||
38 | @staticmethod | 38 | @staticmethod |
39 | def enabled(): | 39 | def enabled(): |
40 | return os.path.exists(LinuxTracer.LITMUS_EVENTS) | 40 | return conf.BINS['trace-cmd'] and os.path.exists(LinuxTracer.LITMUS_EVENTS) |
41 | 41 | ||
42 | def stop_tracing(self): | 42 | def stop_tracing(self): |
43 | map(methodcaller('interrupt'), self.bins) | 43 | map(methodcaller('interrupt'), self.bins) |