|
| K_THREAD_STACK_DEFINE (t2_stack,(2048+CONFIG_TEST_EXTRA_STACKSIZE)) |
|
| K_SEM_DEFINE (cpuid_sema, 0, 1) |
|
| K_SEM_DEFINE (sema, 0, 1) |
|
static | K_THREAD_STACK_ARRAY_DEFINE (tstack, CONFIG_MP_NUM_CPUS,(384+CONFIG_TEST_EXTRA_STACKSIZE)) |
|
static int | curr_cpu (void) |
|
static void | t2_fn (void *a, void *b, void *c) |
|
void | test_smp_coop_threads (void) |
| Verify SMP with 2 cooperative threads. More...
|
|
static void | child_fn (void *p1, void *p2, void *p3) |
|
void | test_cpu_id_threads (void) |
| Verify CPU IDs of threads in SMP. More...
|
|
static void | thread_entry (void *p1, void *p2, void *p3) |
|
static void | spin_for_threads_exit (void) |
|
static void | spawn_threads (int prio, int thread_num, int equal_prio, k_thread_entry_t thread_entry, int delay) |
|
static void | abort_threads (int num) |
|
static void | cleanup_resources (void) |
|
void | test_coop_resched_threads (void) |
| Test cooperative threads non-preemption. More...
|
|
void | test_preempt_resched_threads (void) |
| Test preemptness of preemptive thread. More...
|
|
void | test_yield_threads (void) |
| Validate behavior of thread when it yields. More...
|
|
void | test_sleep_threads (void) |
| Test behavior of thread when it sleeps. More...
|
|
static void | thread_wakeup_entry (void *p1, void *p2, void *p3) |
|
static void | wakeup_on_start_thread (int tnum) |
|
static void | check_wokeup_threads (int tnum) |
|
void | test_wakeup_threads (void) |
| Test behavior of wakeup() in SMP case. More...
|
|
static void | thread_get_cpu_entry (void *p1, void *p2, void *p3) |
|
void | test_get_cpu (void) |
| Test get a pointer of CPU. More...
|
|
void | test_smp_ipi (void) |
| Test interprocessor interrupt. More...
|
|
void | k_sys_fatal_error_handler (unsigned int reason, const z_arch_esf_t *pEsf) |
| Fatal error policy handler. More...
|
|
void | entry_oops (void *p1, void *p2, void *p3) |
|
void | test_fatal_on_smp (void) |
| Test fatal error can be triggered on different core. More...
|
|
static void | workq_handler (struct k_work *work) |
|
void | test_workq_on_smp (void) |
| Test system workq run on different core. More...
|
|
static void | t1_mutex_lock (void *p1, void *p2, void *p3) |
|
static void | t2_mutex_lock (void *p1, void *p2, void *p3) |
|
void | test_smp_release_global_lock (void) |
| Test scenairo that a thread release the global lock. More...
|
|
static void | sync_lock_dummy (void *k) |
|
static void | sync_lock_irq (void *k) |
|
static void | sync_unlock_irq (void *k) |
|
static void | sync_lock_sem (void *k) |
|
static void | sync_unlock_sem (void *k) |
|
static void | sync_lock_mutex (void *k) |
|
static void | sync_unlock_mutex (void *k) |
|
static void | sync_init (int lock_type) |
|
static void | inc_global_cnt (void *a, void *b, void *c) |
|
static int | run_concurrency (int type, void *func) |
|
void | test_inc_concurrency (void) |
| Test if the concurrency of SMP works or not. More...
|
|
void | test_main (void) |
|