Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
main.c File Reference
#include <ztest.h>
#include <sys/mem_manage.h>
#include <timing/timing.h>
#include <mmu.h>
#include <linker/sections.h>

Macros

#define HALF_PAGES   (EXTRA_PAGES / 2)
 
#define HALF_BYTES   (HALF_PAGES * CONFIG_MMU_PAGE_SIZE)
 

Functions

__pinned_func void k_sys_fatal_error_handler (unsigned int reason, const z_arch_esf_t *pEsf)
 Fatal error policy handler. More...
 
void test_map_anon_pages (void)
 
void print_paging_stats (struct k_mem_paging_stats_t *stats, const char *scope)
 
void test_touch_anon_pages (void)
 
void test_k_mem_page_out (void)
 
void test_k_mem_page_in (void)
 
void test_k_mem_pin (void)
 
void test_k_mem_unpin (void)
 
void test_backing_store_capacity (void)
 
void test_user_get_stats (void)
 
bool print_histogram (struct k_mem_paging_histogram_t *hist)
 
void test_user_get_hist (void)
 
void test_main (void)
 

Variables

size_t arena_size
 
char * arena
 
static __pinned_bss bool expect_fault
 
static const char * nums = "0123456789"
 

Macro Definition Documentation

◆ HALF_BYTES

#define HALF_BYTES   (HALF_PAGES * CONFIG_MMU_PAGE_SIZE)

◆ HALF_PAGES

#define HALF_PAGES   (EXTRA_PAGES / 2)

Function Documentation

◆ print_histogram()

bool print_histogram ( struct k_mem_paging_histogram_t hist)

◆ print_paging_stats()

void print_paging_stats ( struct k_mem_paging_stats_t stats,
const char *  scope 
)

◆ test_backing_store_capacity()

void test_backing_store_capacity ( void  )

◆ test_k_mem_page_in()

void test_k_mem_page_in ( void  )

◆ test_k_mem_page_out()

void test_k_mem_page_out ( void  )

◆ test_k_mem_pin()

void test_k_mem_pin ( void  )

◆ test_k_mem_unpin()

void test_k_mem_unpin ( void  )

◆ test_main()

void test_main ( void  )

test case main entry

◆ test_map_anon_pages()

void test_map_anon_pages ( void  )

◆ test_touch_anon_pages()

void test_touch_anon_pages ( void  )

◆ test_user_get_hist()

void test_user_get_hist ( void  )

◆ test_user_get_stats()

void test_user_get_stats ( void  )

Variable Documentation

◆ arena

char* arena

◆ arena_size

size_t arena_size

◆ expect_fault

__pinned_bss bool expect_fault
static

◆ nums

const char* nums = "0123456789"
static