FD.io VPP  v21.01.1
Vector Packet Processing
mem_dlmalloc.c File Reference
+ Include dependency graph for mem_dlmalloc.c:

Go to the source code of this file.

Data Structures

struct  mheap_trace_t
 
struct  mheap_trace_main_t
 

Functions

void mheap_get_trace (uword offset, uword size)
 
void mheap_put_trace (uword offset, uword size)
 
static void mheap_trace_main_free (mheap_trace_main_t *tm)
 
static clib_mem_heap_tclib_mem_create_heap_internal (void *base, uword size, clib_mem_page_sz_t log2_page_sz, int is_locked, char *name)
 
static void * clib_mem_init_internal (void *base, uword size, clib_mem_page_sz_t log2_page_sz)
 
__clib_export void * clib_mem_init (void *memory, uword memory_size)
 
__clib_export void * clib_mem_init_with_page_size (uword memory_size, clib_mem_page_sz_t log2_page_sz)
 
__clib_export void * clib_mem_init_thread_safe (void *memory, uword memory_size)
 
__clib_export void clib_mem_destroy (void)
 
u8format_clib_mem_usage (u8 *s, va_list *va)
 
u8format_msize (u8 *s, va_list *va)
 
static int mheap_trace_sort (const void *_t1, const void *_t2)
 
u8format_mheap_trace (u8 *s, va_list *va)
 
__clib_export u8format_clib_mem_heap (u8 *s, va_list *va)
 
__clib_export void clib_mem_get_heap_usage (clib_mem_heap_t *heap, clib_mem_usage_t *usage)
 
__clib_export void mheap_trace (clib_mem_heap_t *h, int enable)
 
__clib_export void clib_mem_trace (int enable)
 
int clib_mem_is_traced (void)
 
__clib_export uword clib_mem_trace_enable_disable (uword enable)
 
__clib_export clib_mem_heap_tclib_mem_create_heap (void *base, uword size, int is_locked, char *fmt,...)
 
__clib_export void clib_mem_destroy_heap (clib_mem_heap_t *h)
 
__clib_export uword clib_mem_get_heap_free_space (clib_mem_heap_t *h)
 
__clib_export void * clib_mem_get_heap_base (clib_mem_heap_t *h)
 
__clib_export uword clib_mem_get_heap_size (clib_mem_heap_t *heap)
 

Variables

mheap_trace_main_t mheap_trace_main
 
uword clib_mem_validate_serial = 0
 

Function Documentation

◆ clib_mem_create_heap()

__clib_export clib_mem_heap_t* clib_mem_create_heap ( void *  base,
uword  size,
int  is_locked,
char *  fmt,
  ... 
)

Definition at line 533 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_create_heap_internal()

static clib_mem_heap_t* clib_mem_create_heap_internal ( void *  base,
uword  size,
clib_mem_page_sz_t  log2_page_sz,
int  is_locked,
char *  name 
)
static

Definition at line 200 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_destroy()

__clib_export void clib_mem_destroy ( void  )

Definition at line 287 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_destroy_heap()

__clib_export void clib_mem_destroy_heap ( clib_mem_heap_t h)

Definition at line 563 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_get_heap_base()

__clib_export void* clib_mem_get_heap_base ( clib_mem_heap_t h)

Definition at line 583 of file mem_dlmalloc.c.

+ Here is the caller graph for this function:

◆ clib_mem_get_heap_free_space()

__clib_export uword clib_mem_get_heap_free_space ( clib_mem_heap_t h)

Definition at line 576 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_get_heap_size()

__clib_export uword clib_mem_get_heap_size ( clib_mem_heap_t heap)

Definition at line 589 of file mem_dlmalloc.c.

◆ clib_mem_get_heap_usage()

__clib_export void clib_mem_get_heap_usage ( clib_mem_heap_t heap,
clib_mem_usage_t usage 
)

Definition at line 473 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_init()

__clib_export void* clib_mem_init ( void *  memory,
uword  memory_size 
)

Definition at line 266 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_init_internal()

static void* clib_mem_init_internal ( void *  base,
uword  size,
clib_mem_page_sz_t  log2_page_sz 
)
static

Definition at line 247 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_init_thread_safe()

__clib_export void* clib_mem_init_thread_safe ( void *  memory,
uword  memory_size 
)

Definition at line 280 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_init_with_page_size()

__clib_export void* clib_mem_init_with_page_size ( uword  memory_size,
clib_mem_page_sz_t  log2_page_sz 
)

Definition at line 273 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_is_traced()

int clib_mem_is_traced ( void  )

Definition at line 515 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_trace()

__clib_export void clib_mem_trace ( int  enable)

Definition at line 500 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clib_mem_trace_enable_disable()

__clib_export uword clib_mem_trace_enable_disable ( uword  enable)

Definition at line 522 of file mem_dlmalloc.c.

+ Here is the caller graph for this function:

◆ format_clib_mem_heap()

__clib_export u8* format_clib_mem_heap ( u8 s,
va_list *  va 
)

Definition at line 422 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_clib_mem_usage()

u8* format_clib_mem_usage ( u8 s,
va_list *  va 
)

Definition at line 301 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

◆ format_mheap_trace()

u8* format_mheap_trace ( u8 s,
va_list *  va 
)

Definition at line 354 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_msize()

u8* format_msize ( u8 s,
va_list *  va 
)

Definition at line 325 of file mem_dlmalloc.c.

+ Here is the caller graph for this function:

◆ mheap_get_trace()

void mheap_get_trace ( uword  offset,
uword  size 
)

Definition at line 63 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

◆ mheap_put_trace()

void mheap_put_trace ( uword  offset,
uword  size 
)

Definition at line 147 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

◆ mheap_trace()

__clib_export void mheap_trace ( clib_mem_heap_t h,
int  enable 
)

Definition at line 491 of file mem_dlmalloc.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mheap_trace_main_free()

static void mheap_trace_main_free ( mheap_trace_main_t tm)
inlinestatic

Definition at line 191 of file mem_dlmalloc.c.

+ Here is the caller graph for this function:

◆ mheap_trace_sort()

static int mheap_trace_sort ( const void *  _t1,
const void *  _t2 
)
static

Definition at line 341 of file mem_dlmalloc.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ clib_mem_validate_serial

uword clib_mem_validate_serial = 0

Definition at line 488 of file mem_dlmalloc.c.

◆ mheap_trace_main

mheap_trace_main_t mheap_trace_main

Definition at line 60 of file mem_dlmalloc.c.