Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Tests for Kernel Futex objects. More...
ZTEST (futex, test_futex_wait_forever) | |
Test k_futex_wait() forever. | |
ZTEST_USER (futex, test_futex_locate_access) | |
Test kernel supports locating kernel objects without private kernel data anywhere in memory, control access with the memory domain configuration. | |
ZTEST (futex, test_futex_wait_timeout) | |
ZTEST (futex, test_futex_wait_nowait) | |
ZTEST (futex, test_futex_wait_forever_wake) | |
Test k_futex_wait() and k_futex_wake() | |
ZTEST (futex, test_futex_wait_timeout_wake) | |
ZTEST (futex, test_futex_wait_nowait_wake) | |
ZTEST (futex, test_futex_wait_forever_wake_from_isr) | |
ZTEST (futex, test_futex_multiple_threads_wait_wake) | |
ZTEST (futex, test_multiple_futex_wait_wake) | |
ZTEST_USER (futex, test_user_futex_bad) | |
static void | futex_wait_wake (void *p1, void *p2, void *p3) |
static void | futex_wake (void *p1, void *p2, void *p3) |
void * | futex_setup (void) |
ZTEST_SUITE (futex, NULL, futex_setup, NULL, NULL, NULL) | |
Tests for Kernel Futex objects.
void * futex_setup | ( | void | ) |
#include <tests/kernel/mem_protect/futex/src/main.c>
|
static |
#include <tests/kernel/mem_protect/futex/src/main.c>
|
static |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST | ( | futex | , |
test_futex_multiple_threads_wait_wake | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST | ( | futex | , |
test_futex_wait_forever | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
Test k_futex_wait() forever.
ZTEST | ( | futex | , |
test_futex_wait_forever_wake | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
Test k_futex_wait() and k_futex_wake()
ZTEST | ( | futex | , |
test_futex_wait_forever_wake_from_isr | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST | ( | futex | , |
test_futex_wait_nowait | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST | ( | futex | , |
test_futex_wait_nowait_wake | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST | ( | futex | , |
test_futex_wait_timeout | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST | ( | futex | , |
test_futex_wait_timeout_wake | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST | ( | futex | , |
test_multiple_futex_wait_wake | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST_SUITE | ( | futex | , |
NULL | , | ||
futex_setup | , | ||
NULL | , | ||
NULL | , | ||
NULL | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
ZTEST_USER | ( | futex | , |
test_futex_locate_access | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>
Test kernel supports locating kernel objects without private kernel data anywhere in memory, control access with the memory domain configuration.
For that test kernel object which doesn't contain private kernel data will be used futex. Test performs handshaking between two user threads to test next requirements:
ZTEST_USER | ( | futex | , |
test_user_futex_bad | |||
) |
#include <tests/kernel/mem_protect/futex/src/main.c>