summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMac Mollison <mollison@cs.unc.edu>2009-02-01 14:49:00 -0500
committerMac Mollison <mollison@cs.unc.edu>2009-02-01 14:49:00 -0500
commit645d2388371d97cd106f6e68cd9ef7a722010166 (patch)
tree5afddbb5d723cbb743d80c67a18d3b0a770879d2
parent439e60b68c42ccc49475a13f1afcf81260c332d3 (diff)
Fixed error in sta_output in which get_types was not found
-rwxr-xr-xsta.py2
-rw-r--r--sta_output.py2
-rw-r--r--sta_types.py1
3 files changed, 4 insertions, 1 deletions
diff --git a/sta.py b/sta.py
index b0bb65a..4a53b6e 100755
--- a/sta.py
+++ b/sta.py
@@ -16,7 +16,7 @@ from sta_types import *
16# Business logic # 16# Business logic #
17################## 17##################
18 18
19def trace_iter(*files): 19def trace_iter(files):
20 """Returns an iterator for iterating over trace(s) and producing records.""" 20 """Returns an iterator for iterating over trace(s) and producing records."""
21 for file in files: 21 for file in files:
22 f = open(file,'rb') 22 f = open(file,'rb')
diff --git a/sta_output.py b/sta_output.py
index 6e5546f..1e46f78 100644
--- a/sta_output.py
+++ b/sta_output.py
@@ -2,6 +2,8 @@
2# Output formatting functions # 2# Output formatting functions #
3#################################### 3####################################
4 4
5from sta_types import get_type
6
5def print_record_verbose(record): 7def print_record_verbose(record):
6 """Prints a record verbosely, given the record as a dict.""" 8 """Prints a record verbosely, given the record as a dict."""
7 print(50*'=') 9 print(50*'=')
diff --git a/sta_types.py b/sta_types.py
index d837559..aaff49e 100644
--- a/sta_types.py
+++ b/sta_types.py
@@ -52,6 +52,7 @@ class StSwitchAwayData:
52 format = 'LI' 52 format = 'LI'
53 formatStr = struct.Struct(StHeader.format + format) 53 formatStr = struct.Struct(StHeader.format + format)
54 keys = StHeader.keys + ['when','exec_time'] 54 keys = StHeader.keys + ['when','exec_time']
55 message = 'A process was away on a given CPU.'
55 56
56class StCompletionData: 57class StCompletionData:
57 format = 'L7x?c' 58 format = 'L7x?c'