| /xnu-11215/tests/ |
| H A D | kqueue_timer_tests.c | 75 expected, elapsed_usecs); in do_simple_kevent() 88 uint64_t nowus, expected, timescale = 0; in test_absolute_kevent() local 124 expected = (uint64_t)time * timescale; in test_absolute_kevent() 130 expected = 0; in test_absolute_kevent() 135 ret = do_simple_kevent(&kev, expected); in test_absolute_kevent() 150 uint64_t expected = 0; in test_oneshot_kevent() local 166 expected = (uint64_t)time; in test_oneshot_kevent() 170 expected = (uint64_t)time / 1000; in test_oneshot_kevent() 174 expected = (uint64_t)time * 1000; in test_oneshot_kevent() 185 expected = 0; in test_oneshot_kevent() [all …]
|
| H A D | stackshot_block_owner_14362384.m | 222 /* check to see that tid matches expected idle status */ 546 …T_EXPECT_EQ(curr->wait_type, kThreadWaitKernelMutex, "Wait type should match expected KernelMutex … 584 …T_EXPECT_EQ(waitinfo.wait_type, kThreadWaitSemaphore, "Wait type should match expected Semaphore v… 628 …T_EXPECT_EQ(waitinfo.wait_type, kThreadWaitPortReceive, "Wait type should match expected PortRecei… 640 …T_EXPECT_EQ(waitinfo.wait_type, kThreadWaitPortSend, "Wait type should match expected PortSend val… 673 …T_EXPECT_EQ(waitinfo.wait_type, kThreadWaitUserLock, "Wait type should match expected UserLock val… 719 …T_EXPECT_EQ(curr->wait_type, kThreadWaitKernelRWLockRead, "Wait type should match expected KRWLock… 771 "Wait type should match expected PThreadMutex value"); 807 "Wait type should match expected PThreadRWLockRead value"); 840 "Wait type should match expected PThreadCondVar value"); [all …]
|
| H A D | disk_mount_conditioner.c | 19 static uint64_t time_for_read(int fd, const char *expected); 487 time_for_read(int fd, const char *expected) in time_for_read() argument 503 err = memcmp(buf, expected, sizeof(buf)); in time_for_read()
|
| H A D | stackshot_idle_25570396.m | 136 /* check to see that tid matches expected idle status */ 208 "Idle count of %d should match expected value of %d...", 211 "Non-idle count of %d should match expected value of %d...",
|
| H A D | stackshot_tests.m | 1476 "check that each element of the pagetable dump is the expected size"); 1843 /* not expected to execute as parent will SIGKILL client... */ 2133 /* not expected to execute as parent will SIGKILL client */ 2856 T_QUIET; T_ASSERT_NOTNULL(tid_num, "cseg's expected thread id provided"); 2878 T_QUIET; T_ASSERT_TRUE(ctx != nil, "expected pid"); 2880 T_QUIET; T_ASSERT_GT(throttled_service_ctx, 0, "expected pid greater than zero"); 2883 T_QUIET; T_ASSERT_TRUE(throttled != nil, "expected flag value"); 2914 T_QUIET; T_ASSERT_NOTNULL(asyncstack_stack, "asyncstack expected stack provided"); 2978 T_ASSERT_EQ((uint64_t)zs.total_out, totalin, "expected number of bytes inflated"); 3413 "actual async_stack count == expected async_stack count"); [all …]
|
| H A D | net_bridge.c | 1787 u_int expected = 0; in mac_nat_check_received_count() local 1790 expected = scan->num_addrs; in mac_nat_check_received_count() 1793 T_ASSERT_EQ(scan->test_count, expected, in mac_nat_check_received_count() 1797 expected, scan->test_count); in mac_nat_check_received_count() 3411 verify_lro_capability(const char * if_name, bool expected) in verify_lro_capability() argument 3423 T_ASSERT_EQ(expected, lro_enabled, "%s %s expected %s", in verify_lro_capability() 3424 __func__, if_name, expected ? "enabled" : "disabled"); in verify_lro_capability()
|
| /xnu-11215/tests/intrusive_shared_ptr_src/ |
| H A D | abi.caller.raw.cpp | 15 T* expected = &obj; variable 16 T* result = return_shared_as_raw(expected); 17 CHECK(result == expected);
|
| H A D | abi.caller.smart.cpp | 22 T* expected = &obj; variable 23 SharedPtr<T> result = return_raw_as_shared(expected); 24 CHECK(result.get() == expected);
|
| /xnu-11215/libkern/os/ |
| H A D | log.c | 1175 size_t n##expected = (e)->stat; \ 1176 cmp(n##stat, n##expected, (msg), (test), n##expected); \ 1271 log_stats_check_errors(before, after, expected, test); in log_stats_check() 1347 log_stats_t expected = { .total = 2, .saved = 2 }; in test_printf() local 1459 log_stats_t expected = { in test_os_log() local 1467 log_stats_check(&before, &after, &expected, "test_oslog_info"); in test_os_log() 1470 log_stats_check(&before, &after, &expected, "test_oslog_debug"); in test_os_log() 1473 log_stats_check(&before, &after, &expected, "test_oslog_error"); in test_os_log() 1479 log_stats_check(&before, &after, &expected, "test_oslog_fault"); in test_os_log() 1505 log_stats_t after, before, expected = {}; in test_os_log_parallel() local [all …]
|
| /xnu-11215/tests/workq/ |
| H A D | workq_sigmask.c | 39 const sigset_t expected = 0; variable 59 T_ASSERT_EQ(omask & mask, expected, "Is the mask right?"); 71 T_ASSERT_EQ(omask & mask, expected, "Was mask preserved across park?");
|
| /xnu-11215/EXTERNAL_HEADERS/ |
| H A D | stdatomic.h | 162 … atomic_compare_exchange_strong(object, expected, desired) __c11_atomic_compare_exchange_strong(ob… argument 165 …ine atomic_compare_exchange_weak(object, expected, desired) __c11_atomic_compare_exchange_weak(obj… argument
|
| /xnu-11215/tools/lldbmacros/tests/lldb_tests/ |
| H A D | test_examples.py | 93 expected = ( 100 self.assertEqual(stdout.getvalue(), expected)
|
| /xnu-11215/config/ |
| H A D | Kasan_disabled.exports | 1 # The KASan kext is expected to exist for both KASan and non-KASan configurations,
|
| /xnu-11215/tests/vm/ |
| H A D | vm_reclaim.c | 151 check_buffer(mach_vm_address_t addr, size_t size, unsigned char expected) in check_buffer() argument 155 if (buffer[i] != expected) { in check_buffer() 180 assert_buffer_has_changed_and_crash(mach_vm_address_t addr, size_t size, unsigned char expected) in assert_buffer_has_changed_and_crash() argument 191 bool changed = !check_buffer(addr, size, expected); in assert_buffer_has_changed_and_crash()
|
| H A D | test_vm_no_pager.m | 150 T_PASS("Found expected crash triage string in corpse kcdata:\n`%s`", kt.triage_string1); 167 T_SKIP("Didn't find expected crash string.\nExpected: `%s`", current_expected_triage_string);
|
| H A D | memorystatus_freeze_test.c | 1242 verify_proc_frozen_state(pid_t pid, bool expected) argument 1248 if (is_frozen != expected) { 1249 …g. Expected %d, got %d. Skip reason: %d. Jetsam band: %d", entry->name, expected, is_frozen, entry… 1251 T_ASSERT_EQ(is_frozen, expected, "%s frozen state", entry->name);
|
| /xnu-11215/doc/primitives/ |
| H A D | atomics.md | 224 return false/0 if the compare exchange failed, and true/1 if the expected 227 1. `os_atomic_cmpxchg(address, expected, new_value, mem_order)` which 229 is equal to `expected`. 231 2. `os_atomic_cmpxchgv(address, expected, new_value, orig_value, mem_order)` 235 will always be `expected`, however in case of failure it will be filled with 343 annotations of when the dependencies are expected:
|
| /xnu-11215/osfmk/kern/ |
| H A D | lock_mtx.c | 195 __lck_mtx_preemption_disabled_panic(lck_mtx_t *lck, int expected) in __lck_mtx_preemption_disabled_panic() argument 198 lck, get_preemption_level() - expected); in __lck_mtx_preemption_disabled_panic() 214 lck_mtx_check_preemption(lck_mtx_t *lock, thread_t thread, int expected) in lck_mtx_check_preemption() argument 217 if (lock_preemption_level_for_thread(thread) == expected) { in lck_mtx_check_preemption() 238 __lck_mtx_preemption_disabled_panic(lock, expected); in lck_mtx_check_preemption()
|
| /xnu-11215/tests/ipc/ |
| H A D | mach_msg2.c | 219 mach_msg_size_t expected = rcv_configs[i].expected_aux_size; in do_msg_rcv() local 220 if (aux_size != expected) { in do_msg_rcv() 222 Expecting: %d", aux_size, i, expected); in do_msg_rcv()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOPerfControl.cpp | 34 IOPerfControlClient::IOPerfControlClientShared *expected = shared; in init() local 80 …if (!atomic_compare_exchange_strong_explicit(&gIOPerfControlClientShared, &expected, shared, memor… in init() 85 shared = expected; in init()
|
| /xnu-11215/doc/vm/ |
| H A D | sanitize.md | 15 value is within certain expected bounds or valid in the context of a specific 258 incorrect input values, to verify that the functions return the expected error 268 The expected error codes returned by these calls are stored in "golden" result 310 comparing them to the expected results from the golden files. Test results 391 modified or not modified as expected. This is not strictly related to 421 Step 10: update the "golden" files of expected results. This is done last
|
| /xnu-11215/osfmk/tests/ |
| H A D | README.md | 45 XNUPOST_TEST_CONFIG_TEST_PANIC(panic_test) // test that is expected to panic 73 …* **Note**: Please make sure your test does a proper cleanup of state. The kernel is expected to c…
|
| /xnu-11215/bsd/kern/ |
| H A D | mcache.c | 171 int64_t expected, int64_t got); 1725 int64_t expected, int64_t got) in mcache_audit_panic() argument 1732 offset, got, expected); in mcache_audit_panic() 1739 addr, offset, got, expected, mcache_dump_mca(buf, mca)); in mcache_audit_panic()
|
| H A D | sys_pipe.c | 264 static int choose_pipespace(unsigned long current, unsigned long expected); 314 choose_pipespace(unsigned long current, unsigned long expected) in choose_pipespace() argument 325 if (expected > current) { in choose_pipespace() 326 target = expected; in choose_pipespace()
|
| /xnu-11215/doc/allocators/ |
| H A D | api-basics.md | 48 When flags are expected, exactly one of `Z_WAITOK`, `Z_NOWAIT` or `Z_NOPAGEWAIT` 60 - `Z_ZERO` if zeroed memory is expected (nowadays most of the allocations will 145 The following rules are expected when dealing with variable sized allocations:
|