Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 21 of 21) sorted by relevance

/dpdk/lib/eal/common/
H A Dmalloc_heap.c112 struct malloc_heap *heap; in malloc_add_seg() local
136 heap->total_size += len; in malloc_add_seg()
249 heap->alloc_count++; in heap_alloc()
271 heap->alloc_count++; in heap_alloc_biggest()
874 heap = elem->heap; in malloc_heap_free()
1144 elem = heap->first; in malloc_heap_dump()
1156 struct malloc_heap *heap = elem->heap; in destroy_elem() local
1357 heap->first = NULL; in malloc_heap_create()
1358 heap->last = NULL; in malloc_heap_create()
1380 if (heap->first != NULL || heap->last != NULL) { in malloc_heap_destroy()
[all …]
H A Drte_malloc.c285 heap = tmp; in rte_malloc_heap_get_socket()
290 if (heap != NULL) { in rte_malloc_heap_get_socket()
291 ret = heap->socket_id; in rte_malloc_heap_get_socket()
400 return heap; in find_named_heap()
429 if (heap == NULL) { in rte_malloc_heap_memory_add()
443 heap_name, heap->socket_id); in rte_malloc_heap_memory_add()
477 if (heap == NULL) { in rte_malloc_heap_memory_remove()
527 if (heap == NULL) { in sync_memory()
619 heap = tmp; in rte_malloc_heap_create()
623 if (heap == NULL) { in rte_malloc_heap_create()
[all …]
H A Dmalloc_elem.c128 elem->heap = heap; in malloc_elem_init()
147 struct malloc_heap *heap = elem->heap; in malloc_elem_insert() local
150 if ((heap->first == NULL) != (heap->last == NULL)) { in malloc_elem_insert()
155 if (heap->first == NULL && heap->last == NULL) { in malloc_elem_insert()
157 heap->first = elem; in malloc_elem_insert()
158 heap->last = elem; in malloc_elem_insert()
164 next_elem = heap->first; in malloc_elem_insert()
165 heap->first = elem; in malloc_elem_insert()
168 prev_elem = heap->last; in malloc_elem_insert()
170 heap->last = elem; in malloc_elem_insert()
[all …]
H A Dmalloc_heap.h45 malloc_heap_create(struct malloc_heap *heap, const char *heap_name);
48 malloc_heap_destroy(struct malloc_heap *heap);
62 malloc_heap_add_external_memory(struct malloc_heap *heap,
66 malloc_heap_remove_external_memory(struct malloc_heap *heap, void *va_addr,
76 malloc_heap_get_stats(struct malloc_heap *heap,
80 malloc_heap_dump(struct malloc_heap *heap, FILE *f);
H A Dmalloc_mp.c45 struct malloc_heap *heap; member
220 struct malloc_heap *heap; in handle_alloc_request() local
239 heap = &mcfg->malloc_heaps[ar->malloc_heap_idx]; in handle_alloc_request()
247 if (heap->socket_id >= RTE_MAX_NUMA_NODES) { in handle_alloc_request()
264 elem = alloc_pages_on_heap(heap, ar->page_sz, ar->elt_size, ar->socket, in handle_alloc_request()
285 req->alloc_state.heap = heap; in handle_alloc_request()
465 struct malloc_heap *heap = entry->alloc_state.heap; in handle_sync_response() local
472 heap->total_size += entry->alloc_state.map_len; in handle_sync_response()
H A Deal_common_memory.c199 uint64_t page_sz, int n_segs, int socket_id, bool heap) in eal_memseg_list_init_named() argument
211 msl->heap = heap; in eal_memseg_list_init_named()
222 int n_segs, int socket_id, int type_msl_idx, bool heap) in eal_memseg_list_init() argument
230 msl, name, page_sz, n_segs, socket_id, heap); in eal_memseg_list_init()
1129 struct malloc_heap *heap; in handle_eal_heap_info_request() local
1138 heap = &mcfg->malloc_heaps[heap_id]; in handle_eal_heap_info_request()
1139 malloc_heap_get_stats(heap, &sock_stats); in handle_eal_heap_info_request()
1143 rte_tel_data_add_dict_string(d, "Name", heap->name); in handle_eal_heap_info_request()
1170 struct malloc_heap *heap = &mcfg->malloc_heaps[heap_id]; in handle_eal_heap_list_request() local
1172 malloc_heap_get_stats(heap, &sock_stats); in handle_eal_heap_list_request()
H A Deal_private.h268 uint64_t page_sz, int n_segs, int socket_id, bool heap);
281 int n_segs, int socket_id, int type_msl_idx, bool heap);
H A Dmalloc_mp.h79 alloc_pages_on_heap(struct malloc_heap *heap, uint64_t pg_sz, size_t elt_size,
H A Dmalloc_elem.h24 struct malloc_heap *heap; member
323 struct malloc_heap *heap,
/dpdk/doc/guides/prog_guide/
H A Dasan.rst39 Example heap-buffer-overflow error
52 Above code will result in heap-buffer-overflow error if ASan is enabled, because apply 9 bytes of m…
54 …==369953==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fb17f465809 at pc 0x5652e670…
60 SUMMARY: AddressSanitizer: heap-buffer-overflow ../examples/helloworld/main.c:47 in main
83 …==417048==ERROR: AddressSanitizer: heap-use-after-free on address 0x7fc83f465800 at pc 0x564308a39…
89 SUMMARY: AddressSanitizer: heap-use-after-free ../examples/helloworld/main.c:48 in main
H A Denv_abstraction_layer.rst339 + Using heap API's for externally allocated memory
351 to a DPDK malloc heap.
363 * Create a named heap
364 * Add memory area(s) to the heap
368 * Get socket ID used for the heap
372 * If heap is no longer needed, remove it
896 this malloc heap.
900 * last - this points to the last element in the heap.
938 * heap - this pointer is a reference back to the heap structure from which
941 newly-freed block to the heap's free-list.
[all …]
H A Dgeneric_receive_offload_lib.rst67 structures in the heap and stores their pointers in the GRO context.
H A Dwriting_efficient_code.rst38 managing a fragmented heap can be costly and the allocator may not be optimized for parallel alloca…
/dpdk/drivers/common/mlx5/
H A Dmlx5_common_mr.c1320 struct mlx5_range *heap; member
1332 struct mlx5_range *seg, *heap; in mlx5_mempool_get_extmem_cb() local
1352 if (data->heap != NULL) { in mlx5_mempool_get_extmem_cb()
1353 seg = &data->heap[pos]; in mlx5_mempool_get_extmem_cb()
1358 heap = realloc(data->heap, sizeof(heap[0]) * (data->heap_size + 1)); in mlx5_mempool_get_extmem_cb()
1359 if (heap == NULL) { in mlx5_mempool_get_extmem_cb()
1360 free(data->heap); in mlx5_mempool_get_extmem_cb()
1361 data->heap = NULL; in mlx5_mempool_get_extmem_cb()
1365 data->heap = heap; in mlx5_mempool_get_extmem_cb()
1374 qsort(data->heap, data->heap_size, sizeof(heap[0]), in mlx5_mempool_get_extmem_cb()
[all …]
/dpdk/lib/eal/include/
H A Drte_memory.h81 unsigned int heap; /**< 1 if this list points to a heap */ member
/dpdk/lib/eal/linux/
H A Deal_vfio.c1392 if (msl->external && !msl->heap) in type1_map()
1566 if (msl->external && !msl->heap) in vfio_spapr_map_walk()
1594 if (msl->external && !msl->heap) { in vfio_spapr_size_walk()
H A Deal_memory.c1452 msl->heap = 0;
/dpdk/drivers/net/virtio/virtio_user/
H A Dvhost_vdpa.c334 if (msl->external && !msl->heap) in vhost_vdpa_map()
/dpdk/doc/guides/rel_notes/
H A Drelease_19_02.rst23 the malloc heap.
H A Drelease_18_11.rst406 ID the malloc heap belongs to
H A Drelease_2_1.rst50 memzones. Now memzones allocate their memory from the malloc heap.