MOS Source Code
Loading...
Searching...
No Matches
malloc_wrappers.h File Reference
#include <stdlib.h>
Include dependency graph for malloc_wrappers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

voidmalloc_with_check (size_t size)
void free_with_check (void *mem)
voidrealloc_with_check (void *ptr, size_t size)
size_t get_alloc_count ()
size_t get_allocation_size (const void *mem)
size_t get_alloc_bytes ()
void set_max_alloc_bytes (size_t max_bytes)
size_t get_max_alloc_bytes ()

Function Documentation

◆ malloc_with_check()

void * malloc_with_check ( size_t size)

◆ free_with_check()

◆ realloc_with_check()

void * realloc_with_check ( void * ptr,
size_t size )

Definition at line 101 of file malloc_wrappers.c.

Here is the call graph for this function:

◆ get_alloc_count()

◆ get_allocation_size()

size_t get_allocation_size ( const void * mem)

Definition at line 168 of file malloc_wrappers.c.

Referenced by validate_pointer().

◆ get_alloc_bytes()

size_t get_alloc_bytes ( )

Definition at line 175 of file malloc_wrappers.c.

Referenced by do_roundtrips().

◆ set_max_alloc_bytes()

void set_max_alloc_bytes ( size_t max_bytes)

Definition at line 181 of file malloc_wrappers.c.

Referenced by do_roundtrips(), and main().

◆ get_max_alloc_bytes()

size_t get_max_alloc_bytes ( )

Definition at line 186 of file malloc_wrappers.c.

Referenced by do_roundtrips().