Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
main.c File Reference
#include <zephyr/ztest.h>
#include <zephyr/irq_offload.h>
#include <zephyr/debug/stack.h>

Macros

#define STACKSIZE   (256 + CONFIG_TEST_EXTRA_STACK_SIZE)
 

Functions

static K_THREAD_STACK_DEFINE (dyn_thread_stack,(256+CONFIG_TEST_EXTRA_STACK_SIZE))
 
static K_SEM_DEFINE (start_sem, 0, 1)
 
static K_SEM_DEFINE (end_sem, 0, 1)
 
void k_sys_fatal_error_handler (unsigned int reason, const struct arch_esf *esf)
 Fatal error policy handler.
 
static void dyn_thread_entry (void *p1, void *p2, void *p3)
 
static void prep (void)
 
static void create_dynamic_thread (void)
 
static void permission_test (void)
 
 ZTEST (thread_dynamic, test_dyn_thread_perms)
 Test object permission on dynamic user thread when index is reused.
 
 ZTEST (thread_dynamic, test_thread_index_management)
 
 ZTEST (thread_dynamic, test_kernel_create_dyn_user_thread)
 Test creation of dynamic user thread under kernel thread.
 
 ZTEST_USER (thread_dynamic, test_user_create_dyn_user_thread)
 Test creation of dynamic user thread under user thread.
 
void * thread_test_setup (void)
 
 ZTEST_SUITE (thread_dynamic, NULL, thread_test_setup, NULL, NULL, NULL)
 

Variables

static ZTEST_BMEM struct k_threaddyn_thread
 
static struct k_threaddynamic_threads [CONFIG_MAX_THREAD_BYTES *8]
 

Macro Definition Documentation

◆ STACKSIZE

#define STACKSIZE   (256 + CONFIG_TEST_EXTRA_STACK_SIZE)

Function Documentation

◆ create_dynamic_thread()

static void create_dynamic_thread ( void  )
static

◆ dyn_thread_entry()

static void dyn_thread_entry ( void *  p1,
void *  p2,
void *  p3 
)
static

◆ K_SEM_DEFINE() [1/2]

static K_SEM_DEFINE ( end_sem  ,
,
 
)
static

◆ K_SEM_DEFINE() [2/2]

static K_SEM_DEFINE ( start_sem  ,
,
 
)
static

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( dyn_thread_stack  ,
(256+CONFIG_TEST_EXTRA_STACK_SIZE)   
)
static

◆ permission_test()

static void permission_test ( void  )
static

◆ prep()

static void prep ( void  )
static

◆ thread_test_setup()

void * thread_test_setup ( void  )

◆ ZTEST()

ZTEST ( thread_dynamic  ,
test_thread_index_management   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( thread_dynamic  ,
NULL  ,
thread_test_setup  ,
NULL  ,
NULL  ,
NULL   
)

Variable Documentation

◆ dyn_thread

ZTEST_BMEM struct k_thread* dyn_thread
static

◆ dynamic_threads

struct k_thread* dynamic_threads[CONFIG_MAX_THREAD_BYTES *8]
static