/netbsd-current/external/bsd/jemalloc/dist/test/integration/ |
H A D | thread_tcache_enabled.c | 7 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, NULL, 8 0), 0, "Unexpected mallctl failure"); 12 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, 13 (void *)&e1, sz), 0, "Unexpected mallctl() error"); 18 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, 19 (void *)&e1, sz), 0, "Unexpected mallctl() error"); 23 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, 24 (void *)&e1, sz), 0, "Unexpected mallctl() error"); 28 assert_d_eq(mallctl("thread.tcache.enabled", (void *)&e0, &sz, 29 (void *)&e1, sz), 0, "Unexpected mallctl() erro [all...] |
H A D | allocated.c | 20 if ((err = mallctl("thread.allocated", (void *)&a0, &sz, NULL, 0))) { 24 test_fail("%s(): Error in mallctl(): %s", __func__, 28 if ((err = mallctl("thread.allocatedp", (void *)&ap0, &sz, NULL, 0))) { 32 test_fail("%s(): Error in mallctl(): %s", __func__, 40 if ((err = mallctl("thread.deallocated", (void *)&d0, &sz, NULL, 0))) { 44 test_fail("%s(): Error in mallctl(): %s", __func__, 48 if ((err = mallctl("thread.deallocatedp", (void *)&dp0, &sz, NULL, 53 test_fail("%s(): Error in mallctl(): %s", __func__, 64 mallctl("thread.allocated", (void *)&a1, &sz, NULL, 0); 66 mallctl("threa [all...] |
H A D | thread_arena.c | 18 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, 23 test_fail("Error in mallctl(): %s", buf); 27 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, NULL, 32 test_fail("Error in mallctl(): %s", buf); 45 test_fail("Error in mallctl(): %s", buf); 59 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), 63 if ((err = mallctl("thread.arena", (void *)&old_arena_ind, &size,
|
H A D | extent.c | 9 int ret = mallctl("background_thread", (void *)&enabled, &sz, NULL,0); 13 assert_d_eq(ret, 0, "Unexpected mallctl error"); 30 assert_d_eq(mallctl("arenas.lextent.0.size", (void *)&large0, &sz, NULL, 32 assert_d_eq(mallctl("arenas.lextent.1.size", (void *)&large1, &sz, NULL, 34 assert_d_eq(mallctl("arenas.lextent.2.size", (void *)&large2, &sz, NULL, 113 assert_d_eq(mallctl("opt.narenas", (void *)&narenas, &sz, NULL, 0), 114 0, "Unexpected mallctl() failure"); 149 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), 150 0, "Unexpected mallctl() failure"); 235 assert_d_eq(mallctl("arena [all...] |
H A D | overflow.c | 10 assert_d_eq(mallctl("arenas.nlextents", (void *)&nlextents, &sz, NULL, 11 0), 0, "Unexpected mallctl() error");
|
H A D | MALLOCX_ARENA.c | 21 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0),
|
/netbsd-current/external/bsd/jemalloc/dist/test/unit/ |
H A D | background_thread_enable.c | 19 assert_d_eq(mallctl("arenas.create", &id, &sz_u, NULL, 0), 0, 25 assert_d_eq(mallctl("background_thread", NULL, NULL, &enable, sz_b), 0, 28 assert_d_eq(mallctl("background_thread", NULL, NULL, &enable, sz_b), 0, 39 assert_d_eq(mallctl("opt.max_background_threads", 42 assert_d_eq(mallctl("max_background_threads", &maxt, &sz_m, NULL, 0), 0, 48 assert_d_eq(mallctl("max_background_threads", NULL, NULL, &maxt, sz_m), 55 assert_d_eq(mallctl("arenas.create", &id, &sz_u, NULL, 0), 0, 61 assert_d_eq(mallctl("background_thread", NULL, NULL, &enable, sz_b), 0, 66 assert_d_eq(mallctl("max_background_threads", NULL, NULL, &maxt, sz_m), 71 assert_d_eq(mallctl("max_background_thread [all...] |
H A D | stats.c | 8 assert_d_eq(mallctl("stats.allocated", (void *)&allocated, &sz, NULL, 9 0), expected, "Unexpected mallctl() result"); 10 assert_d_eq(mallctl("stats.active", (void *)&active, &sz, NULL, 0), 11 expected, "Unexpected mallctl() result"); 12 assert_d_eq(mallctl("stats.resident", (void *)&resident, &sz, NULL, 0), 13 expected, "Unexpected mallctl() result"); 14 assert_d_eq(mallctl("stats.mapped", (void *)&mapped, &sz, NULL, 0), 15 expected, "Unexpected mallctl() result"); 39 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, sizeof(epoch)), 40 0, "Unexpected mallctl() failur [all...] |
H A D | prof_thread_name.c | 10 assert_d_eq(mallctl("thread.prof.name", (void *)&thread_name_old, &sz, 12 "%s():%d: Unexpected mallctl failure reading thread.prof.name", 23 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, 25 "%s():%d: Unexpected mallctl failure reading thread.prof.name", 42 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, 44 "Unexpected mallctl result writing \"%s\" to thread.prof.name", 49 assert_d_eq(mallctl("thread.prof.name", NULL, NULL, 51 "Unexpected mallctl result writing \"%s\" to thread.prof.name", 60 assert_d_eq(mallctl("thread.prof.name", 63 "Unexpected mallctl resul [all...] |
H A D | mallctl.c | 9 assert_d_eq(mallctl("no_such_name", NULL, NULL, NULL, 0), ENOENT, 10 "mallctl() should return ENOENT for non-existent names"); 12 assert_d_eq(mallctl("version", NULL, NULL, "0.0.0", strlen("0.0.0")), 13 EPERM, "mallctl() should return EPERM on attempt to write " 16 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, 18 "mallctl() should return EINVAL for input size mismatch"); 19 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, 21 "mallctl() should return EINVAL for input size mismatch"); 24 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, 25 "mallctl() shoul [all...] |
H A D | background_thread.c | 11 assert_d_eq(mallctl("background_thread", (void *)&e0, &sz, 12 &e1, sz), 0, "Unexpected mallctl() failure"); 30 assert_d_eq(mallctl("background_thread", (void *)&e0, &sz, 31 &e1, sz), 0, "Unexpected mallctl() failure"); 49 assert_d_eq(mallctl("opt.background_thread", (void *)&e0, &sz, 50 NULL, 0), 0, "Unexpected mallctl() failure"); 51 assert_d_eq(mallctl("background_thread", (void *)&e1, &sz, 52 NULL, 0), 0, "Unexpected mallctl() failure");
|
H A D | prof_idump.c | 24 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, 26 "Unexpected mallctl failure while activating profiling");
|
H A D | prof_gdump.c | 25 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, 27 "Unexpected mallctl failure while activating profiling"); 43 assert_d_eq(mallctl("prof.gdump", (void *)&gdump_old, &sz, 45 "Unexpected mallctl failure while disabling prof.gdump"); 54 assert_d_eq(mallctl("prof.gdump", (void *)&gdump_old, &sz, 56 "Unexpected mallctl failure while enabling prof.gdump");
|
H A D | prof_reset.c | 15 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, 16 sizeof(active)), 0, "Unexpected mallctl failure"); 24 assert_d_eq(mallctl("prof.lg_sample", (void *)&lg_prof_sample, &sz, 26 "Unexpected mallctl failure while reading profiling sample rate"); 32 assert_d_eq(mallctl("prof.reset", NULL, NULL, 34 "Unexpected mallctl failure while resetting profile data"); 47 assert_d_eq(mallctl("opt.lg_prof_sample", (void *)&lg_prof_sample_orig, 49 "Unexpected mallctl failure while reading profiling sample rate"); 59 assert_d_eq(mallctl("prof.reset", NULL, NULL, NULL, 0), 0, 60 "Unexpected mallctl failur [all...] |
H A D | fork.c | 39 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), 40 0, "Unexpected mallctl() failure"); 45 assert_d_eq(mallctl("thread.arena", (void *)&old_arena_ind, &sz, 47 "Unexpected mallctl() failure");
|
H A D | prof_accum.c | 35 assert_d_eq(mallctl("prof.dump", NULL, NULL, NULL, 0), 61 assert_d_eq(mallctl("prof.active", NULL, NULL, (void *)&active, 63 "Unexpected mallctl failure while activating profiling");
|
H A D | extent_quantize.c | 15 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, 16 "Unexpected mallctl failure"); 50 assert_d_eq(mallctl("config.cache_oblivious", (void *)&cache_oblivious, 51 &sz, NULL, 0), 0, "Unexpected mallctl failure"); 54 assert_d_eq(mallctl("arenas.nlextents", (void *)&nlextents, &sz, NULL, 55 0), 0, "Unexpected mallctl failure");
|
H A D | decay.c | 16 int ret = mallctl("background_thread", (void *)&enabled, &sz, NULL,0); 20 assert_d_eq(ret, 0, "Unexpected mallctl error"); 42 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), 43 0, "Unexpected mallctl() failure"); 78 assert_d_eq(mallctl("epoch", NULL, NULL, (void *)&epoch, sizeof(epoch)), 79 0, "Unexpected mallctl() failure"); 190 assert_d_eq(mallctl("arenas.lextent.0.size", (void *)&large0, &sz, NULL, 191 0), 0, "Unexpected mallctl failure"); 199 assert_d_eq(mallctl("thread.arena", (void *)&old_arena_ind, 201 "Unexpected mallctl() failur [all...] |
H A D | pack.c | 25 assert_d_eq(mallctl("arenas.nbins", (void *)&nbins, &sz, NULL, 0), 0, 26 "Unexpected mallctl failure"); 72 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), 93 if (mallctl("opt.prof", (void *)&prof_enabled, &sz, NULL, 0) == 0) {
|
H A D | prof_active.c | 9 assert_d_eq(mallctl(name, (void *)&old, &sz, NULL, 0), 0, 10 "%s():%d: Unexpected mallctl failure reading %s", func, line, name); 22 assert_d_eq(mallctl(name, (void *)&old, &sz, (void *)&val_new, 24 "%s():%d: Unexpected mallctl failure reading/writing %s", func,
|
/netbsd-current/include/ |
H A D | malloc.h | 44 int mallctl(const char *, void *, size_t *, void *, size_t);
|
/netbsd-current/external/bsd/jemalloc/include/jemalloc/ |
H A D | jemalloc_rename.h | 11 # define je_mallctl mallctl
|
H A D | jemalloc_mangle.h | 16 # define mallctl je_mallctl macro
|
H A D | jemalloc_mangle_jet.h | 16 # define mallctl jet_mallctl macro
|
/netbsd-current/external/bsd/jemalloc/include/jemalloc/internal/ |
H A D | public_namespace.h | 5 #define je_mallctl JEMALLOC_N(mallctl)
|