Home
last modified time | relevance | path

Searched refs:assert_d_eq (Results 1 – 22 of 22) sorted by relevance

/external/jemalloc/test/unit/
Dstats.c10 assert_d_eq(mallctl("stats.cactive", &cactive, &sz, NULL, 0), expected, in TEST_BEGIN()
14 assert_d_eq(mallctl("stats.allocated", &allocated, &sz, NULL, 0), in TEST_BEGIN()
16 assert_d_eq(mallctl("stats.active", &active, &sz, NULL, 0), expected, in TEST_BEGIN()
18 assert_d_eq(mallctl("stats.resident", &resident, &sz, NULL, 0), in TEST_BEGIN()
20 assert_d_eq(mallctl("stats.mapped", &mapped, &sz, NULL, 0), expected, in TEST_BEGIN()
48 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
52 assert_d_eq(mallctl("stats.arenas.0.huge.allocated", &allocated, &sz, in TEST_BEGIN()
55 assert_d_eq(mallctl("stats.arenas.0.huge.nmalloc", &nmalloc, &sz, NULL, in TEST_BEGIN()
57 assert_d_eq(mallctl("stats.arenas.0.huge.ndalloc", &ndalloc, &sz, NULL, in TEST_BEGIN()
59 assert_d_eq(mallctl("stats.arenas.0.huge.nrequests", &nrequests, &sz, in TEST_BEGIN()
[all …]
Dmallctl.c8 assert_d_eq(mallctl("no_such_name", NULL, NULL, NULL, 0), ENOENT, in TEST_BEGIN()
11 assert_d_eq(mallctl("version", NULL, NULL, "0.0.0", strlen("0.0.0")), in TEST_BEGIN()
15 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)-1), in TEST_BEGIN()
17 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)+1), in TEST_BEGIN()
21 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
24 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
35 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, in TEST_BEGIN()
48 assert_d_eq(mallctlnametomib("version", mib, &miblen), 0, in TEST_BEGIN()
51 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, "0.0.0", in TEST_BEGIN()
56 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN()
[all …]
Dnstime.c44 assert_d_eq(nstime_compare(&nsta, &nstb), 0, "Times should be equal"); in TEST_BEGIN()
45 assert_d_eq(nstime_compare(&nstb, &nsta), 0, "Times should be equal"); in TEST_BEGIN()
48 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN()
50 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN()
54 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN()
56 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN()
60 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN()
62 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN()
66 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN()
68 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN()
[all …]
Ddecay.c35 assert_d_eq(mallctl("arenas.hchunk.0.size", &huge0, &sz, NULL, 0), 0, in TEST_BEGIN()
37 assert_d_eq(mallctl("arenas.lrun.0.size", &large0, &sz, NULL, 0), 0, in TEST_BEGIN()
68 assert_d_eq(posix_memalign(&p, sizeof(size_t), huge0), 0, in TEST_BEGIN()
170 assert_d_eq(mallctl("tcache.create", &tcache_ind, &sz, NULL, 0), in TEST_BEGIN()
187 assert_d_eq(mallctl("tcache.flush", NULL, NULL, in TEST_BEGIN()
223 assert_d_eq(mallctl("arenas.tcache_max", &tcache_max, &sz, NULL, in TEST_BEGIN()
228 assert_d_eq(mallctl("arenas.lrun.0.size", &large, &sz, NULL, 0), in TEST_BEGIN()
232 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
234 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(uint64_t)), 0, in TEST_BEGIN()
237 assert_d_eq(mallctl("stats.arenas.0.npurge", &npurge0, &sz, NULL, 0), in TEST_BEGIN()
[all …]
Drun_quantize.c16 assert_d_eq(mallctl("arenas.nbins", &nbins, &sz, NULL, 0), 0, in TEST_BEGIN()
19 assert_d_eq(mallctlnametomib("arenas.bin.0.run_size", mib, &miblen), 0, in TEST_BEGIN()
24 assert_d_eq(mallctlbymib(mib, miblen, &run_size, &sz, NULL, 0), in TEST_BEGIN()
50 assert_d_eq(mallctl("config.cache_oblivious", &cache_oblivious, &sz, in TEST_BEGIN()
54 assert_d_eq(mallctl("arenas.nlruns", &nlruns, &sz, NULL, 0), 0, in TEST_BEGIN()
57 assert_d_eq(mallctlnametomib("arenas.lrun.0.size", mib, &miblen), 0, in TEST_BEGIN()
64 assert_d_eq(mallctlbymib(mib, miblen, &lrun_size, &sz, NULL, 0), in TEST_BEGIN()
105 assert_d_eq(mallctl("arenas.nbins", &nbins, &sz, NULL, 0), 0, in TEST_BEGIN()
109 assert_d_eq(mallctl("arenas.nlruns", &nlruns, &sz, NULL, 0), 0, in TEST_BEGIN()
Dprof_reset.c23 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in set_prof_active()
33 assert_d_eq(mallctl("prof.lg_sample", &lg_prof_sample, &sz, NULL, 0), 0, in get_lg_prof_sample()
41 assert_d_eq(mallctl("prof.reset", NULL, NULL, in do_prof_reset()
57 assert_d_eq(mallctl("opt.lg_prof_sample", &lg_prof_sample_orig, &sz, in TEST_BEGIN()
69 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
124 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN()
129 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
131 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN()
161 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), in thd_start()
167 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in thd_start()
Dprof_thread_name.c15 assert_d_eq(mallctl("thread.prof.name", &thread_name_old, &sz, NULL, 0), in mallctl_thread_name_get_impl()
29 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name, in mallctl_thread_name_set_impl()
49 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name, in TEST_BEGIN()
56 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, &thread_name, in TEST_BEGIN()
67 assert_d_eq(mallctl("thread.prof.name", &thread_name_old, &sz, in TEST_BEGIN()
92 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in thd_start()
Dprof_gdump.c31 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in TEST_BEGIN()
48 assert_d_eq(mallctl("prof.gdump", &gdump_old, &sz, &gdump, in TEST_BEGIN()
59 assert_d_eq(mallctl("prof.gdump", &gdump_old, &sz, &gdump, in TEST_BEGIN()
Dsize_classes.c11 assert_d_eq(mallctl("arenas.nhchunks", &nhchunks, &sz, NULL, 0), 0, in get_max_size_class()
15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, in get_max_size_class()
20 assert_d_eq(mallctlbymib(mib, miblen, &max_size_class, &sz, NULL, 0), 0, in get_max_size_class()
Dutil.c62 assert_d_eq(err, 0, "Unexpected failure"); in TEST_BEGIN()
144 assert_d_eq(err, test->expected_errno, in TEST_BEGIN()
167 assert_d_eq(strncmp(buf, expected_str_untruncated, len-1), 0, \ in TEST_BEGIN()
170 assert_d_eq(result, strlen(expected_str_untruncated), \ in TEST_BEGIN()
200 assert_d_eq(result, strlen(expected_str), "Unexpected result"); \ in TEST_BEGIN()
Dprof_accum.c44 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in thd_start()
71 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in TEST_BEGIN()
Dprof_active.c15 assert_d_eq(mallctl(name, &old, &sz, NULL, 0), 0, in mallctl_bool_get()
29 assert_d_eq(mallctl(name, &old, &sz, &val_new, sizeof(val_new)), 0, in mallctl_bool_set()
Dprof_idump.c32 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in TEST_BEGIN()
/external/jemalloc/test/integration/
Dthread_tcache_enabled.c30 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), in thd_start()
36 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
41 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
46 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
51 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
57 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
63 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
69 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
75 assert_d_eq(mallctl("thread.tcache.enabled", &e0, &sz, &e1, sz), 0, in thd_start()
Dchunk.c138 assert_d_eq(mallctl("arena.0.chunk_hooks", &old_hooks, &old_size, in TEST_BEGIN()
154 assert_d_eq(mallctl("arenas.lrun.0.size", &large0, &sz, NULL, 0), 0, in TEST_BEGIN()
156 assert_d_eq(mallctl("arenas.lrun.1.size", &large1, &sz, NULL, 0), 0, in TEST_BEGIN()
160 assert_d_eq(mallctl("arenas.hchunk.0.size", &huge0, &sz, NULL, 0), 0, in TEST_BEGIN()
162 assert_d_eq(mallctl("arenas.hchunk.1.size", &huge1, &sz, NULL, 0), 0, in TEST_BEGIN()
164 assert_d_eq(mallctl("arenas.hchunk.2.size", &huge2, &sz, NULL, 0), 0, in TEST_BEGIN()
177 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
198 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
230 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
235 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
[all …]
Doverflow.c11 assert_d_eq(mallctl("arenas.nhchunks", &nhchunks, &sz, NULL, 0), 0, in TEST_BEGIN()
15 assert_d_eq(mallctlnametomib("arenas.hchunk.0.size", mib, &miblen), 0, in TEST_BEGIN()
20 assert_d_eq(mallctlbymib(mib, miblen, &max_size_class, &sz, NULL, 0), 0, in TEST_BEGIN()
DMALLOCX_ARENA.c22 assert_d_eq(mallctl("arenas.extend", &arena_ind, &sz, NULL, 0), 0, in thd_start()
33 assert_d_eq(mallctlnametomib("arena.0.dss", mib, &miblen), 0, in thd_start()
36 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&dss, in thd_start()
Dmallocx.c10 assert_d_eq(mallctl(cmd, &ret, &z, NULL, 0), 0, in get_nsizes_impl()
32 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
36 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0), in get_size_impl()
Drallocx.c10 assert_d_eq(mallctl(cmd, &ret, &z, NULL, 0), 0, in get_nsizes_impl()
32 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
36 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0), in get_size_impl()
Dxallocx.c15 assert_d_eq(mallctl("arenas.extend", &ind, &sz, NULL, 0), 0, in arena_ind()
77 assert_d_eq(mallctl(cmd, &ret, &z, NULL, 0), 0, in get_nsizes_impl()
113 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
117 assert_d_eq(mallctlbymib(mib, miblen, &ret, &z, NULL, 0), in get_size_impl()
Dposix_memalign.c14 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN()
/external/jemalloc/test/include/test/
Dtest.h43 #define assert_d_eq(a, b, ...) assert_cmp(int, a, b, ==, !=, "d", __VA_ARGS__) macro