FD.io VPP  v20.01-48-g3e0dafb74
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 206 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 229 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 438 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 423 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 444 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 384 of file mem_dlmalloc.c.

◆ clib_mem_validate()

void clib_mem_validate ( void  )

Definition at line 408 of file mem_dlmalloc.c.

◆ format_clib_mem_usage()

u8* format_clib_mem_usage ( u8 s,
va_list *  va 
)

Definition at line 235 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 357 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 288 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 259 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 460 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 69 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 151 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 414 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 195 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 275 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 390 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 405 of file mem_dlmalloc.c.

◆ clib_per_cpu_mheaps

void* clib_per_cpu_mheaps[CLIB_MAX_MHEAPS]

Definition at line 24 of file mem_dlmalloc.c.

◆ mheap_trace_main

mheap_trace_main_t mheap_trace_main

Definition at line 66 of file mem_dlmalloc.c.