On 19 May 2015 at 11:43, Nicolas Morey-Chaisemartin <[email protected]>
wrote:

>  I ran into the same issue on our side and after a quick look, this is
> kind of expected.
> By setting a period to a time duration smaller than the resolution, the
> probability is very high that this would happen
>
Yes period should not be smaller than the resolution, this does not make
sense.
I misunderstood the problem description earlier (well I didn't study it too
carefully).
The timer example should have a check that the period is at least one tick.


> Example:
> Get tick => N
> Time out = Tick + Period = N + 0 = N
> == New tick ==
> set_abs_timeout => Timeout < Tick => Error
>
> On a regular Workstation without any specific configuration? I get this
> issue with period = 5 * resolution but it seems OK afterward.
> I guess with the right Kernel settings, it shouldn't happen, as long as
> period >= resolution.
>
> Nicolas
>
>
> On 04/09/2015 07:17 PM, [email protected] wrote:
>
>   Bug ID 1449 <https://bugs.linaro.org/show_bug.cgi?id=1449>  Summary 
> odp_timer_test
> core dump  Product OpenDataPlane  Version 1.0.2  Hardware Other  OS Linux
> Status UNCONFIRMED  Severity normal  Priority ---  Component Timers
> Assignee [email protected]  Reporter [email protected]  CC
> [email protected]
>
>  ./odp_timer_test -p 5
>
>
> ....
> ...
> odp_timer_test.c:93:test_abs_timeouts():  [4] period 0 ticks,  5000 ns
> odp_timer_test.c:96:test_abs_timeouts():  [4] current tick 0
> odp_timer_test.c:93:test_abs_timeouts():  [3] period 0 ticks,  5000 ns
> odp_timer_test.c:96:test_abs_timeouts():  [3] current tick 0
> odp_timer_test.c:156:test_abs_timeouts():  [6] timeout, tick 0
> odp_timer_test.c:121:test_abs_timeouts(): odp_timer_set_abs() failed: too 
> early
> odp_timer_test.c:156:test_abs_timeouts():  [4] timeout, tick 0
> Aborted (core dumped)
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You are on the CC list for the bug.
>
>
>
> _______________________________________________
> lng-odp mailing 
> [email protected]https://lists.linaro.org/mailman/listinfo/lng-odp
>
>
>
>
> _______________________________________________
> lng-odp mailing list
> [email protected]
> https://lists.linaro.org/mailman/listinfo/lng-odp
>
>
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to