Age | Commit message (Collapse) | Author |
|
In mode 1 ("timer set + cancel performance"), measure CPU cycles for
odp_timer_start() and odp_timer_cancel() separately.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Simplify a couple of loops and avoid a modulo operation.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Include short description in Doxygen output for each performance test
application.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Update example applications to utilize new odp_timer_pool_start_multi()
API.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Remove possibility to free a timer that is running. When timer
free call returns, the timer handle cannot be referenced any
more. Expiration and event delivery of an already destroyed
timer is an error prone corner case.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
|
|
To avoid division by zero in result print, check the value used
in division instead of number of rounds.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Measure and report timer start cycles in expire and start mode
(-m 2).
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Add new mode (-m 2), which measures odp_schedule() overhead while
continuously restarting expiring timers.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Updated timer tests to use new return values of odp_timer_cancel().
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
|
|
Print min and max timeout length parameters when creating timer
pools.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
|
|
Stop using deprecated odp_timer_set_rel() function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
|
|
Stop using deprecated odp_timer_set_abs() function.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
|
|
Replace usage of deprecated schedule priority defines with matching
functions.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Update test applications to use odp_timer_pool_param_init()
instead of memset() in timer pool parameter initialization.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Use the new odph_thread_param_init() function to initialize
odph_thread_param_t.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Use the new odph_thread_common_param_init() function to initialize
odph_thread_common_param_t.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Replace ODP_CLOCK_CPU with ODP_CLOCK_DEFAULT on example and
performance test applications.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
|
|
Allocate global memory using SHM and add odph_parse_options() call to
enable running the application in process mode (--odph_proc or
ODPH_PROC_MODE set). The application memory model is set accordingly.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
|
|
Use ODPH_ERR() macro for all error prints.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Added new -m option to select test mode. A new mode tests timer
set and cancel operation performance in a loop. Timer target
timeout is set so far away (START_NS) that it should not happen
before a timer is cancelled and set again. Each timer is handled
by a single worker thread during the test.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Currently, the max and min timeout are being validated against the
minimum resolution supported by the timer implementation, instead
it should be validated against the required timer resolution.
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
|
|
For only half of the performance tests, ODP system info is shown in the
test log. This information should be added for every test to give
more context to the test results. For tests that report results in
units of CPU cycles, it is important to know the CPU model, frequency,
etc. to correctly analyze and interpret the results.
Signed-off-by: Malvika Gupta <Malvika.Gupta@arm.com>
Reviewed-by: Govindarajan Mohandoss <Govindarajan.Mohandoss@arm.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
|
|
Fixed copy-paste error from help text.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-and-tested-by: Matias Elo <matias.elo@nokia.com>
|
|
Use the new compression not used flag in test applications.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Added -s option to select between shared and private timer
pools. Currently, private timer pools can be tested only with
single CPU (the master thread runs the test).
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|
|
Added new test application to measure schedule call CPU
cycle consumption with various timer pool parameter
combinations. This measurement is mostly interesting with
software based timer implementations, where timers may be
polled from the schedule call.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
|