aboutsummaryrefslogtreecommitdiff
path: root/test/performance/odp_timer_perf.c
AgeCommit message (Collapse)Author
2024-01-11test: timer_perf: measure cycles separately for start and cancelJere Leppänen
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>
2024-01-11test: timer_perf: avoid modulo operation in a couple of loopsJere Leppänen
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>
2024-01-03test: performance: improve test application documentationsMatias Elo
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>
2023-12-20example: start using new odp_timer_pool_start_multi() callMatias Elo
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>
2023-12-19api: timer: only inactive timers can be freedPetri Savolainen
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>
2023-12-13test: timer_perf: fix thread activity checkPetri Savolainen
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>
2023-12-12test: timer_perf: measure timer start cyclesPetri Savolainen
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>
2023-08-24test: timer_perf: add new mode which starts timers again as they expireJere Leppänen
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>
2023-06-08test: timer: use new timer cancel return valuesPetri Savolainen
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>
2023-02-16test: timer_perf: print min/max timeout paramsPetri Savolainen
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>
2022-12-29test: timer_perf: remove deprecated odp_timer_set_rel() function usageMatias Elo
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>
2022-12-29test: timer_perf: remove deprecated odp_timer_set_abs() function usageMatias Elo
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>
2022-03-02test: remove usage of deprecated schedule priority definesMatias Elo
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>
2021-12-09test: timer: use timer pool param init functionPetri Savolainen
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>
2021-09-30use odph_thread_param_init()Jere Leppänen
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>
2021-09-30use odph_thread_common_param_init()Jere Leppänen
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>
2021-05-31test: use default clock source enumPetri Savolainen
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>
2021-04-23test: timer_perf: add process mode supportMatias Elo
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>
2020-12-08test: timer_perf: change error prints to ODPH_ERRPetri Savolainen
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>
2020-12-08test: timer_perf: add timer set-cancel performance test modePetri Savolainen
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>
2020-12-01test: performance: timer: fix timeout checkPavan Nikhilesh
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>
2020-10-06test: performance: add odp_sys_info_print() to all performance testsMalvika Gupta
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>
2020-02-28test: timer_perf: fix help textPetri Savolainen
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>
2019-11-14test: use compress not used flagPetri Savolainen
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>
2019-11-06test: timer_perf: add private timer pool supportPetri Savolainen
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>
2019-09-27test: timer_perf: add new timer performance testPetri Savolainen
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>