Lines Matching refs:socket

33 is_mem_on_socket(int32_t socket);
270 int socket = 0; in test_multi_alloc_statistics() local
279 rte_malloc_get_socket_stats(socket, &pre_stats); in test_multi_alloc_statistics()
281 void *dummy = rte_malloc_socket(NULL, RTE_CACHE_LINE_SIZE, 0, socket); in test_multi_alloc_statistics()
285 rte_malloc_get_socket_stats(socket, &post_stats); in test_multi_alloc_statistics()
294 rte_malloc_get_socket_stats(socket, &pre_stats); in test_multi_alloc_statistics()
296 void *p1 = rte_malloc_socket("stats", size , align, socket); in test_multi_alloc_statistics()
302 rte_malloc_get_socket_stats(socket,&post_stats); in test_multi_alloc_statistics()
316 rte_malloc_get_socket_stats(socket,&pre_stats); in test_multi_alloc_statistics()
317 void *p2 = rte_malloc_socket("add", size ,align, socket); in test_multi_alloc_statistics()
320 rte_malloc_get_socket_stats(socket,&first_stats); in test_multi_alloc_statistics()
322 void *p3 = rte_malloc_socket("add2", size,align, socket); in test_multi_alloc_statistics()
326 rte_malloc_get_socket_stats(socket,&second_stats); in test_multi_alloc_statistics()
332 rte_malloc_get_socket_stats(socket, &post_stats); in test_multi_alloc_statistics()
386 test_realloc_socket(int socket) in test_realloc_socket() argument
396 NULL, size1, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
403 ptr1, size2, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
428 NULL, size3, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
444 ptr3, size4, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
457 RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
469 NULL, size5, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
475 ptr5, size6, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
492 char *ptr7 = rte_malloc_socket(NULL, size7, orig_align, socket); in test_realloc_socket()
500 char *ptr8 = rte_realloc_socket(ptr7, size7, new_align, socket); in test_realloc_socket()
519 NULL, size9, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
525 NULL, size10, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
532 ptr10, size11, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
550 NULL, size12, RTE_CACHE_LINE_SIZE, socket); in test_realloc_socket()
582 int32_t socket_count = 0, socket_allocated, socket; in test_realloc_numa() local
588 for (socket = 0; socket < RTE_MAX_NUMA_NODES; socket++) { in test_realloc_numa()
589 if (is_mem_on_socket(socket)) { in test_realloc_numa()
597 socket); in test_realloc_numa()
605 if (socket_allocated != socket) { in test_realloc_numa()
607 socket, socket_allocated); in test_realloc_numa()
886 int32_t *socket = arg; in check_socket_mem() local
891 return *socket == msl->socket_id; in check_socket_mem()
896 is_mem_on_socket(int32_t socket) in is_mem_on_socket() argument
898 return rte_memseg_list_walk(check_socket_mem, &socket); in is_mem_on_socket()
916 test_alloc_single_socket(int32_t socket) in test_alloc_single_socket() argument
922 int32_t desired_socket = (socket == SOCKET_ID_ANY) ? in test_alloc_single_socket()
923 (int32_t)rte_socket_id() : socket; in test_alloc_single_socket()
926 mem = rte_calloc_socket(type, size, sizeof(char), align, socket); in test_alloc_single_socket()
936 mem = rte_malloc_socket(type, size, align, socket); in test_alloc_single_socket()
945 mem = rte_zmalloc_socket(type, size, align, socket); in test_alloc_single_socket()