This website requires JavaScript.
Explore
Help
Sign In
OrgZephyr
/
zephyr
mirror of
https://github.com/zephyrproject-rtos/zephyr.git
Watch
1
Star
0
Fork
You've already forked zephyr
0
Code
Issues
Releases
Wiki
Activity
c3cf543452
zephyr
/
tests
/
kernel
/
sched
/
preempt
/
testcase.yaml
5 lines
75 B
YAML
Raw
Normal View
History
Unescape
Escape
tests/kernel: Add preemption priority test This test exaustively tests preemption points between threads of all priority classes (cooperative, preemptible, and metairq), done both from a synchronous reschedule (via k_sem_give() and from interrupt context (via irq_offload()), and with and without the sched_lock() held. It then detects the next thread that runs and validates vs. the documented priority rules. Note that there is a whitelisted case on ARM, where irq_offload() seems not to be working like a true interrupt (it always returns to the interrupted context and doesn't seem to hit the normal exception return path which can context switch). And native_posix is excluded because of failures and the fact that it's actually never possible to truly preempt a thread there (they run to completion inside _Swap() et. al. and then block themselves). Both of these should be fixable in the future but don't (seem to) directly relate to this test. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-05-24 00:26:39 +08:00
tests
:
kernel.sched.preempt
:
tests: remove bat_commit, replace core with kernel bat_commit is an old and obsolete tag that has not been maintained over time and was supposed to serve a purpose that is obsolete now. Also rename core tag with kernel. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-10-16 02:36:19 +08:00
tags
:
kernel
tests/kernel: Add preemption priority test This test exaustively tests preemption points between threads of all priority classes (cooperative, preemptible, and metairq), done both from a synchronous reschedule (via k_sem_give() and from interrupt context (via irq_offload()), and with and without the sched_lock() held. It then detects the next thread that runs and validates vs. the documented priority rules. Note that there is a whitelisted case on ARM, where irq_offload() seems not to be working like a true interrupt (it always returns to the interrupted context and doesn't seem to hit the normal exception return path which can context switch). And native_posix is excluded because of failures and the fact that it's actually never possible to truly preempt a thread there (they run to completion inside _Swap() et. al. and then block themselves). Both of these should be fixable in the future but don't (seem to) directly relate to this test. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-05-24 00:26:39 +08:00
filter
:
not CONFIG_SMP