Searched refs:assert (Results 1 - 25 of 258) sorted by relevance

1234567891011

/darwin-on-arm/xnu/osfmk/libsa/
H A Ddebug.h1 #include <kern/assert.h
/darwin-on-arm/xnu/libkern/kxld/tests/
H A Dkxld_array_test.c28 #include <assert.h>
62 assert(rval == KERN_SUCCESS);
63 assert(array.nitems == titems);
68 assert(item);
69 assert(item == kxld_array_get_slot(&array, idx));
73 assert(item);
74 assert(item == kxld_array_get_slot(&array, idx));
78 assert(!item);
82 assert(item == kxld_array_get_slot(&array, idx));
88 assert(rva
[all...]
H A Dkxld_dict_test.c28 #include <assert.h>
61 assert(result == KERN_SUCCESS);
63 assert(size == 0);
67 assert(b == NULL);
71 assert(result == KERN_SUCCESS);
73 assert(b && *(int*)b == a1);
75 assert(size == 1);
79 assert(result == KERN_SUCCESS);
81 assert(b && *(int*)b == a2);
83 assert(siz
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Dassert.h62 /* assert.h 4.2 85/01/21 */
86 #undef assert macro
88 #define assert(ex) \ macro
90 #define assert_static(x) assert(x)
96 #define assert(ex) ((void)0)
H A Daudit_sessionport.c77 assert(ip_active(port) && IKOT_AU_SESSIONPORT == ip_kotype(port));
130 assert(ip_active(port));
167 assert(IKOT_AU_SESSIONPORT == ip_kotype(port));
169 assert(ip_active(port));
171 assert(NULL != port_aia_p);
204 assert (ip_active(port));
205 assert(IKOT_AU_SESSIONPORT == ip_kotype(port));
/darwin-on-arm/xnu/osfmk/ipc/
H A Dipc_right.c77 #include <kern/assert.h>
111 assert(space != IS_NULL);
153 assert(space != IS_NULL);
200 assert(is_active(space));
201 assert(io_otype(object) == IOT_PORT);
214 assert(name != MACH_PORT_NULL);
218 assert(entry != IE_NULL);
219 assert(entry->ie_bits & MACH_PORT_TYPE_RECEIVE);
220 assert(port == (ipc_port_t) entry->ie_object);
228 assert((entr
[all...]
H A Dipc_hash.c210 assert(obj != IO_NULL);
224 assert(index < size);
258 assert(index != 0);
259 assert(obj != IO_NULL);
263 assert(entry == &table[index]);
264 assert(entry->ie_object == obj);
298 assert(index != MACH_PORT_NULL);
299 assert(obj != IO_NULL);
303 assert(entry == &table[index]);
304 assert(entr
[all...]
H A Dipc_entry.c70 #include <kern/assert.h>
100 assert(is_active(space));
114 assert((entry == IE_NULL) || IE_BITS_TYPE(entry->ie_bits));
140 assert(is_active(space));
149 assert(first_free < space->is_table_size);
173 assert(MACH_PORT_VALID(new_name));
177 assert(free_entry->ie_object == IO_NULL);
248 assert(MACH_PORT_VALID(name));
278 assert(!IE_BITS_TYPE(entry->ie_bits));
279 assert(!IE_BITS_GE
[all...]
H A Dipc_object.c163 assert(object != IO_NULL);
217 assert(object != IO_NULL);
222 assert(object != IO_NULL);
258 assert(entry->ie_object == IO_NULL);
296 assert(entry->ie_object == IO_NULL);
331 assert(otype < IOT_NUMBER);
332 assert((type & MACH_PORT_TYPE_ALL_RIGHTS) == type);
333 assert(type != MACH_PORT_TYPE_NONE);
334 assert(urefs <= MACH_PORT_UREFS_MAX);
402 assert(otyp
[all...]
H A Dipc_port.c164 assert(ip_active(port));
165 assert(name != MACH_PORT_NULL);
166 assert(soright != IP_NULL);
178 assert(ipr->ipr_name == MACH_PORT_NULL);
221 assert(ip_active(port));
285 assert(nsize > osize);
332 assert(ip_active(port));
335 assert(table != IPR_NULL);
338 assert(ipr->ipr_name == name);
365 assert (tabl
[all...]
/darwin-on-arm/xnu/libkern/c++/
H A DOSBoolean.cpp56 assert(gOSBooleanTrue);
60 assert(false);
65 assert(gOSBooleanFalse);
69 assert(false);
82 assert(false);
/darwin-on-arm/xnu/osfmk/i386/
H A Dphys.c73 #include <kern/assert.h>
98 assert(pn != vm_page_fictitious_addr);
99 assert(pn != vm_page_guard_addr);
113 assert(pn != vm_page_fictitious_addr);
114 assert(pn != vm_page_guard_addr);
115 assert(offset + len <= PAGE_SIZE);
132 assert(psrc != vm_page_fictitious_addr);
133 assert(pdst != vm_page_fictitious_addr);
134 assert(psrc != vm_page_guard_addr);
135 assert(pds
[all...]
/darwin-on-arm/xnu/iokit/IOKit/
H A Dassert.h43 #include <kern/assert.h>
/darwin-on-arm/xnu/libkern/libkern/c++/
H A DOSLib.h42 #include <kern/assert.h>
/darwin-on-arm/xnu/osfmk/arm/
H A Dpcb.c114 assert(curthr);
122 assert(curthr);
146 assert(thread != NULL);
147 assert(thread->machine.iss == NULL);
189 assert(datap != NULL);
207 assert(retval != NULL);
217 assert(new);
218 assert(old);
237 assert(new->reserved_stack);
288 assert(stac
[all...]
H A Dpmap_asid.c66 #include <kern/assert.h>
124 assert((sizeof(tpmap->pmap_asid_coherency_vector) >= real_ncpus) && (!(sizeof(tpmap->pmap_asid_coherency_vector) & 7)));
133 assert(cptr == &(current_thread()->map->pmap->pmap_asid_coherency_vector[ccpu]));
154 assert(ml_get_interrupts_enabled() == FALSE || get_preemption_level() != 0);
173 assert(nc >= real_ncpus);
213 assert(cur_refcount < PMAP_ASID_MAX_REFCOUNT);
226 assert(cur_min_index > 0 && cur_min_index < PMAP_ASID_MAX_ASID);
232 assert(old_count < PMAP_ASID_MAX_REFCOUNT);
242 assert(asid != PMAP_ASID_INVALID_ASID);
247 assert(asi
[all...]
/darwin-on-arm/xnu/osfmk/vm/
H A Dvm_purgeable.c79 assert(queue->token_q_unripe);
81 assert(token == queue->token_q_unripe);
87 assert(queue->token_q_tail == token);
94 assert(queue->token_q_unripe == unripe);
95 assert(token_cnt == queue->debug_count_tokens);
101 assert(our_inactive_count >= 0);
102 assert((uint32_t) our_inactive_count == vm_page_inactive_count - vm_page_cleaned_count);
187 assert (token_init_idx < token_q_max_cnt); /* We must have a free token now */
203 assert (token);
211 assert(page
[all...]
H A Dvm_external.c71 #include <kern/assert.h>
139 assert((vm_size_t) bytes == bytes);
142 assert((size_t) bytes == bytes);
165 assert((vm_size_t) bytes == bytes);
209 assert((size_t) bytes == bytes);
221 assert(new_size >= old_size);
248 assert (map != VM_EXTERNAL_NULL);
H A Dvm_object.c81 #include <kern/assert.h>
845 assert(object->ref_count > 0);
868 assert(object->ref_count > 0);
925 assert(! object->can_persist);
981 assert(object->shadow == VM_OBJECT_NULL);
1087 assert(! retry_cache_trim);
1386 assert(!p->pageout_queue);
1395 assert(p->pageq.next == NULL && p->pageq.prev == NULL);
1516 assert(object->pager_initialized);
1517 assert(objec
[all...]
/darwin-on-arm/xnu/osfmk/arm64/
H A Dthread_initialize.c96 assert(curthr);
105 assert(curthr);
127 assert(thread != NULL);
128 assert(thread->machine.iss == NULL);
169 assert(datap != NULL);
185 assert(retval != NULL);
198 assert(new);
199 assert(old);
218 assert(new->reserved_stack);
255 assert(threa
[all...]
/darwin-on-arm/xnu/osfmk/default_pager/
H A Ddiag.h34 #define assert(cond) \ macro
38 #define assert(cond) do {} while(0) macro
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOLocks.cpp33 #include <IOKit/assert.h>
137 assert( lock->thread == 0 );
138 assert( lock->count == 0 );
153 assert( lock->thread == 0 );
154 assert( lock->count == 0 );
167 assert( lock->thread == IOThreadSelf() );
188 assert(lock->thread == IOThreadSelf());
196 assert(lock->thread == 0);
197 assert(lock->count == 0);
210 assert(loc
[all...]
/darwin-on-arm/xnu/tools/tests/zero-to-n/
H A Dzero-to-n.c52 #define assert(truth, label) do { if(!(truth)) { printf("Thread %p: failure on line %d\n", pthread_self(), __LINE__); goto label; } } while (0) macro
167 assert(res == 0, fail);
176 assert(res == 0, fail);
272 assert(res == 0, fail);
305 assert(res == KERN_SUCCESS, fail);
316 assert(res == 0, fail);
323 assert(res == 0, fail);
329 assert(res == 0, fail);
340 assert(res == 0, fail);
447 assert(thread
[all...]
/darwin-on-arm/xnu/osfmk/pmc/
H A Dpmc.c60 #define PMC_SPIN_TIMEOUT_US 10 /* Time in microseconds before the spin causes an assert */
244 assert(pmc_lock_attr);
247 assert(pmc_lock_grp_attr);
250 assert(pmc_lock_grp);
268 assert(perf_small_zone);
274 assert(perf_big_zone);
284 assert(perf_monitors_queue);
289 assert(perf_counters_queue);
294 assert(system_reservations);
299 assert(task_reservation
[all...]
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dpipes_tests.c259 #define assert(condition, exit_status, ...) \ macro
271 assert(sigaction((signal), &_act, NULL) == 0, 1, \
402 assert(!condition, 1, "%s: %s error: %s.", progname, culprit,
619 assert(retval == m->chunk_size, 1, "Pipe read returned different amount of numbe");
639 assert(retval == m->chunk_size, 1, "Pipe write failed");
663 assert(thread_ret1 == 0, 1, "Reader Thread Failed");
664 assert(thread_ret2 == 0, 1, "Writer Thread Failed");
710 assert(retval == 1, 1, "Pipe write failed");
751 assert(pipesize_blocks[iter] == pipe_write_data(p, &data[0], pipesize_blocks[iter] ), 1, "expansion write failed");
752 assert(pipesize_block
[all...]

Completed in 83 milliseconds

1234567891011