Home
last modified time | relevance | path

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

/external/jemalloc/test/unit/
Dstats.c10 assert_d_eq(mallctl("stats.cactive", (void *)&cactive, &sz, NULL, 0), in TEST_BEGIN()
14 assert_d_eq(mallctl("stats.allocated", (void *)&allocated, &sz, NULL, in TEST_BEGIN()
16 assert_d_eq(mallctl("stats.active", (void *)&active, &sz, NULL, 0), in TEST_BEGIN()
18 assert_d_eq(mallctl("stats.resident", (void *)&resident, &sz, NULL, 0), in TEST_BEGIN()
20 assert_d_eq(mallctl("stats.mapped", (void *)&mapped, &sz, NULL, 0), in TEST_BEGIN()
48 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, sizeof(epoch)), in TEST_BEGIN()
52 assert_d_eq(mallctl("stats.arenas.0.huge.allocated", (void *)&allocated, in TEST_BEGIN()
55 assert_d_eq(mallctl("stats.arenas.0.huge.nmalloc", (void *)&nmalloc, in TEST_BEGIN()
57 assert_d_eq(mallctl("stats.arenas.0.huge.ndalloc", (void *)&ndalloc, in TEST_BEGIN()
59 assert_d_eq(mallctl("stats.arenas.0.huge.nrequests", (void *)&nrequests, 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, (void *)&epoch, in TEST_BEGIN()
18 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in TEST_BEGIN()
23 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
26 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
37 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, in TEST_BEGIN()
50 assert_d_eq(mallctlnametomib("version", mib, &miblen), 0, in TEST_BEGIN()
53 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, "0.0.0", in TEST_BEGIN()
58 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.c43 assert_d_eq(mallctl("arenas.hchunk.0.size", (void *)&huge0, &sz, NULL, in TEST_BEGIN()
45 assert_d_eq(mallctl("arenas.lrun.0.size", (void *)&large0, &sz, NULL, in TEST_BEGIN()
76 assert_d_eq(posix_memalign(&p, sizeof(size_t), huge0), 0, in TEST_BEGIN()
178 assert_d_eq(mallctl("tcache.create", (void *)&tcache_ind, &sz, in TEST_BEGIN()
195 assert_d_eq(mallctl("tcache.flush", NULL, NULL, in TEST_BEGIN()
231 assert_d_eq(mallctl("arenas.tcache_max", (void *)&tcache_max, in TEST_BEGIN()
236 assert_d_eq(mallctl("arenas.lrun.0.size", (void *)&large, &sz, in TEST_BEGIN()
240 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
242 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, in TEST_BEGIN()
245 assert_d_eq(mallctl("stats.arenas.0.npurge", (void *)&npurge0, &sz, in TEST_BEGIN()
[all …]
Dpack.c34 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, in binind_compute()
42 assert_d_eq(mallctlnametomib("arenas.bin.0.size", mib, in binind_compute()
47 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, in binind_compute()
66 assert_d_eq(mallctlnametomib("arenas.bin.0.nregs", mib, &miblen), 0, in nregs_per_run_compute()
70 assert_d_eq(mallctlbymib(mib, miblen, (void *)&nregs, &sz, NULL, in nregs_per_run_compute()
84 assert_d_eq(mallctlnametomib("arenas.bin.0.run_size", mib, &miblen), 0, in npages_per_run_compute()
88 assert_d_eq(mallctlbymib(mib, miblen, (void *)&run_size, &sz, NULL, in npages_per_run_compute()
114 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), in arenas_extend_mallctl()
126 assert_d_eq(mallctlnametomib("arena.0.reset", mib, &miblen), 0, in arena_reset_mallctl()
129 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in arena_reset_mallctl()
Drun_quantize.c16 assert_d_eq(mallctl("arenas.nbins", (void *)&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, (void *)&run_size, &sz, in TEST_BEGIN()
50 assert_d_eq(mallctl("config.cache_oblivious", (void *)&cache_oblivious, in TEST_BEGIN()
54 assert_d_eq(mallctl("arenas.nlruns", (void *)&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, (void *)&lrun_size, &sz, in TEST_BEGIN()
105 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, in TEST_BEGIN()
109 assert_d_eq(mallctl("arenas.nlruns", (void *)&nlruns, &sz, NULL, 0), 0, in TEST_BEGIN()
Dprof_reset.c23 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, in set_prof_active()
33 assert_d_eq(mallctl("prof.lg_sample", (void *)&lg_prof_sample, &sz, in get_lg_prof_sample()
42 assert_d_eq(mallctl("prof.reset", NULL, NULL, in do_prof_reset()
58 assert_d_eq(mallctl("opt.lg_prof_sample", (void *)&lg_prof_sample_orig, in TEST_BEGIN()
70 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
126 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN()
131 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
133 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN()
163 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), in thd_start()
169 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in thd_start()
Dprof_thread_name.c15 assert_d_eq(mallctl("thread.prof.name", (void *)&thread_name_old, &sz, in mallctl_thread_name_get_impl()
30 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in mallctl_thread_name_set_impl()
50 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in TEST_BEGIN()
57 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, in TEST_BEGIN()
68 assert_d_eq(mallctl("thread.prof.name", in TEST_BEGIN()
94 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in thd_start()
Darena_reset.c14 assert_d_eq(mallctl(cmd, (void *)&ret, &z, NULL, 0), 0, in get_nsizes_impl()
50 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
54 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl()
95 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), in TEST_BEGIN()
137 assert_d_eq(mallctlnametomib("arena.0.reset", mib, &miblen), 0, in TEST_BEGIN()
140 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
Dprof_gdump.c31 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, in TEST_BEGIN()
49 assert_d_eq(mallctl("prof.gdump", (void *)&gdump_old, &sz, in TEST_BEGIN()
60 assert_d_eq(mallctl("prof.gdump", (void *)&gdump_old, &sz, in TEST_BEGIN()
Dsize_classes.c11 assert_d_eq(mallctl("arenas.nhchunks", (void *)&nhchunks, &sz, NULL, 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, (void *)&max_size_class, &sz, in get_max_size_class()
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, (void *)&active, in TEST_BEGIN()
Dprof_active.c15 assert_d_eq(mallctl(name, (void *)&old, &sz, NULL, 0), 0, in mallctl_bool_get()
29 assert_d_eq(mallctl(name, (void *)&old, &sz, (void *)&val_new, in mallctl_bool_set()
Dutil.c62 assert_d_eq(err, 0, "Unexpected failure"); in TEST_BEGIN()
146 assert_d_eq(err, test->expected_errno, in TEST_BEGIN()
169 assert_d_eq(strncmp(buf, expected_str_untruncated, len-1), 0, \ in TEST_BEGIN()
Dprof_idump.c32 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, in TEST_BEGIN()
/external/jemalloc/test/integration/
Dthread_tcache_enabled.c31 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
37 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
42 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
47 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
52 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
58 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
64 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
70 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
76 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, in thd_start()
Dchunk.c140 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), in TEST_BEGIN()
146 assert_d_eq(mallctlnametomib("arena.0.chunk_hooks", hooks_mib, in TEST_BEGIN()
151 assert_d_eq(mallctlbymib(hooks_mib, hooks_miblen, (void *)&old_hooks, in TEST_BEGIN()
168 assert_d_eq(mallctl("arenas.lrun.0.size", (void *)&large0, &sz, NULL, in TEST_BEGIN()
170 assert_d_eq(mallctl("arenas.lrun.1.size", (void *)&large1, &sz, NULL, in TEST_BEGIN()
174 assert_d_eq(mallctl("arenas.hchunk.0.size", (void *)&huge0, &sz, NULL, in TEST_BEGIN()
176 assert_d_eq(mallctl("arenas.hchunk.1.size", (void *)&huge1, &sz, NULL, in TEST_BEGIN()
178 assert_d_eq(mallctl("arenas.hchunk.2.size", (void *)&huge2, &sz, NULL, in TEST_BEGIN()
183 assert_d_eq(mallctlnametomib("arena.0.purge", purge_mib, &purge_miblen), in TEST_BEGIN()
195 assert_d_eq(mallctlbymib(purge_mib, purge_miblen, NULL, NULL, NULL, 0), in TEST_BEGIN()
[all …]
Doverflow.c11 assert_d_eq(mallctl("arenas.nhchunks", (void *)&nhchunks, &sz, NULL, 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, (void *)&max_size_class, &sz, in TEST_BEGIN()
DMALLOCX_ARENA.c22 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 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.c14 assert_d_eq(mallctl(cmd, (void *)&ret, &z, NULL, 0), 0, in get_nsizes_impl()
36 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
40 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl()
62 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in purge()
Dposix_memalign.c15 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in purge()
25 assert_d_eq(posix_memalign(&p, alignment, 1), EINVAL, in TEST_BEGIN()
Drallocx.c10 assert_d_eq(mallctl(cmd, (void *)&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, (void *)&ret, &z, NULL, 0), in get_size_impl()
Dxallocx.c19 assert_d_eq(mallctl("arenas.extend", (void *)&ind, &sz, NULL, in arena_ind()
81 assert_d_eq(mallctl(cmd, (void *)&ret, &z, NULL, 0), 0, in get_nsizes_impl()
117 assert_d_eq(mallctlnametomib(cmd, mib, &miblen), in get_size_impl()
121 assert_d_eq(mallctlbymib(mib, miblen, (void *)&ret, &z, NULL, 0), in get_size_impl()
Daligned_alloc.c15 assert_d_eq(mallctl("arena.0.purge", NULL, NULL, NULL, 0), 0, in purge()
/external/jemalloc/test/include/test/
Dtest.h43 #define assert_d_eq(a, b, ...) assert_cmp(int, a, b, ==, !=, "d", __VA_ARGS__) macro