Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
#define | NUM_THREAD 4 |
#define | IDLE_THRESH 20 |
#define | SLEEP_TICKLESS k_ticks_to_ms_floor64(IDLE_THRESH) |
#define | SLEEP_TICKFUL k_ticks_to_ms_floor64(IDLE_THRESH - 1) |
#define | SLICE_SIZE k_ticks_to_ms_floor64(IDLE_THRESH >> 1) |
#define | SLICE_SIZE_LIMIT k_ticks_to_ms_floor64((IDLE_THRESH >> 1) + 1) |
#define | ALIGN_MS_BOUNDARY() |
Functions | |
static | K_THREAD_STACK_ARRAY_DEFINE (tstack, 4,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
K_SEM_DEFINE (sema, 0, 4) | |
static void | thread_tslice (void *p1, void *p2, void *p3) |
ZTEST (tickless_concept, test_tickless_sysclock) | |
Verify system clock with and without tickless idle. | |
ZTEST (tickless_concept, test_tickless_slice) | |
Verify tickless functionality with time slice. | |
ZTEST_SUITE (tickless_concept, NULL, NULL, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL) | |
Variables | |
static struct k_thread | tdata [4] |
static int64_t | elapsed_slice |
#define ALIGN_MS_BOUNDARY | ( | ) |
#define IDLE_THRESH 20 |
#define NUM_THREAD 4 |
#define SLEEP_TICKFUL k_ticks_to_ms_floor64(IDLE_THRESH - 1) |
#define SLEEP_TICKLESS k_ticks_to_ms_floor64(IDLE_THRESH) |
#define SLICE_SIZE k_ticks_to_ms_floor64(IDLE_THRESH >> 1) |
#define SLICE_SIZE_LIMIT k_ticks_to_ms_floor64((IDLE_THRESH >> 1) + 1) |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
K_SEM_DEFINE | ( | sema | , |
0 | , | ||
4 | |||
) |
|
static |
|
static |
TESTPOINT: verify slicing scheduler behaves as expected
ZTEST_SUITE | ( | tickless_concept | , |
NULL | , | ||
NULL | , | ||
ztest_simple_1cpu_before | , | ||
ztest_simple_1cpu_after | , | ||
NULL | |||
) |
|
static |
|
static |