summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormike-holmes <mike.holmes@linaro.org>2013-09-28 23:58:21 -0400
committermike-holmes <mike.holmes@linaro.org>2013-09-28 23:58:21 -0400
commita905aeb8538b294cb8dd61b7048845ec135062eb (patch)
tree69a7ab733705d4b0b831948e6a5493122a0a2ba2
parentbb6098da2569bb351136e0768dccaaac42a6ab20 (diff)
format
-rw-r--r--latency.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/latency.c b/latency.c
index 08de24a..28f0d95 100644
--- a/latency.c
+++ b/latency.c
@@ -249,7 +249,6 @@ int main(int argc, char* argv[])
counter_t clockspersec = 0ull;
counter_t max_latency_ns = 10000ull;
int c=0;
- int any_failure=0;
while ((c = getopt (argc, argv, "tr:c:b:s:f:l:")) != -1) {
switch(c) {
@@ -356,7 +355,7 @@ int main(int argc, char* argv[])
++(curdata->deadline_missed);
if (trace_on) {
ssize_t result = write(marker_fd, "Max latency exceeded\n", 17);
- any_failure=1;
+
/* Terminate so that we can view the trace.
cat /sys/kernel/debug/tracing/trace | less */
result = write(trace_fd, "0", 1);
@@ -384,11 +383,11 @@ int main(int argc, char* argv[])
munlockall();
- cout << "test_result:outofrange=" << hot.outofrange << " count " << " FAIL" << endl;
- cout << "test_result:deadline_missed=" << hot.deadline_missed << " count " << " FAIL" << endl;
- cout << "test_result:minrange=" << tous(hot.minrange,clockspersec) << " us" << " INFO" << endl ;
- cout << "test_result:maxrange=" << tous(hot.maxrange,clockspersec) << " us" << " INFO" << endl;
- cout << "test_result:average=" << tous(runtime * clockspersec / loops,clockspersec) << " us" << " INFO" << endl;
+ cout << "test_result:outofrange=" << hot.outofrange << " count " << " fail" << endl;
+ cout << "test_result:deadline_missed=" << hot.deadline_missed << " count " << " fail" << endl;
+ cout << "test_result:minrange=" << tous(hot.minrange,clockspersec) << " us" << " skip" << endl ;
+ cout << "test_result:maxrange=" << tous(hot.maxrange,clockspersec) << " us" << " skip" << endl;
+ cout << "test_result:average=" << tous(runtime * clockspersec / loops,clockspersec) << " us" << " skip" << endl;
if(statsfile.size()) {
@@ -404,12 +403,6 @@ int main(int argc, char* argv[])
outfile.close();
}
- if ( any_failure ) {
- printf("test_result:FAIL\n");
- }
- else{
- printf("test_result:PASS\n");
- }
return 0;
}