tests/kernel/benchmarks: Disable TICKLESS_KERNEL for "no tick" tests

These tests was written to try to eliminate timer interrupts, but the
mechanism chosen (setting TICKS_PER_SECOND to 1) is dangerously
susceptible to overflow conditions on systems with fast cycle counters
and high timeout durations.

Actually the tests pass just fine if you use a conventional tick rate
and use a tickless-capable driver (which eliminates interrupts too,
which is the whole point), but there's no easy way in kconfig to do an
"if" to select that condition for capable systems only.  Just disable
tickless to keep the same behavior.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2018-10-09 14:21:12 -07:00 committed by Anas Nashif
parent 0f444c84e5
commit 46891f0213
4 changed files with 6 additions and 0 deletions

View file

@ -4,6 +4,8 @@ CONFIG_STDOUT_CONSOLE=y
# eliminate timer interrupts during the benchmark
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1
CONFIG_TICKLESS_KERNEL=n
CONFIG_MAIN_THREAD_PRIORITY=6
CONFIG_FORCE_NO_ASSERT=y

View file

@ -10,6 +10,8 @@ CONFIG_SSE_FP_MATH=y
# eliminate timer interrupts during the benchmark
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1
CONFIG_TICKLESS_KERNEL=n
CONFIG_FORCE_NO_ASSERT=y
#Disable Userspace

View file

@ -4,6 +4,7 @@ CONFIG_STDOUT_CONSOLE=y
# eliminate timer interrupts during the benchmark
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1
CONFIG_TICKLESS_KERNEL=n
# We use irq_offload(), enable it
CONFIG_IRQ_OFFLOAD=y

View file

@ -4,6 +4,7 @@ CONFIG_STDOUT_CONSOLE=y
# eliminate timer interrupts during the benchmark
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1
CONFIG_TICKLESS_KERNEL=n
CONFIG_MAIN_STACK_SIZE=16384
CONFIG_FORCE_NO_ASSERT=y