summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMac Mollison <mollison@cs.unc.edu>2009-02-24 16:40:05 -0500
committerMac Mollison <mollison@cs.unc.edu>2009-02-24 16:40:05 -0500
commit7b8659ca348e02403e5d2681e268140a78cc959d (patch)
treedd935c02b22936d556421e810024e11334a07862
parent06183c3957b7c25fdcafd802460aef28b9f11e61 (diff)
Very minor change
-Cleaned up some commentary in sta.py -Added path variable to run.py
-rwxr-xr-xrun.py45
-rwxr-xr-xsta.py5
2 files changed, 24 insertions, 26 deletions
diff --git a/run.py b/run.py
index b1710fe..eac0ef9 100755
--- a/run.py
+++ b/run.py
@@ -16,7 +16,7 @@ def main():
16 #trace.filter("when<2500000000") 16 #trace.filter("when<2500000000")
17 #trace.filter("forced?==True") 17 #trace.filter("forced?==True")
18 18
19 #trace.filter("type==1") 19 trace.filter("type==1")
20 #trace.sort(lambda x: x['pid'] or 0) 20 #trace.sort(lambda x: x['pid'] or 0)
21 21
22 for record in trace.iter: 22 for record in trace.iter:
@@ -30,37 +30,38 @@ def main():
30# Put lists of your trace files here # 30# Put lists of your trace files here #
31###################################### 31######################################
32 32
33path = '/home/mollison/sta/traces/'
33 34
34full_list = [ 35full_list = [
35'/home/mollison/sta-alt/traces/st-g6-0.bin', 36path + 'st-g6-0.bin',
36'/home/mollison/sta-alt/traces/st-g6-1.bin', 37path + 'st-g6-1.bin',
37'/home/mollison/sta-alt/traces/st-g6-2.bin', 38path + 'st-g6-2.bin',
38'/home/mollison/sta-alt/traces/st-g6-3.bin', 39path + 'st-g6-3.bin',
39'/home/mollison/sta-alt/traces/st-x19-0.bin', 40path + 'st-x19-0.bin',
40'/home/mollison/sta-alt/traces/st-x19-1.bin', 41path + 'st-x19-1.bin',
41'/home/mollison/sta-alt/traces/st-x19-2.bin', 42path + 'st-x19-2.bin',
42'/home/mollison/sta-alt/traces/st-x19-3.bin', 43path + 'st-x19-3.bin',
43'/home/mollison/sta-alt/traces/st0.fg', 44path + 'st0.fg',
44'/home/mollison/sta-alt/traces/st1.fg'] 45path + 'st1.fg']
45 46
46short_list = [ 47short_list = [
47'/home/mollison/sta-alt/traces/st-x19-2.bin'] 48path + 'st-x19-2.bin']
48 49
49g6_list = [ 50g6_list = [
50'/home/mollison/sta-alt/traces/st-g6-0.bin', 51path + 'st-g6-0.bin',
51'/home/mollison/sta-alt/traces/st-g6-1.bin', 52path + 'st-g6-1.bin',
52'/home/mollison/sta-alt/traces/st-g6-2.bin', 53path + 'st-g6-2.bin',
53'/home/mollison/sta-alt/traces/st-g6-3.bin'] 54path + 'st-g6-3.bin']
54 55
55x19_list = [ 56x19_list = [
56'/home/mollison/sta-alt/traces/st-x19-0.bin', 57path + 'st-x19-0.bin',
57'/home/mollison/sta-alt/traces/st-x19-1.bin', 58path + 'st-x19-1.bin',
58'/home/mollison/sta-alt/traces/st-x19-2.bin', 59path + 'st-x19-2.bin',
59'/home/mollison/sta-alt/traces/st-x19-3.bin'] 60path + 'st-x19-3.bin']
60 61
61simple_list = [ 62simple_list = [
62'/home/mollison/sta-alt/traces/st0.fg', 63path + 'st0.fg',
63'/home/mollison/sta-alt/traces/st1.fg'] 64path + 'st1.fg']
64 65
65 66
66############## 67##############
diff --git a/sta.py b/sta.py
index 49cbd5d..4ff6414 100755
--- a/sta.py
+++ b/sta.py
@@ -95,8 +95,6 @@ class StNameData:
95 keys = StHeader.keys + ['name'] 95 keys = StHeader.keys + ['name']
96 message = 'The name of the executable of this process.' 96 message = 'The name of the executable of this process.'
97 97
98# Untested because this never appears in my sample files
99# ACTUALLY: None in 0, none in 1, a bunch in 2, and none in 3
100class StParamData: 98class StParamData:
101 format = 'IIIc' 99 format = 'IIIc'
102 #format = 'ccccc' 100 #format = 'ccccc'
@@ -104,14 +102,13 @@ class StParamData:
104 keys = StHeader.keys + ['wcet','period','phase','partition'] 102 keys = StHeader.keys + ['wcet','period','phase','partition']
105 message = 'Regular parameters.' 103 message = 'Regular parameters.'
106 104
107
108class StReleaseData: 105class StReleaseData:
109 format = 'LL' 106 format = 'LL'
110 formatStr = struct.Struct(StHeader.format + format) 107 formatStr = struct.Struct(StHeader.format + format)
111 keys = StHeader.keys + ['release_time','deadline'] 108 keys = StHeader.keys + ['release_time','deadline']
112 message = 'A job was/is going to be released.' 109 message = 'A job was/is going to be released.'
113 110
114 111#Not yet used by Sched Trace
115class StAssignedData: 112class StAssignedData:
116 format = 'Lc' 113 format = 'Lc'
117 formatStr = struct.Struct(StHeader.format + format) 114 formatStr = struct.Struct(StHeader.format + format)