| /xnu-8020.140.41/tests/ |
| H A D | test_sysctl_kern_procargs_25397314.m | 61 T_LOG("procargs data should be %lu bytes", preflightSize); 72 T_ASSERT_LE(bufferSize, allocSize, "returned buffer size should be less than allocated size"); 75 /* Allocated buffer is larger than what kernel wrote, so it should match preflightSize */ 76 T_ASSERT_EQ(bufferSize, preflightSize, "buffer size should be the same as preflight size"); 121 …T_ASSERT_EQ(type, KERN_PROCARGS, "Legacy executable path should only be present for KERN_PROCARGS"… 263 T_ASSERT_NOTNULL(procargs->executablePath, "executable path should be non-null"); 264 T_ASSERT_GT([procargs->executablePath length], 0, "executable path should not be empty"); 269 T_ASSERT_NOTNULL(procargs->executablePath, "executable path should be non-null"); 270 T_ASSERT_GT([procargs->executablePath length], 0, "executable path should not be empty"); 278 T_ASSERT_NOTNULL(procargs->executablePath, "executable path should be non-null"); [all …]
|
| H A D | stackshot_block_owner_14362384.m | 288 "Context should match unslid location of mutex in kernel memory"); 400 …T_EXPECT_EQ(context, unslid_krwlck_address, "Context should match unslid location of rwlock in ker… 528 …ret = pthread_create(&grabbing, NULL, kmutex_grabbing_thread, NULL); // thread should immediately … 541 T_EXPECT_EQ(len, 2, "There should only be two blocking threads"); 546 …T_EXPECT_EQ(curr->wait_type, kThreadWaitKernelMutex, "Wait type should match expected KernelMutex … 547 …T_EXPECT_EQ(curr->owner, thread_id, "Thread ID of blocking thread should match 'owner' field in st… 553 kmutex_action(KMUTEX_SYSCTL_SIGNAL); // waiting thread should now unblock. 576 …ret = pthread_create(&tid, NULL, sem_grabbing_thread, (void*)&sem); // thread should immediately b… 583 T_EXPECT_EQ(len, 1, "Only one blocking thread should exist"); 584 …T_EXPECT_EQ(waitinfo.wait_type, kThreadWaitSemaphore, "Wait type should match expected Semaphore v… [all …]
|
| H A D | stackshot_idle_25570396.m | 146 * shared semaphore. This should spin up plenty of threads! */ 187 while(spin_threads); // should now appear as non-idle in delta shot 194 * Where this is called, there should be NUMENQUEUES idle threads (thanks to warm_up_threadpool) 208 "Idle count of %d should match expected value of %d...", 211 "Non-idle count of %d should match expected value of %d...", 231 …delta_stackshot = take_stackshot(0, since_time); /* Threads should appear in delta stackshot as no… 269 spin_threads = 0; /* pthread-made thread should now exit */
|
| H A D | stackshot_tests.m | 477 …T_WITH_ERRNO; T_QUIET; T_ASSERT_NE(v, 0l, "getenv(%s) = \"%s\" should be a non-zero hex number", C… 478 …T_QUIET; T_ASSERT_EQ(*endptr, 0, "getenv(%s) = \"%s\" endptr \"%s\" should be empty", CACHEADDR_EN… 550 T_QUIET; T_ASSERT_EQ(!!WIFSIGNALED(status), 1, "waitpid status should be signalled"); 551 T_QUIET; T_ASSERT_EQ(WTERMSIG(status), SIGKILL, "waitpid status should be SIGKILLed"); 962 // should happen naturally in an optimized build as it is the only 1292 …// L0-L2 table and non-compressed L3 block entries should always have bit 1 set; assumes L0-L2 blo… 1296 } else { // should be a compressed PTE 1741 * receive the message from the client (which should copy the send once right into 2481 "SlidFirstMapping should match shared_cache_range"); 2497 …T_QUIET; T_ASSERT_NE(sharedregion_flags, 0ll, "one of the kTaskSharedRegion flags should be set on… [all …]
|
| /xnu-8020.140.41/tests/iokit/ |
| H A D | io_catalog_send_data.m | 116 T_EXPECT_MACH_SUCCESS(kret, "IOCatalogueSendData should " 119 /* this trick to build an entry by io_catalog_send_data should fail */ 122 "should fail as kIOReturnNotPrivileged in none-dev kernel without kernelmanagerd"); 126 "IOCatalogueSendData should return success with kernelmanagerd"); 129 "mismatched entry built by IOCatalogueSendData should not be opened");
|
| /xnu-8020.140.41/osfmk/mach/ |
| H A D | memory_object.defs | 105 * with the memory object is no longer usable - the pager should 113 * the specified data should be returned with at 116 * [Response should be upl commit over the specified range.] 134 * [response should be a upl_commit over the range specified] 152 * [response should be UPL commit over the specified range.] 164 * [Response should be memory_object_lock_request when 179 * [Response should be memory_object_synchronize_completed when 193 * [Response should be a release of the named reference when
|
| H A D | vfs_nspace.defs | 60 * nspace_resolve_path should not be moved even after it's not used, it's going
|
| /xnu-8020.140.41/doc/allocators/ |
| H A D | api-basics.md | 21 clients should find sufficient, 54 for the buffer cache, and most client should either use `Z_NOWAIT` or `Z_WAITOK`. 119 are also provided but should typically rarely be used. 126 - types should be small enough to fit in the zone allocator: 130 - for union types, data/pointer overlaps should be avoided if possible. 131 when this isn't possible, a zone should be considered. 143 - variable sized allocations should have a single owner and not be refcounted; 189 <td>This should be used when the allocated type contains no kernel pointer only</td> 267 This section covers how typed allocators should be adopted to use 272 should probably use OSObject as a base class. C++ operators [all …]
|
| H A D | read-only.md | 51 To make best use of the Read-Only Allocator, some simple advice should be 54 1. Pointers to read-only elements should either reside in read-only memory 57 read-only element should include a pointer back to the read/write side (a
|
| /xnu-8020.140.41/iokit/DriverKit/ |
| H A D | IOWorkGroup.iig | 49 …* The application will have to first create an workgroup object. The application then should copy … 60 …* Once the workgroup port has been sent to the driver, the driver should be notified with a user-d… 87 * @brief Set the port for this workgroup. This should not be called directly. 98 …* @discussion Join() and Leave() require the caller to pass a token. This token should be allocat… 127 …* IOWorkGroup. This method should be called after the client has configured the event…
|
| H A D | OSAction.iig | 68 …* a TYPE attribute, so there should not be any need to directly call OSAction::Create… 131 * @discussion This call should be made before any possible invocation of the action. 142 * There should be no outstanding invocations of the action when EndWait is called, 143 * if necessary the action should be canceled before calling EndWait(). 159 * @param deadline Pass the time the wait should timeout, or zero for no timeout.
|
| H A D | IOService.iig | 103 …* @param provider The IOService provider for the match. This should be OSRequiredCast to the… 114 …* Stop should quiesce all activity and when complete, pass the call to super. After c… 172 * @param queue Returned, retained queue or NULL. The caller should release this queue. 192 …operties Returned, retained dictionary of properties or NULL. The caller should release this dicti… 206 …* @param property Returned, retained property object or NULL. The caller should release this… 228 …* @discussion DriverKit notifies of changes in power of a provider. The driver should make itself… 254 … IOServiceOpen() call. The type parameter of that call is passed here. The driver should respond to 268 * The plist should contain the following IOKit matching keys: 301 …roperties Returned, retained array of dictionaries of properties or NULL. The caller should release
|
| H A D | IOEventLink.iig | 76 …* Once the remote eventlink port has been sent to the driver, the driver should be notified with a… 77 …* or other existing signaling mechanism. The driver should handle this by activating the IOEventLi… 179 * @discussion The eventlink should be activated before this call. This is not real-time safe. 196 …* IOEventLink. This method should be called after the client has configured the event…
|
| H A D | IODMACommand.iig | 82 * The IODMACommand instance represents the mapping and should be kept prepared for the 109 * It should be retained until the map is no longer required. 158 * @param memory Returned IOMemoryDescriptor of the preparation. This should be
|
| H A D | IOUserClient.iig | 93 * This field should be set by the driver to an OSData object it created with 100 …* It is only retained during the invocation of ExternalMethod and should be retained … 235 …* CopyClientMemoryForType() with a given type, should return the same IOMemoryDescrip…
|
| /xnu-8020.140.41/makedefs/ |
| H A D | MakeInc.dir | 18 # $(4) should be "1" if TARGET should be pinned to the per-arch 19 # build COMPONENT directory, or empty if it should recurse
|
| /xnu-8020.140.41/ |
| H A D | README.md | 13 …m other projects to avoid dependency cycles when building. These headers should be regularly synce… 192 The directory containing the header file should have a Makefile that 193 creates the list of files that should be installed at different locations. 237 setting, respectively. If your header is architecture-specific, then you should 239 should be installed for all architectures, then you should use a 376 implements a feature, you should define a new feature in `config/MASTER`
|
| /xnu-8020.140.41/bsd/man/man2/ |
| H A D | getdirentriesattr.2 | 84 For maximum compatibility, client programs should use high-level APIs 146 You should initialise this variable to be the number of directory entries for which 164 you should use 253 you should be careful to support the behaviour specified by this document. 264 should be used to get the attributes for the mount point.
|
| /xnu-8020.140.41/config/ |
| H A D | README.DEBUG-kernel.txt | 36 <arch> should reflect the currently booted kernel architecture, either
|
| /xnu-8020.140.41/san/memory/ |
| H A D | kasan-blacklist | 1 # This file declares the list of source files that should be exempt from
|
| /xnu-8020.140.41/doc/ |
| H A D | atomics.md | 122 `__sync_*`, `__c11_*` and `__atomic_*` compiler builtins should not be used. 135 The *consume* memory ordering should not be used 140 and these functions should not be used in new code. 298 before the loop should be used in this way: 399 that should pair with a store or rmw with release semantics or stronger
|
| H A D | sched_clutch_edge.md | 22 The highest level is the scheduling bucket level which decides which class of threads should be pic… 26 …s an Earliest Deadline First (EDF) algorithm to decide which root bucket should be selected next f… 66 …thread group” level which decides which thread group within a QoS bucket should be selected next f… 70 …ts a variation of the FreeBSD ULE scheduler to decide which thread group should be selected next f… 94 At the lowest level the scheduler decides which thread within a clutch bucket should be selected ne… 98 …ch timesharing algorithm to decide which thread within the clutch bucket should be selected next f… 171 * The system should be **compact**. Limit small-width workload threads to a single cluster as much … 179 * **Migrate "down" only**. Threads should migrate to clusters where execution efficiency won’t be s… 217 …`sce_migration_weight` is a measure of the scheduling latency delta that should exist between the … 249 …ration is to find other threads running/runnable in other clusters which should be executed here. …
|
| /xnu-8020.140.41/tools/lldbmacros/ |
| H A D | README.md | 273 Q. I am new to python. I get an error message that I do not understand. what should I do? 297 …b --core corefile and I got RuntimeError: Unable to find lldb thread for tid=XYZ. What should I do? 335 * All Classes and functions should have a doc string describing what the function does 348 …* A Class or Function should always start with CAPITAL letter and be CamelCase. If a function is f… 350 * Function params should always be lower_case and be word separated with '_' 352 * A local variable inside a function should be lower_case and separated with '_' 354 * A variable for internal use in object should start with '_'.
|
| /xnu-8020.140.41/san/coverage/ |
| H A D | kcov-blacklist-x86_64 | 37 # Nothing below is needed before kasan init, so most of it should go away.
|
| /xnu-8020.140.41/libsyscall/mach/ |
| H A D | mach_eventlink.defs | 32 * Libsyscall mach_eventlink.defs should include mach/mach_eventlink.defs exported by
|