FD.io VPP  v19.08.2-294-g37e99c22d
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)
 
void * clib_mem_init (void *memory, uword memory_size)
 
void * clib_mem_init_thread_safe (void *memory, uword memory_size)
 
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)
 
u8format_mheap (u8 *s, va_list *va)
 
void clib_mem_usage (clib_mem_usage_t *u)
 
void mheap_usage (void *heap, clib_mem_usage_t *usage)
 
void clib_mem_validate (void)
 
void mheap_trace (void *v, int enable)
 
void clib_mem_trace (int enable)
 
int clib_mem_is_traced (void)
 
uword clib_mem_trace_enable_disable (uword enable)
 
void * mheap_alloc_with_lock (void *memory, uword size, int locked)
 

Variables

void * clib_per_cpu_mheaps [CLIB_MAX_MHEAPS]
 
mheap_trace_main_t mheap_trace_main
 
uword clib_mem_validate_serial = 0
 

Function Documentation

◆ clib_mem_init()

void* clib_mem_init ( void *  memory,
uword  memory_size 
)

Definition at line 205 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()

void* clib_mem_init_thread_safe ( void *  memory,
uword  memory_size 
)

Definition at line 226 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

◆ clib_mem_is_traced()

int clib_mem_is_traced ( void  )

Definition at line 435 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

◆ clib_mem_trace()

void clib_mem_trace ( int  enable)

Definition at line 420 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

◆ clib_mem_trace_enable_disable()

uword clib_mem_trace_enable_disable ( uword  enable)

Definition at line 441 of file mem_dlmalloc.c.

+ Here is the caller graph for this function:

◆ clib_mem_usage()

void clib_mem_usage ( clib_mem_usage_t u)

Definition at line 381 of file mem_dlmalloc.c.

◆ clib_mem_validate()

void clib_mem_validate ( void  )

Definition at line 405 of file mem_dlmalloc.c.

◆ format_clib_mem_usage()

u8* format_clib_mem_usage ( u8 s,
va_list *  va 
)

Definition at line 232 of file mem_dlmalloc.c.

+ Here is the call graph for this function:

◆ format_mheap()

u8* format_mheap ( u8 s,
va_list *  va 
)

Definition at line 354 of file mem_dlmalloc.c.

+ Here is the caller graph for this function:

◆ format_mheap_trace()

u8* format_mheap_trace ( u8 s,
va_list *  va 
)

Definition at line 285 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 256 of file mem_dlmalloc.c.

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

◆ mheap_alloc_with_lock()

void* mheap_alloc_with_lock ( void *  memory,
uword  size,
int  locked 
)

Definition at line 457 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 68 of file mem_dlmalloc.c.

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

◆ mheap_put_trace()

void mheap_put_trace ( uword  offset,
uword  size 
)

Definition at line 150 of file mem_dlmalloc.c.

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

◆ mheap_trace()

void mheap_trace ( void *  v,
int  enable 
)

Definition at line 411 of file mem_dlmalloc.c.

+ 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 194 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 272 of file mem_dlmalloc.c.

+ Here is the caller graph for this function:

◆ mheap_usage()

void mheap_usage ( void *  heap,
clib_mem_usage_t usage 
)

Definition at line 387 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 402 of file mem_dlmalloc.c.

◆ clib_per_cpu_mheaps

void* clib_per_cpu_mheaps[CLIB_MAX_MHEAPS]

Definition at line 23 of file mem_dlmalloc.c.

◆ mheap_trace_main

mheap_trace_main_t mheap_trace_main

Definition at line 65 of file mem_dlmalloc.c.