mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-04 13:49:08 +00:00
During the discussion about the impact of adding counter to TCB Mr anchao created a pthread mutex performance example: https://github.com/apache/nuttx/pull/17468#issuecomment-3660925314 Because this example can exercise (not ideally) the pthread mutex I decided to add it to apps/testing/sched, the program name will be called "pmutexp" (because "pmp" is not a good name). Signed-off-by: Alan C. Assis <acassis@gmail.com>
30 lines
812 B
Text
30 lines
812 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config TESTING_PTHREAD_MUTEX_PERF
|
|
bool "Pthread Mutex Performance (pmutexp) testing"
|
|
default n
|
|
---help---
|
|
Pthread Mutex Performance (pmp) helps to analyze the pthread
|
|
mutex performance, by calling the function many times.
|
|
|
|
if TESTING_PTHREAD_MUTEX_PERF
|
|
|
|
config TESTING_PTHREAD_MUTEX_PERF_PROGNAME
|
|
string "Program name"
|
|
default "pmutexp"
|
|
---help---
|
|
This is the name of the program that will be used when the NSH ELF
|
|
program is installed.
|
|
|
|
config TESTING_PTHREAD_MUTEX_PERF_PRIORITY
|
|
int "Priority of pmutexp process"
|
|
default 100
|
|
|
|
config TESTING_PTHREAD_MUTEX_PERF_STACKSIZE
|
|
int "Stack size of pmutexp process"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif
|