Home
last modified time | relevance | path

Searched refs:assert_d_eq (Results 1 – 15 of 15) 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.mapped", &mapped, &sz, NULL, 0), expected, in TEST_BEGIN()
44 assert_d_eq(mallctl("epoch", NULL, NULL, &epoch, sizeof(epoch)), 0, in TEST_BEGIN()
48 assert_d_eq(mallctl("stats.arenas.0.huge.allocated", &allocated, &sz, in TEST_BEGIN()
51 assert_d_eq(mallctl("stats.arenas.0.huge.nmalloc", &nmalloc, &sz, NULL, in TEST_BEGIN()
53 assert_d_eq(mallctl("stats.arenas.0.huge.ndalloc", &ndalloc, &sz, NULL, in TEST_BEGIN()
55 assert_d_eq(mallctl("stats.arenas.0.huge.nrequests", &nrequests, &sz, in TEST_BEGIN()
82 assert_d_eq(mallctl("thread.arena", NULL, NULL, &arena, sizeof(arena)), 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 …]
Dprof_reset.c28 assert_d_eq(mallctl("opt.lg_prof_sample", &lg_prof_sample_orig, &sz, in TEST_BEGIN()
34 assert_d_eq(mallctl("prof.lg_sample", &lg_prof_sample, &sz, NULL, 0), 0, in TEST_BEGIN()
42 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
45 assert_d_eq(mallctl("prof.lg_sample", &lg_prof_sample, &sz, in TEST_BEGIN()
55 assert_d_eq(mallctl("prof.reset", NULL, NULL, in TEST_BEGIN()
59 assert_d_eq(mallctl("prof.lg_sample", &lg_prof_sample, &sz, in TEST_BEGIN()
69 assert_d_eq(mallctl("prof.lg_sample", &lg_prof_sample, &sz, NULL, 0), 0, in TEST_BEGIN()
98 assert_d_eq(mallctl("prof.active", NULL, NULL, &active, sizeof(active)), in TEST_BEGIN()
110 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), in TEST_BEGIN()
115 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, in TEST_BEGIN()
[all …]
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.c41 assert_d_eq(err, 0, "Unexpected failure"); in TEST_BEGIN()
123 assert_d_eq(err, test->expected_errno, in TEST_BEGIN()
146 assert_d_eq(strncmp(buf, expected_str_untruncated, len-1), 0, \ in TEST_BEGIN()
149 assert_d_eq(result, strlen(expected_str_untruncated), \ in TEST_BEGIN()
179 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.c45 assert_d_eq(mallctl("arena.0.chunk.alloc", &old_alloc, &old_size, in TEST_BEGIN()
49 assert_d_eq(mallctl("arena.0.chunk.dalloc", &old_dalloc, &old_size, in TEST_BEGIN()
53 assert_d_eq(mallctl("arena.0.chunk.purge", &old_purge, &old_size, in TEST_BEGIN()
58 assert_d_eq(mallctl("arenas.hchunk.0.size", &huge0, &sz, NULL, 0), 0, in TEST_BEGIN()
60 assert_d_eq(mallctl("arenas.hchunk.1.size", &huge1, &sz, NULL, 0), 0, in TEST_BEGIN()
62 assert_d_eq(mallctl("arenas.hchunk.2.size", &huge2, &sz, NULL, 0), 0, in TEST_BEGIN()
83 assert_d_eq(mallctl("arena.0.chunk.alloc", NULL, NULL, &old_alloc, in TEST_BEGIN()
85 assert_d_eq(mallctl("arena.0.chunk.dalloc", NULL, NULL, &old_dalloc, in TEST_BEGIN()
87 assert_d_eq(mallctl("arena.0.chunk.purge", NULL, NULL, &old_purge, 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()
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