/external/linux-kselftest/tools/testing/selftests/powerpc/include/ |
D | fpu_asm.h | 10 #define PUSH_FPU(stack_size) \ argument 11 stfd f31,(stack_size + STACK_FRAME_MIN_SIZE)(%r1); \ 12 stfd f30,(stack_size + STACK_FRAME_MIN_SIZE - 8)(%r1); \ 13 stfd f29,(stack_size + STACK_FRAME_MIN_SIZE - 16)(%r1); \ 14 stfd f28,(stack_size + STACK_FRAME_MIN_SIZE - 24)(%r1); \ 15 stfd f27,(stack_size + STACK_FRAME_MIN_SIZE - 32)(%r1); \ 16 stfd f26,(stack_size + STACK_FRAME_MIN_SIZE - 40)(%r1); \ 17 stfd f25,(stack_size + STACK_FRAME_MIN_SIZE - 48)(%r1); \ 18 stfd f24,(stack_size + STACK_FRAME_MIN_SIZE - 56)(%r1); \ 19 stfd f23,(stack_size + STACK_FRAME_MIN_SIZE - 64)(%r1); \ [all …]
|
D | gpr_asm.h | 51 #define PUSH_NVREGS(stack_size) \ argument 52 __PUSH_NVREGS(stack_size + STACK_FRAME_MIN_SIZE) 55 #define PUSH_NVREGS_BELOW_FPU(stack_size) \ argument 56 __PUSH_NVREGS(stack_size + STACK_FRAME_MIN_SIZE - (18 * 8)) 58 #define POP_NVREGS(stack_size) \ argument 59 __POP_NVREGS(stack_size + STACK_FRAME_MIN_SIZE) 62 #define POP_NVREGS_BELOW_FPU(stack_size) \ argument 63 __POP_NVREGS(stack_size + STACK_FRAME_MIN_SIZE - (18 * 8))
|
/external/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap18.c | 86 static void *allocate_stack(size_t stack_size, size_t mapped_size) in allocate_stack() argument 90 long reserved_size = 256 * page_size + stack_size; in allocate_stack() 101 stack_bottom = start + reserved_size - stack_size; in allocate_stack() 106 mapped_size/page_size, stack_size/page_size); in allocate_stack() 151 static void grow_stack_success(size_t stack_size, size_t mapped_size) in grow_stack_success() argument 159 stack = allocate_stack(stack_size, mapped_size); in grow_stack_success() 160 grow_stack(stack, stack_size); in grow_stack_success() 175 static void grow_stack_fail(size_t stack_size, size_t mapped_size) in grow_stack_fail() argument 184 stack = allocate_stack(stack_size, mapped_size); in grow_stack_fail() 191 grow_stack(stack, stack_size); in grow_stack_fail() [all …]
|
/external/libchrome/base/containers/ |
D | stack_container_unittest.cc | 38 const int stack_size = 3; in TEST() local 39 StackVector<int, stack_size> vect; in TEST() 43 EXPECT_EQ(static_cast<size_t>(stack_size), vect.container().capacity()); in TEST() 44 for (int i = 0; i < stack_size; i++) { in TEST() 51 for (int i = 0; i < stack_size; i++) { in TEST() 52 vect.container().push_back(i + stack_size); in TEST() 58 for (int i = 0; i < stack_size * 2; i++) in TEST() 65 vect.container().resize(stack_size); in TEST() 66 vect.container().reserve(stack_size * 2); in TEST() 72 std::vector<int, StackAllocator<int, stack_size> > other(vect.container()); in TEST() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/ |
D | 7-1.c | 33 static size_t stack_size; variable 48 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 55 stack_size = PTHREAD_STACK_MIN; in main() 58 stack_size) != 0) { in main() 66 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() 73 stack_size = PTHREAD_STACK_MIN + OFFSET; in main() 75 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
|
D | 4-1.c | 35 static size_t stack_size; variable 69 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 76 stack_size = PTHREAD_STACK_MIN; in main() 79 stack_size) != 0) { in main() 86 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() 99 if (ssize != stack_size || saddr != stack_addr) { in main()
|
D | 6-1.c | 32 static size_t stack_size; variable 47 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 54 stack_size = STACKSIZE; in main() 57 stack_size) != 0) { in main() 64 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
D | stack_expansion_signal.c | 32 static int consume_stack(unsigned int stack_size, union pipe write_pipe) in consume_stack() argument 36 if ((stack_base_ptr - &stack_cur) < stack_size) in consume_stack() 37 return consume_stack(stack_size, write_pipe); in consume_stack() 50 static int child(unsigned int stack_size, union pipe write_pipe) in child() argument 63 FAIL_IF(consume_stack(stack_size, write_pipe)); in child() 66 stack_size, stack_base_ptr, stack_top_ptr, in child() 72 static int test_one_size(unsigned int stack_size) in test_one_size() argument 84 exit(child(stack_size, read_pipe)); in test_one_size()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/ |
D | 1-1.c | 34 size_t stack_size; in main() local 47 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 52 printf("stack_addr = %p, stack_size = %zu\n", stack_addr, stack_size); in main() 54 stack_size = PTHREAD_STACK_MIN; in main() 57 stack_size) != 0) { in main() 62 printf("stack_addr = %p, stack_size = %zu\n", stack_addr, stack_size); in main() 64 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
|
/external/coreboot/src/lib/ |
D | stack.c | 33 size_t stack_size = CONFIG_STACK_SIZE ? in checkstack() local 36 u32 *stack = (u32 *) (top_of_stack - stack_size); in checkstack() 42 core, stack, stack_size); in checkstack() 47 for (i = 1; i < stack_size/sizeof(stack[0]); i++) { in checkstack() 51 core, stack, &stack[stack_size/sizeof(stack[0])]); in checkstack() 54 (unsigned long)&stack[stack_size / sizeof(stack[0])] in checkstack()
|
/external/cronet/stable/base/profiler/ |
D | stack_sampler_android.cc | 34 size_t stack_size = PlatformThread::GetDefaultThreadStackSize(); in GetStackBufferSize() local 37 if (stack_size == 0 && pthread_attr_init(&attr) == 0) { in GetStackBufferSize() 38 if (pthread_attr_getstacksize(&attr, &stack_size) != 0) in GetStackBufferSize() 39 stack_size = 0; in GetStackBufferSize() 45 return stack_size > 0 ? stack_size : kDefaultStackLimit; in GetStackBufferSize()
|
D | stack_sampler_posix.cc | 60 size_t stack_size = PlatformThread::GetDefaultThreadStackSize(); in GetStackBufferSize() local 63 if (stack_size == 0 && pthread_attr_init(&attr) == 0) { in GetStackBufferSize() 64 if (pthread_attr_getstacksize(&attr, &stack_size) != 0) in GetStackBufferSize() 65 stack_size = 0; in GetStackBufferSize() 71 return stack_size > 0 ? stack_size : kDefaultStackLimit; in GetStackBufferSize()
|
/external/cronet/tot/base/profiler/ |
D | stack_sampler_android.cc | 34 size_t stack_size = PlatformThread::GetDefaultThreadStackSize(); in GetStackBufferSize() local 37 if (stack_size == 0 && pthread_attr_init(&attr) == 0) { in GetStackBufferSize() 38 if (pthread_attr_getstacksize(&attr, &stack_size) != 0) in GetStackBufferSize() 39 stack_size = 0; in GetStackBufferSize() 45 return stack_size > 0 ? stack_size : kDefaultStackLimit; in GetStackBufferSize()
|
D | stack_sampler_posix.cc | 60 size_t stack_size = PlatformThread::GetDefaultThreadStackSize(); in GetStackBufferSize() local 63 if (stack_size == 0 && pthread_attr_init(&attr) == 0) { in GetStackBufferSize() 64 if (pthread_attr_getstacksize(&attr, &stack_size) != 0) in GetStackBufferSize() 65 stack_size = 0; in GetStackBufferSize() 71 return stack_size > 0 ? stack_size : kDefaultStackLimit; in GetStackBufferSize()
|
/external/libchrome/base/threading/ |
D | platform_thread_posix.cc | 86 bool CreateThread(size_t stack_size, in CreateThread() argument 103 if (stack_size == 0) in CreateThread() 104 stack_size = base::GetDefaultThreadStackSize(attributes); in CreateThread() 106 if (stack_size > 0) in CreateThread() 107 pthread_attr_setstacksize(&attributes, stack_size); in CreateThread() 197 bool PlatformThread::CreateWithPriority(size_t stack_size, Delegate* delegate, in CreateWithPriority() argument 200 return CreateThread(stack_size, true /* joinable thread */, delegate, in CreateWithPriority() 205 bool PlatformThread::CreateNonJoinable(size_t stack_size, Delegate* delegate) { in CreateNonJoinable() argument 206 return CreateNonJoinableWithPriority(stack_size, delegate, in CreateNonJoinable() 211 bool PlatformThread::CreateNonJoinableWithPriority(size_t stack_size, in CreateNonJoinableWithPriority() argument [all …]
|
/external/ltp/lib/ |
D | cloner.c | 61 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument 66 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_() 79 stack += stack_size; in ltp_clone_() 89 size_t stack_size, void *stack) in ltp_clone() argument 91 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL); in ltp_clone() 95 size_t stack_size, void *stack, ...) in ltp_clone7() argument 107 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid); in ltp_clone7()
|
/external/cronet/tot/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/ |
D | platform_thread_win_for_testing.cc | 86 bool CreateThreadInternal(size_t stack_size, in CreateThreadInternal() argument 90 if (stack_size > 0) { in CreateThreadInternal() 108 stack_size = 1024 * 1024; in CreateThreadInternal() 110 stack_size = 512 * 1024; in CreateThreadInternal() 124 ::CreateThread(nullptr, stack_size, ThreadFunc, params, flags, nullptr); in CreateThreadInternal() 134 TerminateBecauseOutOfMemory(stack_size); in CreateThreadInternal() 190 bool PlatformThreadForTesting::Create(size_t stack_size, in Create() argument 194 return CreateThreadInternal(stack_size, delegate, thread_handle); in Create()
|
D | platform_thread_posix_for_testing.cc | 69 bool CreateThread(size_t stack_size, in CreateThread() argument 79 if (stack_size == 0) { in CreateThread() 80 stack_size = base::GetDefaultThreadStackSize(attributes); in CreateThread() 83 if (stack_size > 0) { in CreateThread() 84 pthread_attr_setstacksize(&attributes, stack_size); in CreateThread() 119 bool PlatformThreadForTesting::Create(size_t stack_size, in Create() argument 122 return CreateThread(stack_size, delegate, thread_handle); in Create()
|
/external/cronet/stable/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/threading/ |
D | platform_thread_win_for_testing.cc | 86 bool CreateThreadInternal(size_t stack_size, in CreateThreadInternal() argument 90 if (stack_size > 0) { in CreateThreadInternal() 108 stack_size = 1024 * 1024; in CreateThreadInternal() 110 stack_size = 512 * 1024; in CreateThreadInternal() 124 ::CreateThread(nullptr, stack_size, ThreadFunc, params, flags, nullptr); in CreateThreadInternal() 134 TerminateBecauseOutOfMemory(stack_size); in CreateThreadInternal() 190 bool PlatformThreadForTesting::Create(size_t stack_size, in Create() argument 194 return CreateThreadInternal(stack_size, delegate, thread_handle); in Create()
|
D | platform_thread_posix_for_testing.cc | 69 bool CreateThread(size_t stack_size, in CreateThread() argument 79 if (stack_size == 0) { in CreateThread() 80 stack_size = base::GetDefaultThreadStackSize(attributes); in CreateThread() 83 if (stack_size > 0) { in CreateThread() 84 pthread_attr_setstacksize(&attributes, stack_size); in CreateThread() 119 bool PlatformThreadForTesting::Create(size_t stack_size, in Create() argument 122 return CreateThread(stack_size, delegate, thread_handle); in Create()
|
/external/rust/android-crates-io/crates/rayon-core/src/ |
D | lib.rs | 195 stack_size: Option<usize>, field 243 stack_size: None, in default() 344 if let Some(size) = thread.stack_size() { in build_scoped() 345 builder = builder.stack_size(size); in build_scoped() 454 stack_size: self.stack_size, in spawn_handler() 591 self.stack_size in get_stack_size() 595 pub fn stack_size(mut self, stack_size: usize) -> Self { in stack_size() method 596 self.stack_size = Some(stack_size); in stack_size() 716 pub fn stack_size(mut self, stack_size: usize) -> Self { in stack_size() method 717 self.builder = self.builder.stack_size(stack_size); in stack_size() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/ |
D | 1-1.c | 33 size_t stack_size; in main() local 46 rc = pthread_attr_getstacksize(&attr, &stack_size); in main() 53 stack_size = PTHREAD_STACK_MIN; in main() 55 if (posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size) != 0) { in main() 62 rc = pthread_attr_setstacksize(&attr, stack_size); in main()
|
/external/trusty/lk/arch/arm/arm/ |
D | thread.c | 71 size_t stack_size = ARCH_DEFAULT_STACK_SIZE; in arch_init_thread_initialize() local 72 uint8_t *cpu_stack = abort_stack + cpu * stack_size; in arch_init_thread_initialize() 74 thread->stack_high = cpu_stack + stack_size; in arch_init_thread_initialize() 75 thread->stack_size = stack_size; in arch_init_thread_initialize() 81 vaddr_t stack_top = (vaddr_t)t->stack + t->stack_size; in arch_thread_initialize()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/ |
D | 2-1.c | 35 static size_t stack_size; variable 53 if (ssize < stack_size) { in thread_func() 55 "size (%zu < %zu)\n", ssize, stack_size); in thread_func() 83 stack_size = 4 * PTHREAD_STACK_MIN; in main() 86 stack_size)) != 0) { in main() 91 rc = pthread_attr_setstacksize(&attr, stack_size); in main()
|
/external/linux-kselftest/tools/testing/selftests/sigaltstack/ |
D | sas.c | 32 static unsigned int stack_size; variable 56 sp >= (unsigned long)sstack + stack_size) { in my_usr1() 118 stack_size = getauxval(AT_MINSIGSTKSZ) + SIGSTKSZ; in main() 119 ksft_print_msg("[NOTE]\tthe stack size is %lu\n", stack_size); in main() 130 sstack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in main() 152 stk.ss_size = stack_size; in main() 174 ustack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, in main() 183 uc.uc_stack.ss_size = stack_size; in main()
|