1# Copyright (c) 2023, Meta 2# 3# SPDX-License-Identifier: Apache-2.0 4 5source "Kconfig.zephyr" 6 7config TEST_NUM_CPUS 8 int "Number of CPUs to use in parallel" 9 range 1 MP_NUM_CPUS 10 default MP_NUM_CPUS 11 help 12 The number of parallel threads to run during the test. 13 14config TEST_DURATION_S 15 int "Number of seconds to run the test" 16 default 5 17 help 18 Duration for the test, in seconds. 19 20config TEST_DELAY_US 21 int "Microseconds to delay between pthread join and create" 22 default 0 23 help 24 If there is a race condition, a value of zero here should 25 cause a crash. 26 27config TEST_STACK_SIZE 28 int "Size of each thread stack in this test" 29 default 512 if !64_BIT 30 default 1024 if 64_BIT 31 help 32 The minimal stack size required to run a minimal thread. 33 34config TEST_KTHREADS 35 bool "Test k_threads" 36 default y 37 help 38 Run tests for k_threads 39 40config TEST_PTHREADS 41 bool "Test pthreads" 42 default y 43 help 44 Run tests for pthreads 45 46config TEST_EXTRA_ASSERTIONS 47 bool "Add extra assertions into the hot path" 48 default y 49 help 50 This can be disabled for benchmarking. 51