64 if (memory || memory_size)
75 #define MAX_VM_MEG 1024 86 alloc_size = (alloc_size * 3) / 4;
120 int verbose = va_arg (*va,
int);
137 clib_warning (
"clib_mem_validate disabled (small object cache is ON)");
int clib_mem_is_traced(void)
void clib_mem_usage(clib_mem_usage_t *u)
vhost_user_memory_t memory
u8 * format_clib_mem_usage(u8 *s, va_list *va)
void * mheap_alloc(void *memory, uword size)
static mheap_t * mheap_header(u8 *v)
#define MHEAP_FLAG_THREAD_SAFE
void * clib_mem_init(void *memory, uword memory_size)
void * clib_per_cpu_mheaps[CLIB_MAX_MHEAPS]
void mheap_trace(void *v, int enable)
void * clib_mem_init_thread_safe(void *memory, uword memory_size)
u8 * format_mheap(u8 *s, va_list *va)
static void * clib_mem_get_per_cpu_heap(void)
uword clib_mem_validate_serial
static void * clib_mem_set_heap(void *heap)
#define clib_warning(format, args...)
static void * clib_mem_get_heap(void)
void clib_mem_trace(int enable)
static void * clib_mem_set_per_cpu_heap(u8 *new_heap)
#define MHEAP_HAVE_SMALL_OBJECT_CACHE
void mheap_usage(void *heap, clib_mem_usage_t *usage)
void clib_mem_validate(void)
void mheap_validate(void *v)