diff options
Diffstat (limited to 'run')
-rw-r--r-- | run/tracer.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/run/tracer.py b/run/tracer.py index 5e92a74..5099dff 100644 --- a/run/tracer.py +++ b/run/tracer.py | |||
@@ -93,7 +93,8 @@ class SchedTracer(Tracer): | |||
93 | return is_device("%s%d" % (SchedTracer.DEVICE_STR, 0)) | 93 | return is_device("%s%d" % (SchedTracer.DEVICE_STR, 0)) |
94 | 94 | ||
95 | class OverheadTracer(Tracer): | 95 | class OverheadTracer(Tracer): |
96 | DEVICE_STR = '/dev/litmus/ft_trace0' | 96 | DEVICE_STR = '/dev/litmus/ft_cpu_trace0' |
97 | MSG_DEVICE_STR = '/dev/litmus/ft_msg_trace0' | ||
97 | 98 | ||
98 | def __init__(self, output_dir): | 99 | def __init__(self, output_dir): |
99 | super(OverheadTracer, self).__init__("Overhead Trace", output_dir, True) | 100 | super(OverheadTracer, self).__init__("Overhead Trace", output_dir, True) |
@@ -103,7 +104,13 @@ class OverheadTracer(Tracer): | |||
103 | ftc = FTcat(conf.BINS['ftcat'], stdout_f, stderr_f, | 104 | ftc = FTcat(conf.BINS['ftcat'], stdout_f, stderr_f, |
104 | OverheadTracer.DEVICE_STR, conf.OVH_ALL_EVENTS) | 105 | OverheadTracer.DEVICE_STR, conf.OVH_ALL_EVENTS) |
105 | 106 | ||
107 | stdout_f2 = open('{0}/{1}'.format(self.output_dir, conf.FILES['ft_msg_data']), 'w') | ||
108 | stderr_f2 = open('{0}/{1}.stderr.txt'.format(self.output_dir, conf.FILES['ft_msg_data']), 'w') | ||
109 | ftc2 = FTcat(conf.BINS['ftcat'], stdout_f2, stderr_f2, | ||
110 | OverheadTracer.MSG_DEVICE_STR, conf.OVH_MSG_EVENTS) | ||
111 | |||
106 | self.bins.append(ftc) | 112 | self.bins.append(ftc) |
113 | self.bins.append(ftc2) | ||
107 | 114 | ||
108 | @staticmethod | 115 | @staticmethod |
109 | def enabled(): | 116 | def enabled(): |