Lines Matching refs:sz
6 size_t sz; in TEST_BEGIN() local
20 sz = sizeof(epoch)-1; in TEST_BEGIN()
21 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
23 sz = sizeof(epoch)+1; in TEST_BEGIN()
24 assert_d_eq(mallctl("epoch", &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
43 size_t sz; in TEST_BEGIN() local
66 sz = sizeof(epoch)-1; in TEST_BEGIN()
67 assert_d_eq(mallctlbymib(mib, miblen, &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
69 sz = sizeof(epoch)+1; in TEST_BEGIN()
70 assert_d_eq(mallctlbymib(mib, miblen, &epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
78 size_t sz = sizeof(old_epoch); in TEST_BEGIN() local
83 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN()
86 assert_d_eq(mallctl("epoch", &old_epoch, &sz, NULL, 0), 0, in TEST_BEGIN()
88 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN()
93 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN()
96 assert_d_eq(mallctl("epoch", &old_epoch, &sz, &new_epoch, in TEST_BEGIN()
98 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN()
122 size_t sz = sizeof(oldval); \ in TEST_BEGIN()
123 assert_d_eq(mallctl("config."#config, &oldval, &sz, NULL, 0), \ in TEST_BEGIN()
126 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN()
155 size_t sz = sizeof(oldval); \ in TEST_BEGIN()
157 int result = mallctl("opt."#opt, &oldval, &sz, NULL, 0); \ in TEST_BEGIN()
160 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN()
251 size_t sz, psz, qsz; in TEST_BEGIN() local
260 sz = sizeof(unsigned); in TEST_BEGIN()
261 assert_d_eq(mallctl("tcache.create", &tis[i], &sz, NULL, 0), 0, in TEST_BEGIN()
272 sz = sizeof(unsigned); in TEST_BEGIN()
273 assert_d_eq(mallctl("tcache.create", &tis[i], &sz, NULL, 0), 0, in TEST_BEGIN()
341 size_t sz = sizeof(unsigned); in TEST_BEGIN() local
343 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
347 assert_d_eq(mallctl("thread.arena", &arena_old, &sz, &arena_new, in TEST_BEGIN()
350 assert_d_eq(mallctl("thread.arena", &arena_old, &sz, &arena_new, in TEST_BEGIN()
358 size_t sz = sizeof(ssize_t); in TEST_BEGIN() local
362 assert_d_eq(mallctl("arena.0.lg_dirty_mult", &orig_lg_dirty_mult, &sz, in TEST_BEGIN()
381 &sz, &lg_dirty_mult, sizeof(ssize_t)), 0, in TEST_BEGIN()
392 size_t sz = sizeof(ssize_t); in TEST_BEGIN() local
396 assert_d_eq(mallctl("arena.0.decay_time", &orig_decay_time, &sz, in TEST_BEGIN()
414 &sz, &decay_time, sizeof(ssize_t)), 0, in TEST_BEGIN()
425 size_t sz = sizeof(unsigned); in TEST_BEGIN() local
432 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
445 size_t sz = sizeof(unsigned); in TEST_BEGIN() local
452 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
465 size_t sz = sizeof(dss_prec_old); in TEST_BEGIN() local
474 assert_d_eq(mallctlbymib(mib, miblen, &dss_prec_old, &sz, &dss_prec_new, in TEST_BEGIN()
479 assert_d_eq(mallctlbymib(mib, miblen, &dss_prec_new, &sz, &dss_prec_old, in TEST_BEGIN()
482 assert_d_eq(mallctlbymib(mib, miblen, &dss_prec_old, &sz, NULL, 0), 0, in TEST_BEGIN()
489 assert_d_eq(mallctlbymib(mib, miblen, &dss_prec_old, &sz, &dss_prec_new, in TEST_BEGIN()
494 assert_d_eq(mallctlbymib(mib, miblen, &dss_prec_new, &sz, &dss_prec_old, in TEST_BEGIN()
497 assert_d_eq(mallctlbymib(mib, miblen, &dss_prec_old, &sz, NULL, 0), 0, in TEST_BEGIN()
507 size_t sz = sizeof(narenas); in TEST_BEGIN() local
509 assert_d_eq(mallctl("arenas.narenas", &narenas, &sz, NULL, 0), 0, in TEST_BEGIN()
514 sz = narenas * sizeof(bool); in TEST_BEGIN()
515 assert_d_eq(mallctl("arenas.initialized", initialized, &sz, in TEST_BEGIN()
524 size_t sz = sizeof(ssize_t); in TEST_BEGIN() local
528 assert_d_eq(mallctl("arenas.lg_dirty_mult", &orig_lg_dirty_mult, &sz, in TEST_BEGIN()
547 &sz, &lg_dirty_mult, sizeof(ssize_t)), 0, in TEST_BEGIN()
558 size_t sz = sizeof(ssize_t); in TEST_BEGIN() local
562 assert_d_eq(mallctl("arenas.decay_time", &orig_decay_time, &sz, in TEST_BEGIN()
580 &sz, &decay_time, sizeof(ssize_t)), 0, in TEST_BEGIN()
593 size_t sz = sizeof(t); \ in TEST_BEGIN()
594 assert_d_eq(mallctl("arenas."#name, &name, &sz, NULL, 0), 0, \ in TEST_BEGIN()
614 size_t sz = sizeof(t); \ in TEST_BEGIN()
615 assert_d_eq(mallctl("arenas.bin.0."#name, &name, &sz, NULL, 0), \ in TEST_BEGIN()
633 size_t sz = sizeof(t); \ in TEST_BEGIN()
634 assert_d_eq(mallctl("arenas.lrun.0."#name, &name, &sz, NULL, \ in TEST_BEGIN()
650 size_t sz = sizeof(t); \ in TEST_BEGIN()
651 assert_d_eq(mallctl("arenas.hchunk.0."#name, &name, &sz, NULL, \ in TEST_BEGIN()
665 size_t sz = sizeof(unsigned); in TEST_BEGIN() local
667 assert_d_eq(mallctl("arenas.narenas", &narenas_before, &sz, NULL, 0), 0, in TEST_BEGIN()
669 assert_d_eq(mallctl("arenas.extend", &arena, &sz, NULL, 0), 0, in TEST_BEGIN()
671 assert_d_eq(mallctl("arenas.narenas", &narenas_after, &sz, NULL, 0), 0, in TEST_BEGIN()
685 size_t sz = sizeof(t); \ in TEST_BEGIN()
686 assert_d_eq(mallctl("stats.arenas.0."#name, &name, &sz, NULL, \ in TEST_BEGIN()