diff options
author | Matias Elo <matias.elo@nokia.com> | 2016-05-12 13:13:04 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-05-13 17:10:43 +0300 |
commit | cf5273ac37cce9c6efa751e7ec5ee2ff6d1fa58d (patch) | |
tree | d3f2fe7e5aeb0fd27a3e3900316e4638b811ac47 /test | |
parent | 5b895ff75edeca76e6cb94618e4ca9c4f7990489 (diff) |
linux-generic: timer: add missing odp_timeX_to_u64() functions
Add missing odp_timer_pool_to_u64(), odp_timer_to_u64(), and
odp_timeout_to_u64() functions. Use the functions in timer
validation tests.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/validation/timer/timer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/validation/timer/timer.c b/test/validation/timer/timer.c index a39640579..cc5548a71 100644 --- a/test/validation/timer/timer.c +++ b/test/validation/timer/timer.c @@ -168,6 +168,7 @@ void timer_test_odp_timer_cancel(void) tim = odp_timer_alloc(tp, queue, USER_PTR); if (tim == ODP_TIMER_INVALID) CU_FAIL_FATAL("Failed to allocate timer"); + LOG_DBG("Timer handle: %" PRIu64 "\n", odp_timer_to_u64(tim)); ev = odp_timeout_to_event(odp_timeout_alloc(pool)); if (ev == ODP_EVENT_INVALID) @@ -189,6 +190,7 @@ void timer_test_odp_timer_cancel(void) tmo = odp_timeout_from_event(ev); if (tmo == ODP_TIMEOUT_INVALID) CU_FAIL_FATAL("Cancel did not return timeout"); + LOG_DBG("Timeout handle: %" PRIu64 "\n", odp_timeout_to_u64(tmo)); if (odp_timeout_timer(tmo) != tim) CU_FAIL("Cancel invalid tmo.timer"); @@ -505,6 +507,7 @@ void timer_test_odp_timer_all(void) CU_ASSERT(tpinfo.param.max_tmo == MAX); CU_ASSERT(strcmp(tpinfo.name, NAME) == 0); + LOG_DBG("Timer pool handle: %" PRIu64 "\n", odp_timer_pool_to_u64(tp)); LOG_DBG("#timers..: %u\n", NTIMERS); LOG_DBG("Tmo range: %u ms (%" PRIu64 " ticks)\n", RANGE_MS, odp_timer_ns_to_tick(tp, 1000000ULL * RANGE_MS)); |