Home
last modified time | relevance | path

Searched refs:miblen (Results 1 – 18 of 18) sorted by relevance

/external/jemalloc/test/unit/
Dmallctl.c34 size_t miblen; in TEST_BEGIN() local
36 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN()
37 assert_d_eq(mallctlnametomib("no_such_name", mib, &miblen), ENOENT, in TEST_BEGIN()
47 size_t miblen; in TEST_BEGIN() local
49 miblen = sizeof(mib)/sizeof(size_t); 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()
57 miblen = sizeof(mib)/sizeof(size_t); in TEST_BEGIN()
58 assert_d_eq(mallctlnametomib("epoch", mib, &miblen), 0, in TEST_BEGIN()
61 assert_d_eq(mallctlbymib(mib, miblen, NULL, NULL, (void *)&epoch, in TEST_BEGIN()
[all …]
Dpack.c39 size_t miblen = sizeof(mib)/sizeof(size_t); in binind_compute() local
43 &miblen), 0, "Unexpected mallctlnametomb failure"); in binind_compute()
47 assert_d_eq(mallctlbymib(mib, miblen, (void *)&size, &sz, NULL, in binind_compute()
64 size_t miblen = sizeof(mib)/sizeof(size_t); in nregs_per_run_compute() local
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()
81 size_t miblen = sizeof(mib)/sizeof(size_t); in npages_per_run_compute() local
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()
124 size_t miblen = sizeof(mib)/sizeof(size_t); in arena_reset_mallctl() local
[all …]
Darena_reset.c47 size_t miblen = 4; in get_size_impl() local
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()
85 size_t sz, miblen; in TEST_BEGIN() local
136 miblen = sizeof(mib)/sizeof(size_t); 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()
Drun_quantize.c8 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() local
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()
42 size_t miblen = sizeof(mib) / sizeof(size_t); in TEST_BEGIN() local
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()
Dsize_classes.c8 size_t sz, miblen, max_size_class; in get_max_size_class() local
14 miblen = sizeof(mib) / sizeof(size_t); 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()
/external/jemalloc/test/integration/
Doverflow.c7 size_t sz, miblen, max_size_class; in TEST_BEGIN() local
14 miblen = sizeof(mib) / sizeof(size_t); 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.c27 size_t miblen = sizeof(mib) / sizeof(size_t); in thd_start() local
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.c33 size_t miblen = 4; in get_size_impl() local
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()
Drallocx.c29 size_t miblen = 4; in get_size_impl() local
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.c114 size_t miblen = 4; in get_size_impl() local
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()
/external/jemalloc/src/
Dctl.c45 static int n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \
50 const size_t *mib, size_t miblen, size_t i);
962 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib() argument
976 for (i = 0; i < miblen; i++) { in ctl_bymib()
991 node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]); in ctl_bymib()
1001 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib()
1098 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1121 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1142 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1165 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
[all …]
Dstats.c11 size_t miblen = sizeof(mib) / sizeof(size_t); \
13 xmallctlnametomib(n, mib, &miblen); \
15 xmallctlbymib(mib, miblen, (void *)v, &sz, NULL, 0); \
20 size_t miblen = sizeof(mib) / sizeof(size_t); \
22 xmallctlnametomib(n, mib, &miblen); \
25 xmallctlbymib(mib, miblen, (void *)v, &sz, NULL, 0); \
Djemalloc.c2736 je_mallctlbymib(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, argument
2747 ret = ctl_bymib(tsd, mib, miblen, oldp, oldlenp, newp, newlen);
/external/jemalloc/include/jemalloc/internal/
Dctl.h78 int ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
103 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument
104 if (je_mallctlbymib(mib, miblen, oldp, oldlenp, newp, \
/external/jemalloc/include/jemalloc/
Djemalloc_protos_jet.h49 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
Djemalloc_protos.h49 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
Djemalloc_protos.h.in49 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
Djemalloc.h243 size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);