Lines Matching refs:sz
6 size_t sz, allocated, active, resident, mapped; in TEST_BEGIN() local
9 sz = sizeof(cactive); in TEST_BEGIN()
10 assert_d_eq(mallctl("stats.cactive", &cactive, &sz, NULL, 0), expected, in TEST_BEGIN()
13 sz = sizeof(size_t); in TEST_BEGIN()
14 assert_d_eq(mallctl("stats.allocated", &allocated, &sz, NULL, 0), in TEST_BEGIN()
16 assert_d_eq(mallctl("stats.active", &active, &sz, NULL, 0), expected, in TEST_BEGIN()
18 assert_d_eq(mallctl("stats.resident", &resident, &sz, NULL, 0), in TEST_BEGIN()
20 assert_d_eq(mallctl("stats.mapped", &mapped, &sz, NULL, 0), expected, in TEST_BEGIN()
42 size_t sz; in TEST_BEGIN() local
51 sz = sizeof(size_t); in TEST_BEGIN()
52 assert_d_eq(mallctl("stats.arenas.0.huge.allocated", &allocated, &sz, in TEST_BEGIN()
54 sz = sizeof(uint64_t); in TEST_BEGIN()
55 assert_d_eq(mallctl("stats.arenas.0.huge.nmalloc", &nmalloc, &sz, NULL, in TEST_BEGIN()
57 assert_d_eq(mallctl("stats.arenas.0.huge.ndalloc", &ndalloc, &sz, NULL, in TEST_BEGIN()
59 assert_d_eq(mallctl("stats.arenas.0.huge.nrequests", &nrequests, &sz, in TEST_BEGIN()
80 size_t sz; in TEST_BEGIN() local
106 sz = sizeof(size_t); in TEST_BEGIN()
107 assert_d_eq(mallctl("stats.arenas.0.mapped", &mapped, &sz, NULL, 0), in TEST_BEGIN()
109 sz = sizeof(uint64_t); in TEST_BEGIN()
110 assert_d_eq(mallctl("stats.arenas.0.npurge", &npurge, &sz, NULL, 0), in TEST_BEGIN()
112 assert_d_eq(mallctl("stats.arenas.0.nmadvise", &nmadvise, &sz, NULL, 0), in TEST_BEGIN()
114 assert_d_eq(mallctl("stats.arenas.0.purged", &purged, &sz, NULL, 0), in TEST_BEGIN()
146 size_t sz, allocated; in TEST_BEGIN() local
165 sz = sizeof(size_t); in TEST_BEGIN()
166 assert_d_eq(mallctl("stats.arenas.0.small.allocated", &allocated, &sz, in TEST_BEGIN()
168 sz = sizeof(uint64_t); in TEST_BEGIN()
169 assert_d_eq(mallctl("stats.arenas.0.small.nmalloc", &nmalloc, &sz, in TEST_BEGIN()
171 assert_d_eq(mallctl("stats.arenas.0.small.ndalloc", &ndalloc, &sz, in TEST_BEGIN()
173 assert_d_eq(mallctl("stats.arenas.0.small.nrequests", &nrequests, &sz, in TEST_BEGIN()
195 size_t sz, allocated; in TEST_BEGIN() local
209 sz = sizeof(size_t); in TEST_BEGIN()
210 assert_d_eq(mallctl("stats.arenas.0.large.allocated", &allocated, &sz, in TEST_BEGIN()
212 sz = sizeof(uint64_t); in TEST_BEGIN()
213 assert_d_eq(mallctl("stats.arenas.0.large.nmalloc", &nmalloc, &sz, in TEST_BEGIN()
215 assert_d_eq(mallctl("stats.arenas.0.large.ndalloc", &ndalloc, &sz, in TEST_BEGIN()
217 assert_d_eq(mallctl("stats.arenas.0.large.nrequests", &nrequests, &sz, in TEST_BEGIN()
239 size_t sz, allocated; in TEST_BEGIN() local
253 sz = sizeof(size_t); in TEST_BEGIN()
254 assert_d_eq(mallctl("stats.arenas.0.huge.allocated", &allocated, &sz, in TEST_BEGIN()
256 sz = sizeof(uint64_t); in TEST_BEGIN()
257 assert_d_eq(mallctl("stats.arenas.0.huge.nmalloc", &nmalloc, &sz, in TEST_BEGIN()
259 assert_d_eq(mallctl("stats.arenas.0.huge.ndalloc", &ndalloc, &sz, in TEST_BEGIN()
279 size_t sz, curruns, curregs; in TEST_BEGIN() local
297 sz = sizeof(uint64_t); in TEST_BEGIN()
298 assert_d_eq(mallctl("stats.arenas.0.bins.0.nmalloc", &nmalloc, &sz, in TEST_BEGIN()
300 assert_d_eq(mallctl("stats.arenas.0.bins.0.ndalloc", &ndalloc, &sz, in TEST_BEGIN()
302 assert_d_eq(mallctl("stats.arenas.0.bins.0.nrequests", &nrequests, &sz, in TEST_BEGIN()
304 sz = sizeof(size_t); in TEST_BEGIN()
305 assert_d_eq(mallctl("stats.arenas.0.bins.0.curregs", &curregs, &sz, in TEST_BEGIN()
308 sz = sizeof(uint64_t); in TEST_BEGIN()
309 assert_d_eq(mallctl("stats.arenas.0.bins.0.nfills", &nfills, &sz, in TEST_BEGIN()
312 assert_d_eq(mallctl("stats.arenas.0.bins.0.nflushes", &nflushes, &sz, in TEST_BEGIN()
316 assert_d_eq(mallctl("stats.arenas.0.bins.0.nruns", &nruns, &sz, in TEST_BEGIN()
318 assert_d_eq(mallctl("stats.arenas.0.bins.0.nreruns", &nreruns, &sz, in TEST_BEGIN()
320 sz = sizeof(size_t); in TEST_BEGIN()
321 assert_d_eq(mallctl("stats.arenas.0.bins.0.curruns", &curruns, &sz, in TEST_BEGIN()
354 size_t curruns, sz; in TEST_BEGIN() local
367 sz = sizeof(uint64_t); in TEST_BEGIN()
368 assert_d_eq(mallctl("stats.arenas.0.lruns.0.nmalloc", &nmalloc, &sz, in TEST_BEGIN()
370 assert_d_eq(mallctl("stats.arenas.0.lruns.0.ndalloc", &ndalloc, &sz, in TEST_BEGIN()
372 assert_d_eq(mallctl("stats.arenas.0.lruns.0.nrequests", &nrequests, &sz, in TEST_BEGIN()
374 sz = sizeof(size_t); in TEST_BEGIN()
375 assert_d_eq(mallctl("stats.arenas.0.lruns.0.curruns", &curruns, &sz, in TEST_BEGIN()
398 size_t curhchunks, sz; in TEST_BEGIN() local
411 sz = sizeof(uint64_t); in TEST_BEGIN()
412 assert_d_eq(mallctl("stats.arenas.0.hchunks.0.nmalloc", &nmalloc, &sz, in TEST_BEGIN()
414 assert_d_eq(mallctl("stats.arenas.0.hchunks.0.ndalloc", &ndalloc, &sz, in TEST_BEGIN()
416 sz = sizeof(size_t); in TEST_BEGIN()
418 &sz, NULL, 0), expected, "Unexpected mallctl() result"); in TEST_BEGIN()