zephyr/tests/kernel/smp/testcase.yaml
TaiJu Wu 18d9ba4b82 test: Add a testcase for cpu affinity
Pin thread to a specific cpu. Once thread gets cpu, check
the cpu id is correct and then thread will give up cpu.

Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2024-05-31 08:07:46 +02:00

25 lines
571 B
YAML

tests:
kernel.multiprocessing.smp:
tags:
- kernel
- smp
ignore_faults: true
filter: (CONFIG_MP_MAX_NUM_CPUS > 1)
kernel.multiprocessing.smp.minimallibc:
tags:
- kernel
- smp
- libc
ignore_faults: true
filter: (CONFIG_MP_MAX_NUM_CPUS > 1) and CONFIG_MINIMAL_LIBC_SUPPORTED
extra_configs:
- CONFIG_MINIMAL_LIBC=y
kernel.multiprocessing.smp.affinity:
tags:
- kernel
- smp
ignore_faults: true
filter: (CONFIG_MP_MAX_NUM_CPUS > 1)
extra_configs:
- CONFIG_SCHED_CPU_MASK=y