Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_sched.h File Reference
#include <zephyr/kernel.h>
#include <zephyr/ztest.h>

Go to the source code of this file.

Data Structures

struct  thread_data
 

Macros

#define MAX_NUM_THREAD   10
 
#define STACK_SIZE   (640 + CONFIG_TEST_EXTRA_STACK_SIZE)
 

Functions

 K_THREAD_STACK_DECLARE (tstack,(640+CONFIG_TEST_EXTRA_STACK_SIZE))
 
 K_THREAD_STACK_ARRAY_DECLARE (tstacks, 10,(640+CONFIG_TEST_EXTRA_STACK_SIZE))
 
void spin_for_ms (int ticks)
 
void test_priority_cooperative (void)
 
void test_priority_preemptible (void)
 
void test_priority_preemptible_wait_prio (void)
 
void test_bad_priorities (void)
 
void test_yield_cooperative (void)
 
void test_sleep_cooperative (void)
 
void test_busy_wait_cooperative (void)
 
void test_sleep_wakeup_preemptible (void)
 
void test_pending_thread_wakeup (void)
 
void test_time_slicing_preemptible (void)
 
void test_time_slicing_disable_preemptible (void)
 
void test_lock_preemptible (void)
 
void test_unlock_preemptible (void)
 
void test_unlock_nested_sched_lock (void)
 
void test_sched_is_preempt_thread (void)
 
void test_slice_reset (void)
 
void test_slice_scheduling (void)
 
void test_priority_scheduling (void)
 
void test_wakeup_expired_timer_thread (void)
 
void test_user_k_wakeup (void)
 
void test_user_k_is_preempt (void)
 
void test_k_thread_suspend_init_null (void)
 
void test_k_thread_resume_init_null (void)
 
void test_k_thread_priority_get_init_null (void)
 
void test_k_thread_priority_set_init_null (void)
 
void test_k_thread_priority_set_overmax (void)
 
void test_k_thread_priority_set_upgrade (void)
 
void test_k_wakeup_init_null (void)
 
void test_slice_perthread (void)
 

Variables

struct k_thread user_thread
 
struct k_sem user_sem
 

Macro Definition Documentation

◆ MAX_NUM_THREAD

#define MAX_NUM_THREAD   10

◆ STACK_SIZE

#define STACK_SIZE   (640 + CONFIG_TEST_EXTRA_STACK_SIZE)

Function Documentation

◆ K_THREAD_STACK_ARRAY_DECLARE()

K_THREAD_STACK_ARRAY_DECLARE ( tstacks  ,
10  ,
(640+CONFIG_TEST_EXTRA_STACK_SIZE)   
)

◆ K_THREAD_STACK_DECLARE()

K_THREAD_STACK_DECLARE ( tstack  ,
(640+CONFIG_TEST_EXTRA_STACK_SIZE)   
)

◆ spin_for_ms()

void spin_for_ms ( int  ticks)

◆ test_bad_priorities()

void test_bad_priorities ( void  )

◆ test_busy_wait_cooperative()

void test_busy_wait_cooperative ( void  )

◆ test_k_thread_priority_get_init_null()

void test_k_thread_priority_get_init_null ( void  )

◆ test_k_thread_priority_set_init_null()

void test_k_thread_priority_set_init_null ( void  )

◆ test_k_thread_priority_set_overmax()

void test_k_thread_priority_set_overmax ( void  )

◆ test_k_thread_priority_set_upgrade()

void test_k_thread_priority_set_upgrade ( void  )

◆ test_k_thread_resume_init_null()

void test_k_thread_resume_init_null ( void  )

◆ test_k_thread_suspend_init_null()

void test_k_thread_suspend_init_null ( void  )

◆ test_k_wakeup_init_null()

void test_k_wakeup_init_null ( void  )

◆ test_lock_preemptible()

void test_lock_preemptible ( void  )

◆ test_pending_thread_wakeup()

void test_pending_thread_wakeup ( void  )

◆ test_priority_cooperative()

void test_priority_cooperative ( void  )

◆ test_priority_preemptible()

void test_priority_preemptible ( void  )

◆ test_priority_preemptible_wait_prio()

void test_priority_preemptible_wait_prio ( void  )

◆ test_priority_scheduling()

void test_priority_scheduling ( void  )

◆ test_sched_is_preempt_thread()

void test_sched_is_preempt_thread ( void  )

◆ test_sleep_cooperative()

void test_sleep_cooperative ( void  )

◆ test_sleep_wakeup_preemptible()

void test_sleep_wakeup_preemptible ( void  )

◆ test_slice_perthread()

void test_slice_perthread ( void  )

◆ test_slice_reset()

void test_slice_reset ( void  )

◆ test_slice_scheduling()

void test_slice_scheduling ( void  )

◆ test_time_slicing_disable_preemptible()

void test_time_slicing_disable_preemptible ( void  )

◆ test_time_slicing_preemptible()

void test_time_slicing_preemptible ( void  )

◆ test_unlock_nested_sched_lock()

void test_unlock_nested_sched_lock ( void  )

◆ test_unlock_preemptible()

void test_unlock_preemptible ( void  )

◆ test_user_k_is_preempt()

void test_user_k_is_preempt ( void  )

◆ test_user_k_wakeup()

void test_user_k_wakeup ( void  )

◆ test_wakeup_expired_timer_thread()

void test_wakeup_expired_timer_thread ( void  )

◆ test_yield_cooperative()

void test_yield_cooperative ( void  )

Variable Documentation

◆ user_sem

struct k_sem user_sem
extern

◆ user_thread

struct k_thread user_thread
extern