FD.io VPP  v20.05.1-5-g09f167997
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 void * clib_mem_init_internal (void *memory, uword memory_size, int set_heap)
 
void * clib_mem_init (void *memory, uword memory_size)
 
void * clib_mem_init_thread_safe (void *memory, uword memory_size)
 
void * clib_mem_init_thread_safe_numa (void *memory, uword memory_size, u8 numa)
 
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]
 
void * clib_per_numa_mheaps [CLIB_MAX_NUMAS]
 
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 228 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 *  memory,
uword  memory_size,
int  set_heap 
)
static

Definition at line 204 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 235 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_numa()

void* clib_mem_init_thread_safe_numa ( void *  memory,
uword  memory_size,
u8  numa 
)

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

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

◆ clib_mem_trace()

void clib_mem_trace ( int  enable)

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

uword clib_mem_trace_enable_disable ( uword  enable)

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

◆ clib_mem_validate()

void clib_mem_validate ( void  )

Definition at line 439 of file mem_dlmalloc.c.

+ 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 266 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 388 of file mem_dlmalloc.c.

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

◆ format_mheap_trace()

u8* format_mheap_trace ( u8 s,
va_list *  va 
)

Definition at line 319 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 290 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 491 of file mem_dlmalloc.c.

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

◆ mheap_get_trace()

void mheap_get_trace ( uword  offset,
uword  size 
)

Definition at line 67 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 149 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 445 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 193 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 306 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 421 of file mem_dlmalloc.c.

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

Variable Documentation

◆ clib_mem_validate_serial

uword clib_mem_validate_serial = 0

Definition at line 436 of file mem_dlmalloc.c.

◆ clib_per_cpu_mheaps

void* clib_per_cpu_mheaps[CLIB_MAX_MHEAPS]

Definition at line 25 of file mem_dlmalloc.c.

◆ clib_per_numa_mheaps

void* clib_per_numa_mheaps[CLIB_MAX_NUMAS]

Definition at line 26 of file mem_dlmalloc.c.

◆ mheap_trace_main

mheap_trace_main_t mheap_trace_main

Definition at line 64 of file mem_dlmalloc.c.