MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_zero_aligned_alloc

Function test_zero_aligned_alloc

dpdk/app/test/test_malloc.c:864–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862}
863
864static int
865test_zero_aligned_alloc(void)
866{
867 char *p1 = rte_malloc(NULL,1024, 0);
868 if (!p1)
869 goto err_return;
870 if (!rte_is_aligned(p1, RTE_CACHE_LINE_SIZE))
871 goto err_return;
872 rte_free(p1);
873 return 0;
874
875err_return:
876 /*clean up */
877 rte_free(p1);
878 return -1;
879}
880
881static int
882test_malloc_bad_params(void)

Callers 1

test_mallocFunction · 0.85

Calls 3

rte_mallocFunction · 0.85
rte_freeFunction · 0.85
rte_is_alignedFunction · 0.50

Tested by

no test coverage detected