Ylva And Malin
Macros | Typedefs | Functions | Variables
allocator_tests.c File Reference
#include <ym_test.h>
#include <ym_core.h>
#include <ym_allocator.h>
#include <stdbool.h>
Include dependency graph for allocator_tests.c:

Macros

#define YM_MEMORY_TRACKING
 

Typedefs

typedef const char *(* test_func) ()
 

Functions

void ym_print_allocator_logs ()
 
ym_allocator get_region_allocator ()
 
bool region_sanity_check (void **valid_stack, const int stack_count, uintptr_t *start)
 
uintptr_t * get_heads (ym_allocator *allocator)
 
const char * test_region_same_order_allocate_deallocate ()
 
const char * test_region_random_order_allocate_deallocate ()
 
const char * test_region_random_memory_reuse ()
 
const char * test_region_errc_on_null ()
 
const char * test_errc_on_out_of_memory ()
 
const char * test_errc_on_invalid_dealloc_request ()
 
const char * test_errc_on_invalid_alloc_size_request ()
 
const char * test_errc_on_invalid_dealloc_size_request ()
 
int main (YM_UNUSED int argc, YM_UNUSED char **argv)
 

Variables

u8 g_total_memory [4096]
 

Macro Definition Documentation

#define YM_MEMORY_TRACKING

Typedef Documentation

typedef const char*(* test_func) ()

Function Documentation

uintptr_t* get_heads ( ym_allocator allocator)

Here is the caller graph for this function:

ym_allocator get_region_allocator ( )

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( YM_UNUSED int  argc,
YM_UNUSED char **  argv 
)

Here is the call graph for this function:

bool region_sanity_check ( void **  valid_stack,
const int  stack_count,
uintptr_t *  start 
)

Here is the caller graph for this function:

const char* test_errc_on_invalid_alloc_size_request ( )

Here is the call graph for this function:

Here is the caller graph for this function:

const char* test_errc_on_invalid_dealloc_request ( )

Here is the call graph for this function:

Here is the caller graph for this function:

const char* test_errc_on_invalid_dealloc_size_request ( )

Here is the call graph for this function:

Here is the caller graph for this function:

const char* test_errc_on_out_of_memory ( )

Here is the call graph for this function:

Here is the caller graph for this function:

const char* test_region_errc_on_null ( )

Here is the call graph for this function:

Here is the caller graph for this function:

const char* test_region_random_memory_reuse ( )

Here is the call graph for this function:

Here is the caller graph for this function:

const char* test_region_random_order_allocate_deallocate ( )

Here is the call graph for this function:

Here is the caller graph for this function:

const char* test_region_same_order_allocate_deallocate ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void ym_print_allocator_logs ( )

Here is the caller graph for this function:

Variable Documentation

u8 g_total_memory[4096]