aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2014-01-21 16:45:48 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2014-01-21 16:45:48 -0500
commitf5c65425a75da3f2a182986692f31b0906e055d1 (patch)
treec85cbb1a4a91eced3f21d23d01467497e966f164
parent5f9214f3bf5ad66cc1f664802fd25024212be233 (diff)
Rename graph latency functions.
-rwxr-xr-xecrts14/ecrts14.py14
-rwxr-xr-xecrts14/quick.py14
2 files changed, 14 insertions, 14 deletions
diff --git a/ecrts14/ecrts14.py b/ecrts14/ecrts14.py
index 9cc52de..c46d292 100755
--- a/ecrts14/ecrts14.py
+++ b/ecrts14/ecrts14.py
@@ -339,8 +339,8 @@ def process_dp(_dp):
339 this_method = {} 339 this_method = {}
340 this_method['sched'] = is_sched 340 this_method['sched'] = is_sched
341 if is_sched: 341 if is_sched:
342 this_method['latencies'] = map(graph.bound_graph_response_time, graphs) 342 this_method['latencies'] = map(graph.bound_graph_latency, graphs)
343 this_method['ideal_latencies'] = map(graph.compute_ideal_response_time, graphs) 343 this_method['ideal_latencies'] = map(graph.compute_ideal_graph_latency, graphs)
344 this_task_set[method] = this_method 344 this_task_set[method] = this_method
345 else: 345 else:
346 # global. no partitioning. all methods equivelent 346 # global. no partitioning. all methods equivelent
@@ -349,8 +349,8 @@ def process_dp(_dp):
349 this_method = {} 349 this_method = {}
350 this_method['sched'] = is_sched 350 this_method['sched'] = is_sched
351 if is_sched: 351 if is_sched:
352 this_method['latencies'] = map(graph.bound_graph_response_time, graphs) 352 this_method['latencies'] = map(graph.bound_graph_latency, graphs)
353 this_method['ideal_latencies'] = map(graph.compute_ideal_response_time, graphs) 353 this_method['ideal_latencies'] = map(graph.compute_ideal_graph_latency, graphs)
354 for method, _, _ in TESTS: 354 for method, _, _ in TESTS:
355 this_task_set[method] = this_method 355 this_task_set[method] = this_method
356 356
@@ -358,7 +358,7 @@ def process_dp(_dp):
358 all_sched = True if num_method_sched == n_methods else False 358 all_sched = True if num_method_sched == n_methods else False
359 359
360 if all_sched: 360 if all_sched:
361 hrt_ideal_response_times = map(graph.compute_hrt_ideal_response_time, graphs) 361 hrt_ideal_response_times = map(graph.compute_hrt_ideal_graph_latency, graphs)
362 362
363 # they're all schedulable, so compute graph latencies 363 # they're all schedulable, so compute graph latencies
364 # redo with job splitting 364 # redo with job splitting
@@ -367,12 +367,12 @@ def process_dp(_dp):
367 # redo test to get the split-based latency 367 # redo test to get the split-based latency
368 dp.job_splitting = True 368 dp.job_splitting = True
369 is_sched, processed_ts = test(ts, graphs, subts, dp, overheads) 369 is_sched, processed_ts = test(ts, graphs, subts, dp, overheads)
370 this_task_set[method]['split_latencies'] = map(graph.bound_graph_response_time, graphs) 370 this_task_set[method]['split_latencies'] = map(graph.bound_graph_latency, graphs)
371 else: 371 else:
372 # global. no partitioning. all methods equivelent 372 # global. no partitioning. all methods equivelent
373 dp.job_splitting = True 373 dp.job_splitting = True
374 is_sched, processed_ts = TESTS[0][2](ts, graphs, subts, dp, overheads) 374 is_sched, processed_ts = TESTS[0][2](ts, graphs, subts, dp, overheads)
375 split_lat = map(graph.bound_graph_response_time, graphs) 375 split_lat = map(graph.bound_graph_latency, graphs)
376 for method, _, _ in TESTS: 376 for method, _, _ in TESTS:
377 this_task_set[method]['split_latencies'] = split_lat 377 this_task_set[method]['split_latencies'] = split_lat
378 378
diff --git a/ecrts14/quick.py b/ecrts14/quick.py
index 9b3ec87..560b365 100755
--- a/ecrts14/quick.py
+++ b/ecrts14/quick.py
@@ -339,8 +339,8 @@ def process_dp(_dp):
339 this_method = {} 339 this_method = {}
340 this_method['sched'] = is_sched 340 this_method['sched'] = is_sched
341 if is_sched: 341 if is_sched:
342 this_method['latencies'] = map(graph.bound_graph_response_time, graphs) 342 this_method['latencies'] = map(graph.bound_graph_latency, graphs)
343 this_method['ideal_latencies'] = map(graph.compute_ideal_response_time, graphs) 343 this_method['ideal_latencies'] = map(graph.compute_ideal_graph_latency, graphs)
344 this_task_set[method] = this_method 344 this_task_set[method] = this_method
345 else: 345 else:
346 # global. no partitioning. all methods equivelent 346 # global. no partitioning. all methods equivelent
@@ -349,8 +349,8 @@ def process_dp(_dp):
349 this_method = {} 349 this_method = {}
350 this_method['sched'] = is_sched 350 this_method['sched'] = is_sched
351 if is_sched: 351 if is_sched:
352 this_method['latencies'] = map(graph.bound_graph_response_time, graphs) 352 this_method['latencies'] = map(graph.bound_graph_latency, graphs)
353 this_method['ideal_latencies'] = map(graph.compute_ideal_response_time, graphs) 353 this_method['ideal_latencies'] = map(graph.compute_ideal_graph_latency, graphs)
354 for method, _, _ in TESTS: 354 for method, _, _ in TESTS:
355 this_task_set[method] = this_method 355 this_task_set[method] = this_method
356 356
@@ -358,7 +358,7 @@ def process_dp(_dp):
358 all_sched = True if num_method_sched == n_methods else False 358 all_sched = True if num_method_sched == n_methods else False
359 359
360 if all_sched: 360 if all_sched:
361 hrt_ideal_response_times = map(graph.compute_hrt_ideal_response_time, graphs) 361 hrt_ideal_response_times = map(graph.compute_hrt_ideal_graph_latency, graphs)
362 362
363 # they're all schedulable, so compute graph latencies 363 # they're all schedulable, so compute graph latencies
364 # redo with job splitting 364 # redo with job splitting
@@ -367,12 +367,12 @@ def process_dp(_dp):
367 # redo test to get the split-based latency 367 # redo test to get the split-based latency
368 dp.job_splitting = True 368 dp.job_splitting = True
369 is_sched, processed_ts = test(ts, graphs, subts, dp, overheads) 369 is_sched, processed_ts = test(ts, graphs, subts, dp, overheads)
370 this_task_set[method]['split_latencies'] = map(graph.bound_graph_response_time, graphs) 370 this_task_set[method]['split_latencies'] = map(graph.bound_graph_latency, graphs)
371 else: 371 else:
372 # global. no partitioning. all methods equivelent 372 # global. no partitioning. all methods equivelent
373 dp.job_splitting = True 373 dp.job_splitting = True
374 is_sched, processed_ts = TESTS[0][2](ts, graphs, subts, dp, overheads) 374 is_sched, processed_ts = TESTS[0][2](ts, graphs, subts, dp, overheads)
375 split_lat = map(graph.bound_graph_response_time, graphs) 375 split_lat = map(graph.bound_graph_latency, graphs)
376 for method, _, _ in TESTS: 376 for method, _, _ in TESTS:
377 this_task_set[method]['split_latencies'] = split_lat 377 this_task_set[method]['split_latencies'] = split_lat
378 378