Lines Matching refs:allocated
17 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
18 assert_se(CPU_ISSET_S(0, c.allocated, c.set)); in TEST()
19 assert_se(CPU_COUNT_S(c.allocated, c.set) == 1); in TEST()
33 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
34 assert_se(CPU_ISSET_S(1, c.allocated, c.set)); in TEST()
35 assert_se(CPU_ISSET_S(2, c.allocated, c.set)); in TEST()
36 assert_se(CPU_ISSET_S(4, c.allocated, c.set)); in TEST()
37 assert_se(CPU_COUNT_S(c.allocated, c.set) == 3); in TEST()
50 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
51 assert_se(CPU_COUNT_S(c.allocated, c.set) == 8); in TEST()
53 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
55 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
68 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
69 assert_se(CPU_COUNT_S(c.allocated, c.set) == 4); in TEST()
71 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
83 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
84 assert_se(CPU_COUNT_S(c.allocated, c.set) == 8); in TEST()
86 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
88 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
96 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
97 assert_se(CPU_COUNT_S(c.allocated, c.set) == 9); in TEST()
99 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
101 assert_se(CPU_ISSET_S(63, c.allocated, c.set)); in TEST()
113 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
114 assert_se(CPU_COUNT_S(c.allocated, c.set) == 8); in TEST()
116 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
118 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
126 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
127 assert_se(CPU_COUNT_S(c.allocated, c.set) == 8); in TEST()
129 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
131 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
143 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
144 assert_se(CPU_COUNT_S(c.allocated, c.set) == 0); in TEST()
149 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
150 assert_se(CPU_COUNT_S(c.allocated, c.set) == 12); in TEST()
152 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
164 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
165 assert_se(CPU_COUNT_S(c.allocated, c.set) == 10); in TEST()
166 assert_se(CPU_ISSET_S(0, c.allocated, c.set)); in TEST()
167 assert_se(CPU_ISSET_S(2, c.allocated, c.set)); in TEST()
169 assert_se(CPU_ISSET_S(cpu, c.allocated, c.set)); in TEST()
182 assert_se(c.allocated == 0); in TEST()
187 assert_se(c.allocated == 0); in TEST()
192 assert_se(c.allocated == 0); in TEST()
197 assert_se(c.allocated == 0); in TEST()
201 assert_se(CPU_COUNT_S(c.allocated, c.set) == 192); in TEST()
217 assert_se(CPU_COUNT_S(c.allocated, c.set) == 2); in TEST()
222 assert_se(CPU_COUNT_S(c.allocated, c.set) == 3); in TEST()
228 assert_se(c.allocated == 0); in TEST()
239 assert_se(CPU_COUNT_S(c.allocated, c.set) == 104); in TEST()
242 size_t allocated; in TEST() local
248 assert_se(cpu_set_to_dbus(&c, &array, &allocated) == 0); in TEST()
250 assert_se(allocated == c.allocated); in TEST()
252 assert_se(allocated <= sizeof expected); in TEST()
253 assert_se(allocated >= DIV_ROUND_UP(201u, 8u)); /* We need at least 201 bits for our mask */ in TEST()
254 assert_se(memcmp(array, expected, allocated) == 0); in TEST()
256 assert_se(cpu_set_from_dbus(array, allocated, &c2) == 0); in TEST()
258 assert_se(c2.allocated == c.allocated); in TEST()
259 assert_se(memcmp(c.set, c2.set, c.allocated) == 0); in TEST()