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

Function test_ring_calloc

dpdk/app/test/test_ring.h:225–242  ·  view source on GitHub ↗

This function is placed here as it is required for both * performance and functional tests. */

Source from the content-addressed store, hash-verified

223 * performance and functional tests.
224 */
225static inline void *
226test_ring_calloc(unsigned int rsize, int esize)
227{
228 unsigned int sz;
229 void *p;
230
231 /* Legacy queue APIs? */
232 if (esize == -1)
233 sz = sizeof(void *);
234 else
235 sz = esize;
236
237 p = rte_zmalloc(NULL, rsize * sz, RTE_CACHE_LINE_SIZE);
238 if (p == NULL)
239 printf("Failed to allocate memory\n");
240
241 return p;
242}

Callers 10

load_loop_fn_helperFunction · 0.85
test_ring_basic_exFunction · 0.85

Calls 2

rte_zmallocFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected