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 /run | |
parent | 7200ba40d1283f56891697cd40df7a118f37d05e (diff) |
Made trace-cmd support optional.
Diffstat (limited to 'run')
-rw-r--r-- | run/tracer.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |