• Home
  • Raw
  • Download

Lines Matching refs:sz

7 	size_t sz;  in TEST_BEGIN()  local
23 sz = sizeof(epoch)-1; in TEST_BEGIN()
24 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
26 sz = sizeof(epoch)+1; in TEST_BEGIN()
27 assert_d_eq(mallctl("epoch", (void *)&epoch, &sz, NULL, 0), EINVAL, in TEST_BEGIN()
44 size_t sz; in TEST_BEGIN() local
67 sz = sizeof(epoch)-1; in TEST_BEGIN()
68 assert_d_eq(mallctlbymib(mib, miblen, (void *)&epoch, &sz, NULL, 0), in TEST_BEGIN()
71 sz = sizeof(epoch)+1; in TEST_BEGIN()
72 assert_d_eq(mallctlbymib(mib, miblen, (void *)&epoch, &sz, NULL, 0), in TEST_BEGIN()
80 size_t sz = sizeof(old_epoch); in TEST_BEGIN() local
85 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN()
88 assert_d_eq(mallctl("epoch", (void *)&old_epoch, &sz, NULL, 0), 0, in TEST_BEGIN()
90 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN()
95 assert_zu_eq(sz, sizeof(old_epoch), "Unexpected output size"); in TEST_BEGIN()
98 assert_d_eq(mallctl("epoch", (void *)&old_epoch, &sz, in TEST_BEGIN()
101 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, (void *)&oldval, &sz, \ in TEST_BEGIN()
126 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN()
150 size_t sz = sizeof(oldval); \ in TEST_BEGIN()
152 int result = mallctl("opt."#opt, (void *)&oldval, &sz, NULL, \ in TEST_BEGIN()
156 assert_zu_eq(sz, sizeof(oldval), "Unexpected output size"); \ in TEST_BEGIN()
245 size_t sz, psz, qsz; in TEST_BEGIN() local
252 sz = sizeof(unsigned); in TEST_BEGIN()
253 assert_d_eq(mallctl("tcache.create", (void *)&tis[i], &sz, NULL, in TEST_BEGIN()
264 sz = sizeof(unsigned); in TEST_BEGIN()
265 assert_d_eq(mallctl("tcache.create", (void *)&tis[i], &sz, NULL, in TEST_BEGIN()
336 size_t sz = sizeof(opa); in TEST_BEGIN() local
337 assert_d_eq(mallctl("opt.percpu_arena", (void *)&opa, &sz, NULL, 0), 0, in TEST_BEGIN()
340 sz = sizeof(unsigned); in TEST_BEGIN()
341 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN()
347 assert_d_eq(mallctl("thread.arena", (void *)&old_arena_ind, &sz, in TEST_BEGIN()
351 assert_d_eq(mallctl("thread.arena", (void *)&old_arena_ind, &sz, in TEST_BEGIN()
355 assert_d_eq(mallctl("thread.arena", (void *)&old_arena_ind, &sz, in TEST_BEGIN()
360 (void *)&old_arena_ind, &sz, (void *)&new_arena_ind, in TEST_BEGIN()
370 size_t sz; in TEST_BEGIN() local
375 sz = sizeof(narenas); in TEST_BEGIN()
376 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN()
383 sz = sizeof(initialized); in TEST_BEGIN()
384 assert_d_eq(mallctlbymib(mib, miblen, &initialized, &sz, NULL, in TEST_BEGIN()
389 sz = sizeof(initialized); in TEST_BEGIN()
390 assert_d_eq(mallctlbymib(mib, miblen, &initialized, &sz, NULL, 0), 0, in TEST_BEGIN()
396 sz = sizeof(initialized); in TEST_BEGIN()
399 (void *)&initialized, &sz, NULL, 0), 0, in TEST_BEGIN()
408 size_t sz = sizeof(ssize_t); in TEST_BEGIN() local
411 (void *)&orig_dirty_decay_ms, &sz, NULL, 0), 0, in TEST_BEGIN()
430 (void *)&old_dirty_decay_ms, &sz, (void *)&dirty_decay_ms, in TEST_BEGIN()
440 size_t sz = sizeof(ssize_t); in TEST_BEGIN() local
443 (void *)&orig_muzzy_decay_ms, &sz, NULL, 0), 0, in TEST_BEGIN()
462 (void *)&old_muzzy_decay_ms, &sz, (void *)&muzzy_decay_ms, in TEST_BEGIN()
472 size_t sz = sizeof(unsigned); in TEST_BEGIN() local
479 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN()
495 size_t sz = sizeof(unsigned); in TEST_BEGIN() local
502 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas, &sz, NULL, 0), in TEST_BEGIN()
518 size_t sz = sizeof(dss_prec_old); in TEST_BEGIN() local
527 assert_d_eq(mallctlbymib(mib, miblen, (void *)&dss_prec_old, &sz, in TEST_BEGIN()
533 assert_d_eq(mallctlbymib(mib, miblen, (void *)&dss_prec_new, &sz, in TEST_BEGIN()
537 assert_d_eq(mallctlbymib(mib, miblen, (void *)&dss_prec_old, &sz, NULL, in TEST_BEGIN()
544 assert_d_eq(mallctlbymib(mib, miblen, (void *)&dss_prec_old, &sz, in TEST_BEGIN()
550 assert_d_eq(mallctlbymib(mib, miblen, (void *)&dss_prec_new, &sz, in TEST_BEGIN()
554 assert_d_eq(mallctlbymib(mib, miblen, (void *)&dss_prec_old, &sz, NULL, in TEST_BEGIN()
567 size_t sz = sizeof(retain_enabled); in TEST_BEGIN() local
568 assert_d_eq(mallctl("opt.retain", &retain_enabled, &sz, NULL, 0), in TEST_BEGIN()
572 sz = sizeof(default_limit); in TEST_BEGIN()
577 assert_d_eq(mallctlbymib(mib, miblen, &default_limit, &sz, NULL, 0), 0, in TEST_BEGIN()
589 assert_d_eq(mallctlbymib(mib, miblen, &old_limit, &sz, NULL, 0), 0, in TEST_BEGIN()
598 assert_d_eq(mallctlbymib(mib, miblen, &old_limit, &sz, NULL, 0), 0, in TEST_BEGIN()
611 size_t sz = sizeof(ssize_t); in TEST_BEGIN() local
614 (void *)&orig_dirty_decay_ms, &sz, NULL, 0), 0, in TEST_BEGIN()
633 (void *)&old_dirty_decay_ms, &sz, (void *)&dirty_decay_ms, in TEST_BEGIN()
643 size_t sz = sizeof(ssize_t); in TEST_BEGIN() local
646 (void *)&orig_muzzy_decay_ms, &sz, NULL, 0), 0, in TEST_BEGIN()
665 (void *)&old_muzzy_decay_ms, &sz, (void *)&muzzy_decay_ms, in TEST_BEGIN()
676 size_t sz = sizeof(t); \ in TEST_BEGIN()
677 assert_d_eq(mallctl("arenas."#name, (void *)&name, &sz, NULL, \ in TEST_BEGIN()
694 size_t sz = sizeof(t); \ in TEST_BEGIN()
695 assert_d_eq(mallctl("arenas.bin.0."#name, (void *)&name, &sz, \ in TEST_BEGIN()
712 size_t sz = sizeof(t); \ in TEST_BEGIN()
714 &sz, NULL, 0), 0, "Unexpected mallctl() failure"); \ in TEST_BEGIN()
726 size_t sz = sizeof(unsigned); in TEST_BEGIN() local
728 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas_before, &sz, in TEST_BEGIN()
730 assert_d_eq(mallctl("arenas.create", (void *)&arena, &sz, NULL, 0), 0, in TEST_BEGIN()
732 assert_d_eq(mallctl("arenas.narenas", (void *)&narenas_after, &sz, NULL, in TEST_BEGIN()
744 size_t sz = sizeof(unsigned); in TEST_BEGIN() local
746 assert_d_eq(mallctl("arenas.create", (void *)&arena, &sz, NULL, 0), 0, in TEST_BEGIN()
750 assert_d_eq(mallctl("arenas.lookup", &arena1, &sz, &ptr, sizeof(ptr)), in TEST_BEGIN()
760 size_t sz = sizeof(t); \ in TEST_BEGIN()
761 assert_d_eq(mallctl("stats.arenas.0."#name, (void *)&name, &sz, \ in TEST_BEGIN()