zephyr/tests/benchmarks
Peter Mitsis 1c5072780f tests: thread_metric: Fix cooperative for SMP
The thread metric cooperative benchmark had a subtle flaw on
SMP enabled systems. The reporting/main thread was running at
a higher priority than the "cooperative" threads. When that
reporting thread woke up from its 30 second sleep, there was a
chance that it would change the ordering of the "cooperative"
threads before the test expected it.

This ordering change is not present on UP systems as the current
thread is always in the ready queue. However, on SMP systems the
current thread is not in the ready queue and is re-added to the
end of the list when it is preempted by a higher priority thread.

To work around this, we make the priority of the main/reporting
thread to be the same as the "cooperative" threads. Thus when
the reporting thread wakes, it is added to the end of list and
no longer introduces an unexpected schedule point.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-03-17 07:05:36 +01:00
..
app_kernel tests: app_kernel: restore the PIPE_NOBUFF variant 2025-01-21 19:44:57 +01:00
cmsis_dsp boards: mps3: Add support for corstone300/an552 2024-10-26 03:58:05 +01:00
data_structure_perf tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
footprints Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
latency_measure tests: latency_measure: fix spelling of "switch" 2025-02-21 11:41:46 +00:00
mbedtls
posix/threads tests: Adjust to Twister changes in recording feature 2025-01-16 22:38:51 +01:00
sched kernel: rename 'dumb' scheduler and simply call it 'simple' 2025-03-15 00:34:58 +01:00
sched_queues kernel: rename 'dumb' scheduler and simply call it 'simple' 2025-03-15 00:34:58 +01:00
sched_userspace tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
sys_kernel tests: benchmarks: optimize filters and use platform_key. 2024-11-26 21:42:22 +01:00
thread_metric tests: thread_metric: Fix cooperative for SMP 2025-03-17 07:05:36 +01:00
wait_queues kernel: rename 'dumb' scheduler and simply call it 'simple' 2025-03-15 00:34:58 +01:00