2016-02-21 18:33:13 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
2019-01-23 21:21:13 +01:00
|
|
|
config TESTING_SMP
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "SMP example"
|
2016-02-21 18:33:13 +01:00
|
|
|
default n
|
2018-12-25 15:15:16 +01:00
|
|
|
depends on SMP
|
2016-02-21 18:33:13 +01:00
|
|
|
---help---
|
|
|
|
Enable the SMP example. This example basically extracts the pthread
|
2018-12-12 23:37:38 +01:00
|
|
|
barrier test from apps/testing/ostest and adds some instrumentation
|
2016-02-21 18:33:13 +01:00
|
|
|
useful for debugging SMP implementations.
|
|
|
|
|
2019-01-23 21:21:13 +01:00
|
|
|
if TESTING_SMP
|
2016-02-21 18:33:13 +01:00
|
|
|
|
2019-01-23 21:21:13 +01:00
|
|
|
config TESTING_SMP_NBARRIER_THREADS
|
2016-02-21 18:33:13 +01:00
|
|
|
int "Number of barrier threads"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
Specifies the number of threads to create in the SMP test. The default
|
|
|
|
is 8 but a smaller number may be needed on systems without sufficient memory
|
|
|
|
to start so many threads.
|
|
|
|
|
2019-01-23 21:21:13 +01:00
|
|
|
config TESTING_SMP_PROGNAME
|
2016-02-21 18:33:13 +01:00
|
|
|
string "Program name"
|
|
|
|
default "smp"
|
|
|
|
---help---
|
2019-08-23 19:59:28 +02:00
|
|
|
This is the name of the program that will be used when the NSH ELF
|
2016-02-21 18:33:13 +01:00
|
|
|
program is installed.
|
|
|
|
|
2019-01-23 21:21:13 +01:00
|
|
|
config TESTING_SMP_PRIORITY
|
2016-02-21 18:33:13 +01:00
|
|
|
int "SMP task priority"
|
|
|
|
default 100
|
|
|
|
|
2019-01-23 21:21:13 +01:00
|
|
|
config TESTING_SMP_STACKSIZE
|
2016-02-21 18:33:13 +01:00
|
|
|
int "SMP stack size"
|
|
|
|
default 2048
|
|
|
|
|
|
|
|
endif
|