Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions testing/ostest/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ config TESTING_OSTEST_SPINLOCK_THREADS
default 2
range 1 32

config TESTING_OSTEST_SPINLOCK_PRIORITY
int "Priority of spinlock test threads"
default 255
range 1 255
---help---
Priority for spinlock test threads. Default is 255
(SCHED_PRIORITY_MAX). On systems with watchdog monitoring
(e.g., BMP with WdgM), using 255 may starve the watchdog
feeding task and trigger a system reset. Set this below
the watchdog task priority if needed.

config TESTING_OSTEST_MULTIUSER
bool "Multi-user identity and permission tests"
default n
Expand All @@ -144,6 +155,16 @@ config TESTING_OSTEST_MULTIUSER

config TEST_LOOP_SCALE
int "Loop scale of spinlock test (N x 10,000)"
default 5 if MM_KASAN
default 100
---help---
Number of iterations per spinlock test thread, expressed as
scale * 100000 (see LOOP_TIMES in spinlock.c). When KASAN is
enabled the per-lock kasan_check_report overhead serializes
through the global kasan spinlock, slowing each op by orders
of magnitude on single-core QEMU/emulator builds. Use a much
smaller default under MM_KASAN so the test completes within
test-runner timeouts. Non-KASAN builds keep the original 100
scale for meaningful throughput measurement.

endif # TESTING_OSTEST
Loading
Loading