|
Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
#include <zephyr/ztest.h>#include <zephyr/kernel/mm.h>#include <zephyr/kernel/mm/demand_paging.h>#include <zephyr/timing/timing.h>#include <mmu.h>#include <zephyr/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 struct arch_esf *pEsf) |
| Fatal error policy handler. | |
| void | test_map_anon_pages (void) |
| static void | print_paging_stats (struct k_mem_paging_stats_t *stats, const char *scope) |
| static void | touch_anon_pages (bool zig, bool zag) |
| void | test_touch_anon_pages (void) |
| void | test_touch_anon_pages_zigzag1 (void) |
| void | test_touch_anon_pages_zigzag2 (void) |
| void | test_unmap_anon_pages (void) |
| static 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) |
| static bool | print_histogram (struct k_mem_paging_histogram_t *hist) |
| void | test_user_get_hist (void) |
| void * | demand_paging_api_setup (void) |
| ZTEST_SUITE (demand_paging, NULL, NULL, NULL, NULL, NULL) | |
| ZTEST_SUITE (demand_paging_api, NULL, demand_paging_api_setup, NULL, NULL, NULL) | |
| ZTEST_SUITE (demand_paging_stat, NULL, NULL, NULL, NULL, NULL) | |
Variables | |
| size_t | arena_size |
| char * | arena |
| static __pinned_bss bool | expect_fault |
| static const char * | nums = "0123456789" |
| #define HALF_BYTES (HALF_PAGES * CONFIG_MMU_PAGE_SIZE) |
| #define HALF_PAGES (EXTRA_PAGES / 2) |
| void * demand_paging_api_setup | ( | void | ) |
|
static |
|
static |
| void test_backing_store_capacity | ( | void | ) |
| void test_k_mem_page_in | ( | void | ) |
|
static |
| void test_k_mem_pin | ( | void | ) |
| void test_k_mem_unpin | ( | void | ) |
| void test_map_anon_pages | ( | void | ) |
| void test_touch_anon_pages | ( | void | ) |
| void test_touch_anon_pages_zigzag1 | ( | void | ) |
| void test_touch_anon_pages_zigzag2 | ( | void | ) |
| void test_unmap_anon_pages | ( | void | ) |
| void test_user_get_hist | ( | void | ) |
| void test_user_get_stats | ( | void | ) |
| ZTEST_SUITE | ( | demand_paging_api | , |
| NULL | , | ||
| demand_paging_api_setup | , | ||
| NULL | , | ||
| NULL | , | ||
| NULL | ) |
| char* arena |
| size_t arena_size |
|
static |
|
static |