Lines Matching refs:socket
32 is_mem_on_socket(int32_t socket);
269 int socket = 0; in test_multi_alloc_statistics() local
278 rte_malloc_get_socket_stats(socket, &pre_stats); in test_multi_alloc_statistics()
280 void *dummy = rte_malloc_socket(NULL, RTE_CACHE_LINE_SIZE, 0, socket); in test_multi_alloc_statistics()
284 rte_malloc_get_socket_stats(socket, &post_stats); in test_multi_alloc_statistics()
293 rte_malloc_get_socket_stats(socket, &pre_stats); in test_multi_alloc_statistics()
295 void *p1 = rte_malloc_socket("stats", size , align, socket); in test_multi_alloc_statistics()
301 rte_malloc_get_socket_stats(socket,&post_stats); in test_multi_alloc_statistics()
315 rte_malloc_get_socket_stats(socket,&pre_stats); in test_multi_alloc_statistics()
316 void *p2 = rte_malloc_socket("add", size ,align, socket); in test_multi_alloc_statistics()
319 rte_malloc_get_socket_stats(socket,&first_stats); in test_multi_alloc_statistics()
321 void *p3 = rte_malloc_socket("add2", size,align, socket); in test_multi_alloc_statistics()
325 rte_malloc_get_socket_stats(socket,&second_stats); in test_multi_alloc_statistics()
331 rte_malloc_get_socket_stats(socket, &post_stats); in test_multi_alloc_statistics()
377 test_realloc_socket(int socket) in test_realloc_socket() argument
387 NULL, size1, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
394 ptr1, size2, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
419 NULL, size3, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
435 ptr3, size4, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
448 RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
460 NULL, size5, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
466 ptr5, size6, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
483 char *ptr7 = rte_malloc_socket(NULL, size7, orig_align, socket); in test_realloc_socket()
491 char *ptr8 = rte_realloc_socket(ptr7, size7, new_align, socket); in test_realloc_socket()
510 NULL, size9, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
516 NULL, size10, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
523 ptr10, size11, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
541 NULL, size12, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
573 int32_t socket_count = 0, socket_allocated, socket; in test_realloc_numa() local
579 for (socket = 0; socket < RTE_MAX_NUMA_NODES; socket++) { in test_realloc_numa()
580 if (is_mem_on_socket(socket)) { in test_realloc_numa()
588 socket); in test_realloc_numa()
596 if (socket_allocated != socket) { in test_realloc_numa()
598 socket, socket_allocated); in test_realloc_numa()
876 int32_t *socket = arg; in check_socket_mem() local
881 return *socket == msl->socket_id; in check_socket_mem()
886 is_mem_on_socket(int32_t socket) in is_mem_on_socket() argument
888 return rte_memseg_list_walk(check_socket_mem, &socket); in is_mem_on_socket()
906 test_alloc_single_socket(int32_t socket) in test_alloc_single_socket() argument
912 int32_t desired_socket = (socket == SOCKET_ID_ANY) ? in test_alloc_single_socket()
913 (int32_t)rte_socket_id() : socket; in test_alloc_single_socket()
916 mem = rte_calloc_socket(type, size, sizeof(char), align, socket); in test_alloc_single_socket()
926 mem = rte_malloc_socket(type, size, align, socket); in test_alloc_single_socket()
935 mem = rte_zmalloc_socket(type, size, align, socket); in test_alloc_single_socket()