aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/config.py5
-rw-r--r--run/tracer.py2
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
32DEFAULTS = {'params_file' : 'params.py', 33DEFAULTS = {'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)