summaryrefslogtreecommitdiff
path: root/cesar/lib/test/trace/src/trace_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/lib/test/trace/src/trace_perf.c')
-rw-r--r--cesar/lib/test/trace/src/trace_perf.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/cesar/lib/test/trace/src/trace_perf.c b/cesar/lib/test/trace/src/trace_perf.c
index b995a33263..bef5815085 100644
--- a/cesar/lib/test/trace/src/trace_perf.c
+++ b/cesar/lib/test/trace/src/trace_perf.c
@@ -25,27 +25,27 @@ main (void)
trace_buffer_t trace_buf;
u32 start, stop;
int i;
- phy_t *phy = phy_init (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
+ phy_init (NULL, NULL, NULL, NULL, NULL, NULL, NULL);
trace_init ();
/* Fast trace, print0. */
trace_buffer_add (&trace_buf, "fast", 2, 4, true, NULL);
- start = phy_sysdate (phy);
+ start = phy_sysdate ();
for (i = 0; i < NB_ITER; i++)
trace_fast_print0 (&trace_buf, 0);
- stop = phy_sysdate (phy);
+ stop = phy_sysdate ();
printf ("fast, print0: %d/%d\n", stop - start, NB_ITER);
trace_buffer_remove (&trace_buf);
/* Fast trace, print8. */
trace_buffer_add (&trace_buf, "fast", 2, 4, true, NULL);
- start = phy_sysdate (phy);
+ start = phy_sysdate ();
for (i = 0; i < NB_ITER; i++)
trace_fast_print8 (&trace_buf, 0, 1, 2, 3, 4, 5, 6, 7, 8);
- stop = phy_sysdate (phy);
+ stop = phy_sysdate ();
printf ("fast, print8: %d/%d\n", stop - start, NB_ITER);
trace_buffer_remove (&trace_buf);
/* Fast trace, printn. */
trace_buffer_add (&trace_buf, "fast", 2, 4, true, NULL);
- start = phy_sysdate (phy);
+ start = phy_sysdate ();
for (i = 0; i < NB_ITER; i++)
{
trace_fast_print0 (&trace_buf, 0);
@@ -58,28 +58,28 @@ main (void)
trace_fast_print7 (&trace_buf, 0, 1, 2, 3, 4, 5, 6, 7);
trace_fast_print8 (&trace_buf, 0, 1, 2, 3, 4, 5, 6, 7, 8);
}
- stop = phy_sysdate (phy);
+ stop = phy_sysdate ();
printf ("fast, printn: %d/%d\n", stop - start, NB_ITER);
trace_buffer_remove (&trace_buf);
/* Trace, print0. */
trace_buffer_add (&trace_buf, "slow", 2, 1, false, NULL);
- start = phy_sysdate (phy);
+ start = phy_sysdate ();
for (i = 0; i < NB_ITER; i++)
trace_print0 (&trace_buf, 0);
- stop = phy_sysdate (phy);
+ stop = phy_sysdate ();
printf ("print0: %d/%d\n", stop - start, NB_ITER);
trace_buffer_remove (&trace_buf);
/* Trace, print8. */
trace_buffer_add (&trace_buf, "slow", 2, 1, false, NULL);
- start = phy_sysdate (phy);
+ start = phy_sysdate ();
for (i = 0; i < NB_ITER; i++)
trace_print8 (&trace_buf, 0, 1, 2, 3, 4, 5, 6, 7, 8);
- stop = phy_sysdate (phy);
+ stop = phy_sysdate ();
printf ("print8: %d/%d\n", stop - start, NB_ITER);
trace_buffer_remove (&trace_buf);
/* Trace, printn. */
trace_buffer_add (&trace_buf, "slow", 2, 1, false, NULL);
- start = phy_sysdate (phy);
+ start = phy_sysdate ();
for (i = 0; i < NB_ITER; i++)
{
trace_print0 (&trace_buf, 0);
@@ -92,7 +92,7 @@ main (void)
trace_print7 (&trace_buf, 0, 1, 2, 3, 4, 5, 6, 7);
trace_print8 (&trace_buf, 0, 1, 2, 3, 4, 5, 6, 7, 8);
}
- stop = phy_sysdate (phy);
+ stop = phy_sysdate ();
printf ("printn: %d/%d\n", stop - start, NB_ITER);
trace_buffer_remove (&trace_buf);
/* Bye. */