Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Workqueue Tests. More...
Functions | |
void | test_offload_workqueue (void) |
Verify thread context. More... | |
static void | test_k_work_user_submit_to_queue_fail (void) |
Test k_work_user_submit_to_queue API. More... | |
static void | test_work_user_queue_start_before_submit (void) |
Test user mode work queue start before submit. More... | |
static void | test_user_workq_granted_access_setup (void) |
Setup object permissions before test_user_workq_granted_access() More... | |
static void | test_user_workq_granted_access (void) |
Test user mode grant workqueue permissions. More... | |
static void | test_user_work_submit_to_queue_thread (void) |
Test work submission to work queue (user mode) More... | |
static void | delayed_test_items_init (void) |
static void | delayed_test_items_submit (void) |
static void | test_sequence (void) |
Test work queue items submission sequence. More... | |
static void | test_resubmit (void) |
Test work queue item resubmission. More... | |
static void | test_delayed_init (void) |
Test delayed work queue init. More... | |
static void | test_delayed_submit (void) |
Test delayed workqueue submit. More... | |
static void | test_delayed_cancel (void) |
Test work queue delayed cancel. More... | |
static void | test_delayed (void) |
Test delayed work items. More... | |
static void | test_triggered_init (void) |
Test triggered work queue init. More... | |
static void | test_triggered_submit (k_timeout_t timeout) |
Test triggered workqueue submit. More... | |
static void | test_triggered_trigger (void) |
Trigger triggered workqueue execution. More... | |
static void | test_triggered (void) |
Test triggered work items. More... | |
static void | test_already_triggered (void) |
Test already triggered work items. More... | |
static void | test_triggered_resubmit (void) |
Test resubmission of triggered work queue item. More... | |
static void | test_triggered_no_wait (void) |
Test triggered work items with K_NO_WAIT timeout. More... | |
static void | test_triggered_no_wait_expired (void) |
Test expired triggered work items with K_NO_WAIT timeout. More... | |
static void | test_triggered_wait (void) |
Test triggered work items with arbitrary timeout. More... | |
static void | test_triggered_wait_expired (void) |
Test expired triggered work items with arbitrary timeout. More... | |
void | test_delayed_work_define (void) |
Test delayed work queue define macro. More... | |
Workqueue Tests.
#include <tests/kernel/workq/work_queue/src/main.c>
#include <tests/kernel/workq/work_queue/src/main.c>
#include <tests/kernel/workq/work_queue/src/main.c>
Test already triggered work items.
#include <tests/kernel/workq/work_queue/src/main.c>
Test delayed work items.
#include <tests/kernel/workq/work_queue/src/main.c>
Test work queue delayed cancel.
#include <tests/kernel/workq/work_queue/src/main.c>
Test delayed work queue init.
#include <tests/kernel/workq/work_queue/src/main.c>
Test delayed workqueue submit.
#include <tests/kernel/workq/work_queue/src/main.c>
Test delayed work queue define macro.
The macro should initialize the k_delayed_work exactly the same as k_delayed_work_init does.
#include <tests/kernel/workq/user_work/src/main.c>
Test k_work_user_submit_to_queue API.
Function k_work_user_submit_to_queue() will return -EBUSY: if the work item was already in some workqueue and -ENOMEM: if no memory for thread resource pool allocation. Create two situation to meet the error return value.
#include <tests/kernel/workq/critical/src/main.c>
Verify thread context.
Check whether variable value per-thread is saved during context switch
#include <tests/kernel/workq/work_queue/src/main.c>
Test work queue item resubmission.
#include <tests/kernel/workq/work_queue/src/main.c>
Test work queue items submission sequence.
#include <tests/kernel/workq/work_queue/src/main.c>
Test triggered work items.
#include <tests/kernel/workq/work_queue/src/main.c>
Test triggered work queue init.
#include <tests/kernel/workq/work_queue/src/main.c>
Test triggered work items with K_NO_WAIT timeout.
#include <tests/kernel/workq/work_queue/src/main.c>
Test expired triggered work items with K_NO_WAIT timeout.
#include <tests/kernel/workq/work_queue/src/main.c>
Test resubmission of triggered work queue item.
|
static |
#include <tests/kernel/workq/work_queue/src/main.c>
Test triggered workqueue submit.
#include <tests/kernel/workq/work_queue/src/main.c>
Trigger triggered workqueue execution.
#include <tests/kernel/workq/work_queue/src/main.c>
Test triggered work items with arbitrary timeout.
#include <tests/kernel/workq/work_queue/src/main.c>
Test expired triggered work items with arbitrary timeout.
#include <tests/kernel/workq/user_work/src/main.c>
Test work submission to work queue (user mode)
#include <tests/kernel/workq/user_work/src/main.c>
Test user mode grant workqueue permissions.
#include <tests/kernel/workq/user_work/src/main.c>
Setup object permissions before test_user_workq_granted_access()
#include <tests/kernel/workq/user_work/src/main.c>
Test user mode work queue start before submit.