| /xnu-11215/osfmk/kern/ |
| H A D | stack.c | 152 if (stack != 0) { in stack_alloc_internal() 165 if (stack == 0) { in stack_alloc_internal() 181 stack += PAGE_SIZE; in stack_alloc_internal() 183 return stack; in stack_alloc_internal() 212 assert(stack); in stack_free() 276 stack = cache->free; in stack_alloc_try() 277 if (stack != 0) { in stack_alloc_try() 284 if (stack != 0) { in stack_alloc_try() 293 if (stack != 0 || (stack = thread->reserved_stack) != 0) { in stack_alloc_try() 339 stack, in stack_collect() [all …]
|
| H A D | zalloc.h | 2078 zstack_t *stack, 2088 zstack_t *stack); 2097 zstack_count(zstack_t stack) in zstack_count() argument 2099 return stack.z_count; in zstack_count() 2109 zstack_empty(zstack_t stack) in zstack_empty() argument 2111 return zstack_count(stack) == 0; in zstack_empty() 2117 zstack_t stack = *stackp; in zstack_load_and_erase() local 2120 return stack; in zstack_load_and_erase() 2172 zstack_t stack); 2193 zstack_t stack); [all …]
|
| H A D | exclaves_panic.c | 241 ex_thread->thread.stack.start, ex_thread->thread.stack.size, in exclaves_append_panic_addl_info() 242 ex_thread->thread.stack.call_base, ex_thread->thread.registers.lr, in exclaves_append_panic_addl_info()
|
| /xnu-11215/osfmk/conf/ |
| H A D | Makefile.x86_64 | 18 WKdmDecompress_new.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG) 19 WKdmData_new.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG) 20 hibernate_restore.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG) 21 bcopy.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG) 22 bzero.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG)
|
| H A D | Makefile.arm64 | 36 $(1)_CFLAGS_ADD += -fno-stack-protector -fno-stack-check
|
| /xnu-11215/bsd/dev/i386/ |
| H A D | sdt_x86.c | 42 sdt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t eax) in sdt_invop() argument 49 x86_saved_state64_t *regs = (x86_saved_state64_t *)stack; in sdt_invop() 73 uintptr_t *stack; in sdt_getarg() local 112 stack = (uintptr_t *)(void*)&saved_state->rdi; in sdt_getarg() 115 stack = (uintptr_t *)&fp[0]; /* Find marshalled in sdt_getarg() 143 stack = (uintptr_t *)&fp[1]; /* Find marshalled arguments */ in sdt_getarg() 148 val = (uint64_t)(*(((uintptr_t *)stack) + argno)); in sdt_getarg()
|
| H A D | fasttrap_isa.c | 226 user_addr_t stack; in fasttrap_anarg() local 235 stack = regs64->isf.rsp + sizeof(uint64_t) * (argno - 6 + shift); in fasttrap_anarg() 237 value = dtrace_fuword64(stack); in fasttrap_anarg() 240 uint32_t *stack = (uint32_t *)(uintptr_t)(regs32->uesp); in fasttrap_anarg() local 785 user_addr_t stack = (user_addr_t)regs64->isf.rsp; in fasttrap_usdt_args64() local 794 fasttrap_fuword64_noerr(stack + (x * sizeof(uint64_t)), &argv[i]); in fasttrap_usdt_args64() 808 uint32_t *stack = (uint32_t *)(uintptr_t)(regs32->uesp); in fasttrap_usdt_args32() local 1024 uint32_t *stack = (uint32_t *)(uintptr_t)(regs32->uesp); in fasttrap_pid_probe32() local 1033 fasttrap_fuword32_noerr((user_addr_t)(unsigned long)&stack[0], &s0); in fasttrap_pid_probe32() 1034 fasttrap_fuword32_noerr((user_addr_t)(unsigned long)&stack[1], &s1); in fasttrap_pid_probe32() [all …]
|
| H A D | dtrace_isa.c | 911 uintptr_t *stack; in dtrace_getarg() local 951 stack = (uintptr_t *)(void*)&saved_state->rdi; in dtrace_getarg() 954 stack = (uintptr_t *)&fp[1]; /* Find marshalled in dtrace_getarg() 982 stack = (uintptr_t *)&fp[1]; /* Find marshalled arguments */ in dtrace_getarg() 985 if (dtrace_canload((uint64_t)(stack + arg), sizeof(uint64_t), in dtrace_getarg() 988 val = dtrace_load64((uint64_t)(stack + arg)); in dtrace_getarg()
|
| /xnu-11215/bsd/dev/arm64/ |
| H A D | sdt_arm.c | 42 sdt_invop(__unused uintptr_t addr, __unused uintptr_t *stack, __unused uintptr_t eax) in sdt_invop() argument 49 struct arm_saved_state* regs = (struct arm_saved_state*) stack; in sdt_invop() 74 uintptr_t *stack; in sdt_getarg() local 117 stack = (uintptr_t *)&saved_state->x[0]; in sdt_getarg() 121 stack = (uintptr_t *)&fp[0]; /* Find marshalled arguments */ in sdt_getarg() 148 stack = (uintptr_t *)&fp[1]; /* Find marshalled arguments */ in sdt_getarg() 153 val = (uint64_t)(*(((uintptr_t *)stack) + argno)); in sdt_getarg()
|
| H A D | dtrace_isa.c | 569 uintptr_t *stack; in dtrace_getarg() local 605 stack = (uintptr_t*) &saved_state->x[0]; in dtrace_getarg() 609 stack = (uintptr_t*) &fp[1]; in dtrace_getarg() 637 stack = (uintptr_t*) &fp[1]; /* Find marshalled arguments */ in dtrace_getarg() 640 if (dtrace_canload((uint64_t)(stack + arg), sizeof(uint64_t), in dtrace_getarg() 643 val = dtrace_load64((uint64_t)(stack + arg)); in dtrace_getarg()
|
| /xnu-11215/iokit/conf/ |
| H A D | Makefile.x86_64 | 17 IOHibernateRestoreKernel.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check $(CFLAGS_NOLTO_FLAG)
|
| H A D | Makefile.arm64 | 21 IOHibernateRestoreKernel.o_CFLAGS_ADD += -fno-stack-protector -fno-stack-check
|
| /xnu-11215/tools/ |
| H A D | cred_dump_backtraces.c | 25 uint32_t stack[MAX_STACK_DEPTH]; member 73 printf("%p ", btp->stack[j]); in main()
|
| /xnu-11215/osfmk/arm64/ |
| H A D | pcb.c | 696 vm_offset_t stack; in machine_stack_detach() local 701 stack = thread->kernel_stack; in machine_stack_detach() 703 kcov_stksz_set_thread_stack(thread, stack); in machine_stack_detach() 708 return stack; in machine_stack_detach() 718 vm_offset_t stack) in machine_stack_attach() argument 731 thread->kernel_stack = stack; in machine_stack_attach() 780 vm_offset_t stack; in machine_stack_handoff() local 792 stack = machine_stack_detach(old); in machine_stack_handoff() 796 new->kernel_stack = stack; in machine_stack_handoff() 799 if (stack == old->reserved_stack) { in machine_stack_handoff() [all …]
|
| /xnu-11215/osfmk/i386/ |
| H A D | thread.h | 188 #define STACK_IKS(stack) \ argument 189 (&(((struct thread_kernel_state *)((stack) + kernel_stack_size)) - 1)->machine)
|
| H A D | pcb.c | 2114 vm_offset_t stack; in machine_stack_detach() local 2121 stack = thread->kernel_stack; in machine_stack_detach() 2127 return stack; in machine_stack_detach() 2137 vm_offset_t stack) in machine_stack_attach() argument 2145 assert(stack); in machine_stack_attach() 2146 thread->kernel_stack = stack; in machine_stack_attach() 2152 statep = STACK_IKS(stack); in machine_stack_attach() 2175 vm_offset_t stack; in machine_stack_handoff() local 2188 stack = old->kernel_stack; in machine_stack_handoff() 2192 new->reserved_stack = stack; in machine_stack_handoff() [all …]
|
| /xnu-11215/tests/ |
| H A D | stackshot_accuracy.m | 237 "found kernel stack frames"); 252 T_LOG("NOTE: We were not able to fault the stack's pages back in"); 326 /* check that the stackshot has the stack frames */ 375 /* check that the stackshot has the stack frames */ 458 /* check that the stackshot has the stack frames */ 502 T_LOG("child stack: [0x%p - 0x%p]: 0x%zu bytes", (void *)child_stack, 506 …SS(madvise(child_stack, child_stacklen, MADV_PAGEOUT), "paged out via madvise(2) the child stack"); 511 /* check that the stackshot has the stack frames */ 558 /* check that the stackshot has the stack frames */
|
| /xnu-11215/bsd/dev/dtrace/scripts/ |
| H A D | suspicious_task_vm_info_count.d | 10 stack();
|
| H A D | vm_map_delete_permanent.d | 12 stack();
|
| H A D | log_unnest_badness.d | 11 stack();
|
| H A D | vm_map_delete_permanent_prot_none.d | 12 stack();
|
| H A D | vm_map_delete_permanent_deny.d | 12 stack();
|
| /xnu-11215/libsyscall/ |
| H A D | Libsyscall.xcconfig | 26 OTHER_CFLAGS = -fdollars-in-identifiers -no-cpp-precomp -fno-common -fno-stack-protector -fno-stack…
|
| /xnu-11215/san/coverage/ |
| H A D | kcov-blacklist-arm64 | 6 # These use a local variable to work out which stack we're on, but can end up with
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IODeviceTreeSupport.cpp | 121 OSArray * stack; in IODeviceTreeAlloc() local 198 stack = OSArray::withObjects((const OSObject **) &parent, 1, 10 ); in IODeviceTreeAlloc() 202 parent = (IORegistryEntry *)stack->getObject( stack->getCount() - 1); in IODeviceTreeAlloc() 204 stack->removeObject( stack->getCount() - 1); in IODeviceTreeAlloc() 230 stack->setObject( parent); in IODeviceTreeAlloc() 236 } while (stack->getCount() in IODeviceTreeAlloc() 239 stack->release(); in IODeviceTreeAlloc()
|