SpiNNFrontEndCommon 7.3.1
Common support code for user-facing front end systems.
|
Support for adding debugging information to dynamic allocation. More...
Go to the source code of this file.
Macros | |
#define | MALLOC malloc_extras_malloc |
An easily-insertable name for the memory allocator. | |
#define | FREE malloc_extras_free |
An easily-insertable name for the memory free. | |
#define | FREE_MARKED malloc_extras_free_marked |
An easily-insertable name for the alternate memory free. | |
#define | MALLOC_SDRAM malloc_extras_sdram_malloc_wrapper |
An easily-insertable name for the memory allocator that uses the large pool. | |
Enumerations | |
enum | exit_states_for_user_one { EXITED_CLEANLY = 0 , EXIT_FAIL = 1 , EXIT_MALLOC = 2 , EXIT_SWERR = 3 , DETECTED_MALLOC_FAILURE = 4 } |
The different states to report through vcpu->user1 More... | |
Functions | |
void | malloc_extras_turn_on_print (void) |
Turn on printing. | |
void | malloc_extras_turn_off_print (void) |
Turn off printing. | |
void | malloc_extras_terminate (uint result_code) |
Stops execution with a result code. | |
void | malloc_extras_free (void *ptr) |
Frees a pointer without any marker for application code. | |
void * | malloc_extras_sdram_malloc (uint bytes) |
Mallocs a number of bytes from SDRAM. | |
void * | malloc_extras_malloc (uint bytes) |
Allows a search of the 2 heaps available. (DTCM, stolen SDRAM) | |
uint | malloc_extras_max_available_block_size (void) |
Locates the biggest block of available memory from the heaps. | |
Support for adding debugging information to dynamic allocation.
Definition in file malloc_extras.h.
#define MALLOC malloc_extras_malloc |
An easily-insertable name for the memory allocator.
Definition at line 77 of file malloc_extras.h.
#define FREE malloc_extras_free |
An easily-insertable name for the memory free.
Definition at line 79 of file malloc_extras.h.
#define FREE_MARKED malloc_extras_free_marked |
An easily-insertable name for the alternate memory free.
Definition at line 81 of file malloc_extras.h.
#define MALLOC_SDRAM malloc_extras_sdram_malloc_wrapper |
An easily-insertable name for the memory allocator that uses the large pool.
Definition at line 83 of file malloc_extras.h.
The different states to report through vcpu->user1
Definition at line 27 of file malloc_extras.h.
Turn on printing.
Definition at line 46 of file malloc_extras.c.
Turn off printing.
Definition at line 50 of file malloc_extras.c.
Stops execution with a result code.
[in] | result_code | code to put in user 1 |
Definition at line 57 of file malloc_extras.c.
Frees a pointer without any marker for application code.
[in] | ptr | the pointer to free. |
Definition at line 68 of file malloc_extras.c.
Mallocs a number of bytes from SDRAM.
If safety turned on, it allocates more SDRAM to support buffers and size recordings.
[in] | bytes | the number of bytes to allocate from SDRAM. |
Definition at line 84 of file malloc_extras.c.
Allows a search of the 2 heaps available. (DTCM, stolen SDRAM)
#define
below at the end of the file [in] | bytes | the number of bytes to allocate. |
Definition at line 99 of file malloc_extras.c.