MCPcopy Create free account
hub / github.com/axboe/liburing / t_malloc

Function t_malloc

test/helpers.c:24–30  ·  view source on GitHub ↗

* Helper for allocating memory in tests. */

Source from the content-addressed store, hash-verified

22 * Helper for allocating memory in tests.
23 */
24void *t_malloc(size_t size)
25{
26 void *ret;
27 ret = malloc(size);
28 assert(ret);
29 return ret;
30}
31
32/*
33 * Helper for binding socket to an ephemeral port.

Callers 15

queue_sendFunction · 0.85
queue_recvFunction · 0.85
test_fadviseFunction · 0.85
test_sqe_updateFunction · 0.85
get_file_fdFunction · 0.85
mainFunction · 0.85
test_madviseFunction · 0.85
fill_patternFunction · 0.85
mainFunction · 0.85
test_link_drain_oneFunction · 0.85
test_link_drain_multiFunction · 0.85
test_barrier_fsyncFunction · 0.85

Calls

no outgoing calls

Tested by 11

test_fadviseFunction · 0.68
test_sqe_updateFunction · 0.68
test_madviseFunction · 0.68
test_link_drain_oneFunction · 0.68
test_link_drain_multiFunction · 0.68
test_barrier_fsyncFunction · 0.68
test_memlock_exceededFunction · 0.68
test_iovec_nrFunction · 0.68
test_replace_allFunction · 0.68
test_fixed_read_writeFunction · 0.68
test_sparse_updatesFunction · 0.68