1# Copyright (c) 2023, Meta 2# Copyright (c) 2024, Tenstorrent AI ULC 3# 4# SPDX-License-Identifier: Apache-2.0 5 6mainmenu "POSIX Threads Benchmark" 7 8source "Kconfig.zephyr" 9 10config TEST_DURATION_S 11 int "Number of seconds to run the test" 12 default 5 13 help 14 Duration for the test, in seconds. 15 16config TEST_DELAY_US 17 int "Microseconds to delay between pthread join and create" 18 default 0 19 help 20 If there is a race condition, a value of zero here should 21 cause a crash. 22 23config TEST_STACK_SIZE 24 int "Size of each thread stack in this test" 25 default 1024 if 64BIT 26 default 1024 if SPARC 27 default 512 28 help 29 The minimal stack size required to run a minimal thread. 30 31config TEST_KTHREADS 32 bool "Test k_threads" 33 default y 34 help 35 Run tests for k_threads 36 37config TEST_PTHREADS 38 bool "Test pthreads" 39 default y 40 help 41 Run tests for pthreads 42 43config TEST_PERIODIC_STATS 44 bool "Print statistics periodically" 45 help 46 Print statistics periodically throughout the benchmark. 47