Lines Matching refs:arena_ind
40 unsigned arena_ind; in do_arena_create() local
42 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, NULL, 0), in do_arena_create()
49 mib[1] = (size_t)arena_ind; in do_arena_create()
56 mib[1] = (size_t)arena_ind; in do_arena_create()
61 return arena_ind; in do_arena_create()
65 do_arena_destroy(unsigned arena_ind) { in do_arena_destroy() argument
70 mib[1] = (size_t)arena_ind; in do_arena_destroy()
83 do_purge(unsigned arena_ind) { in do_purge() argument
88 mib[1] = (size_t)arena_ind; in do_purge()
94 do_decay(unsigned arena_ind) { in do_decay() argument
99 mib[1] = (size_t)arena_ind; in do_decay()
105 get_arena_npurge_impl(const char *mibname, unsigned arena_ind) { in get_arena_npurge_impl() argument
110 mib[2] = (size_t)arena_ind; in get_arena_npurge_impl()
119 get_arena_dirty_npurge(unsigned arena_ind) { in get_arena_dirty_npurge() argument
121 return get_arena_npurge_impl("stats.arenas.0.dirty_npurge", arena_ind); in get_arena_dirty_npurge()
125 get_arena_muzzy_npurge(unsigned arena_ind) { in get_arena_muzzy_npurge() argument
127 return get_arena_npurge_impl("stats.arenas.0.muzzy_npurge", arena_ind); in get_arena_muzzy_npurge()
131 get_arena_npurge(unsigned arena_ind) { in get_arena_npurge() argument
133 return get_arena_npurge_impl("stats.arenas.0.dirty_npurge", arena_ind) + in get_arena_npurge()
134 get_arena_npurge_impl("stats.arenas.0.muzzy_npurge", arena_ind); in get_arena_npurge()
138 get_arena_pdirty(unsigned arena_ind) { in get_arena_pdirty() argument
144 mib[2] = (size_t)arena_ind; in get_arena_pdirty()
153 get_arena_pmuzzy(unsigned arena_ind) { in get_arena_pmuzzy() argument
159 mib[2] = (size_t)arena_ind; in get_arena_pmuzzy()
175 generate_dirty(unsigned arena_ind, size_t size) { in generate_dirty() argument
176 int flags = MALLOCX_ARENA(arena_ind) | MALLOCX_TCACHE_NONE; in generate_dirty()
185 unsigned tick0, tick1, arena_ind; in TEST_BEGIN() local
194 arena_ind = do_arena_create(0, 0); in TEST_BEGIN()
200 &sz_arena_ind, (void *)&arena_ind, sizeof(arena_ind)), 0, in TEST_BEGIN()
202 decay_ticker = decay_ticker_get(tsd_fetch(), arena_ind); in TEST_BEGIN()
376 decay_ticker_helper(unsigned arena_ind, int flags, bool dirty, ssize_t dt, in decay_ticker_helper() argument
404 dirty_npurge1 = get_arena_dirty_npurge(arena_ind); in decay_ticker_helper()
405 muzzy_npurge1 = get_arena_muzzy_npurge(arena_ind); in decay_ticker_helper()
426 unsigned arena_ind = do_arena_create(ddt, mdt); in TEST_BEGIN() local
427 int flags = (MALLOCX_ARENA(arena_ind) | MALLOCX_TCACHE_NONE); in TEST_BEGIN()
444 do_purge(arena_ind); in TEST_BEGIN()
445 uint64_t dirty_npurge0 = get_arena_dirty_npurge(arena_ind); in TEST_BEGIN()
446 uint64_t muzzy_npurge0 = get_arena_muzzy_npurge(arena_ind); in TEST_BEGIN()
465 do_decay(arena_ind); in TEST_BEGIN()
470 decay_ticker_helper(arena_ind, flags, true, ddt, dirty_npurge0, in TEST_BEGIN()
472 decay_ticker_helper(arena_ind, flags, false, ddt+mdt, dirty_npurge0, in TEST_BEGIN()
475 do_arena_destroy(arena_ind); in TEST_BEGIN()
544 unsigned arena_ind = do_arena_create(0, 0); in TEST_BEGIN() local
545 assert_zu_eq(get_arena_pdirty(arena_ind), 0, "Unexpected dirty pages"); in TEST_BEGIN()
546 assert_zu_eq(get_arena_pmuzzy(arena_ind), 0, "Unexpected muzzy pages"); in TEST_BEGIN()
551 generate_dirty(arena_ind, size); in TEST_BEGIN()
552 assert_zu_eq(get_arena_pdirty(arena_ind), 0, in TEST_BEGIN()
554 assert_zu_eq(get_arena_pmuzzy(arena_ind), 0, in TEST_BEGIN()
557 do_arena_destroy(arena_ind); in TEST_BEGIN()
564 unsigned arena_ind = do_arena_create(-1, -1); in TEST_BEGIN() local
565 int flags = MALLOCX_ARENA(arena_ind) | MALLOCX_TCACHE_NONE; in TEST_BEGIN()
566 assert_zu_eq(get_arena_pdirty(arena_ind), 0, "Unexpected dirty pages"); in TEST_BEGIN()
567 assert_zu_eq(get_arena_pmuzzy(arena_ind), 0, "Unexpected muzzy pages"); in TEST_BEGIN()
574 size_t pdirty_prev = get_arena_pdirty(arena_ind); in TEST_BEGIN()
575 size_t pmuzzy_prev = get_arena_pmuzzy(arena_ind); in TEST_BEGIN()
580 size_t pdirty = get_arena_pdirty(arena_ind); in TEST_BEGIN()
581 size_t pmuzzy = get_arena_pmuzzy(arena_ind); in TEST_BEGIN()
587 do_arena_destroy(arena_ind); in TEST_BEGIN()