|
Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Macros | |
| #define | TIMEOUT_MS 500 |
| #define | POOL_SIZE 28672 |
| #define | STACK_OBJ_SIZE K_THREAD_STACK_LEN(CONFIG_DYNAMIC_THREAD_STACK_SIZE) |
| #define | MAX_HEAP_STACKS (POOL_SIZE / STACK_OBJ_SIZE) |
Functions | |
| K_HEAP_DEFINE (stack_heap, 28672) | |
| static void | func (void *arg1, void *arg2, void *arg3) |
| ZTEST_USER (dynamic_thread_stack, test_dynamic_thread_stack_userspace_dyn_obj) | |
| Check we can create a thread from userspace, using dynamic objects. | |
| ZTEST (dynamic_thread_stack, test_dynamic_thread_stack_pool) | |
| Exercise the pool-based thread stack allocator. | |
| ZTEST (dynamic_thread_stack, test_dynamic_thread_stack_alloc) | |
| Exercise the heap-based thread stack allocator. | |
| K_SEM_DEFINE (perm_sem, 0, 1) | |
| static void | set_fault (unsigned int reason) |
| void | k_sys_fatal_error_handler (unsigned int reason, const struct arch_esf *pEsf) |
| Fatal error policy handler. | |
| static void | perm_func (void *arg1, void *arg2, void *arg3) |
| static void | perm_func_violator (void *arg1, void *arg2, void *arg3) |
| ZTEST (dynamic_thread_stack, test_dynamic_thread_stack_permission) | |
| Exercise stack permissions. | |
| static void * | dynamic_thread_stack_setup (void) |
| ZTEST_SUITE (dynamic_thread_stack, NULL, dynamic_thread_stack_setup, NULL, NULL, NULL) | |
Variables | |
| ZTEST_DMEM bool | tflag [MAX(CONFIG_DYNAMIC_THREAD_POOL_SIZE,(28672/K_THREAD_STACK_LEN(CONFIG_DYNAMIC_THREAD_STACK_SIZE)))] |
| static ZTEST_BMEM volatile bool | expect_fault |
| static ZTEST_BMEM volatile unsigned int | expected_reason |
| #define MAX_HEAP_STACKS (POOL_SIZE / STACK_OBJ_SIZE) |
| #define POOL_SIZE 28672 |
| #define STACK_OBJ_SIZE K_THREAD_STACK_LEN(CONFIG_DYNAMIC_THREAD_STACK_SIZE) |
| #define TIMEOUT_MS 500 |
|
static |
|
static |
| K_HEAP_DEFINE | ( | stack_heap | , |
| 28672 | |||
| ) |
| K_SEM_DEFINE | ( | perm_sem | , |
| 0 | , | ||
| 1 | |||
| ) |
|
static |
|
static |
|
static |
| ZTEST | ( | dynamic_thread_stack | , |
| test_dynamic_thread_stack_alloc | |||
| ) |
Exercise the heap-based thread stack allocator.
| ZTEST | ( | dynamic_thread_stack | , |
| test_dynamic_thread_stack_permission | |||
| ) |
Exercise stack permissions.
| ZTEST | ( | dynamic_thread_stack | , |
| test_dynamic_thread_stack_pool | |||
| ) |
Exercise the pool-based thread stack allocator.
| ZTEST_SUITE | ( | dynamic_thread_stack | , |
| NULL | , | ||
| dynamic_thread_stack_setup | , | ||
| NULL | , | ||
| NULL | , | ||
| NULL | |||
| ) |
| ZTEST_USER | ( | dynamic_thread_stack | , |
| test_dynamic_thread_stack_userspace_dyn_obj | |||
| ) |
Check we can create a thread from userspace, using dynamic objects.
|
static |
|
static |
| ZTEST_DMEM bool tflag[MAX(CONFIG_DYNAMIC_THREAD_POOL_SIZE,(28672/ K_THREAD_STACK_LEN(CONFIG_DYNAMIC_THREAD_STACK_SIZE)))] |