Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 25 of 83) sorted by relevance

1234

/external/ltp/lib/
Dcloner.c66 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument
71 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_()
84 stack += stack_size; in ltp_clone_()
94 size_t stack_size, void *stack) in ltp_clone() argument
96 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL); in ltp_clone()
100 size_t stack_size, void *stack, ...) in ltp_clone7() argument
113 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid); in ltp_clone7()
126 size_t stack_size) in ltp_clone_malloc() argument
132 stack = malloc(stack_size); in ltp_clone_malloc()
136 ret = ltp_clone(clone_flags, fn, arg, stack_size, stack); in ltp_clone_malloc()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/
D7-1.c33 size_t stack_size; variable
54 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main()
61 stack_size = PTHREAD_STACK_MIN; in main()
64 stack_size) != 0) { in main()
72 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
79 stack_size = PTHREAD_STACK_MIN + OFFSET; in main()
81 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
D4-1.c35 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()
D6-1.c32 size_t stack_size; variable
53 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main()
60 stack_size = STACKSIZE; in main()
63 stack_size) != 0) { in main()
70 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
D2-1.c36 size_t stack_size; variable
53 if (ssize != stack_size || saddr != stack_addr) { in thread_func()
78 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main()
91 stack_size = PTHREAD_STACK_MIN * 4; in main()
94 stack_size)) != 0) { in main()
99 if ((rc = pthread_attr_setstack(&attr, stack_addr, stack_size)) != 0) { in main()
D1-1.c33 size_t stack_size; variable
57 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main()
64 stack_size = PTHREAD_STACK_MIN; in main()
67 stack_size) != 0) { in main()
74 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/
D1-1.c34 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/syslinux/core/thread/
Dstart_thread.c13 struct thread *start_thread(const char *name, size_t stack_size, int prio, in start_thread() argument
22 if (stack_size < MIN_STACK_SIZE) in start_thread()
23 stack_size = MIN_STACK_SIZE; in start_thread()
25 stack_size = (stack_size + thread_mask) & ~thread_mask; in start_thread()
26 stack = malloc(stack_size + sizeof(struct thread)); in start_thread()
42 sp = (struct thread_stack *)(stack + stack_size) - 1; in start_thread()
/external/libchrome/base/threading/
Dplatform_thread_posix.cc80 bool CreateThread(size_t stack_size, in CreateThread() argument
97 if (stack_size == 0) in CreateThread()
98 stack_size = base::GetDefaultThreadStackSize(attributes); in CreateThread()
100 if (stack_size > 0) in CreateThread()
101 pthread_attr_setstacksize(&attributes, stack_size); in CreateThread()
187 bool PlatformThread::CreateWithPriority(size_t stack_size, Delegate* delegate, in CreateWithPriority() argument
190 return CreateThread(stack_size, true, // joinable thread in CreateWithPriority()
195 bool PlatformThread::CreateNonJoinable(size_t stack_size, Delegate* delegate) { in CreateNonJoinable() argument
198 bool result = CreateThread(stack_size, false /* non-joinable thread */, in CreateNonJoinable()
Dplatform_thread.h160 static bool Create(size_t stack_size, in Create() argument
163 return CreateWithPriority(stack_size, delegate, thread_handle, in Create()
169 static bool CreateWithPriority(size_t stack_size, Delegate* delegate,
176 static bool CreateNonJoinable(size_t stack_size, Delegate* delegate);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/
D2-1.c35 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()
D4-1.c41 size_t stack_size; in main() local
51 stack_size = STACKSIZE; in main()
53 if (posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size) != 0) { in main()
59 rc = pthread_attr_setstacksize(&attr, stack_size); in main()
D1-1.c42 size_t stack_size = PTHREAD_STACK_MIN; in main() local
56 rc = posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size); in main()
64 rc = pthread_attr_setstacksize(&attr, stack_size); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/
D1-1.c33 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/compiler-rt/lib/asan/
Dasan_thread.cc183 uptr AsanThread::stack_size() { in stack_size() function in __asan::AsanThread
191 uptr stack_size = this->stack_size(); in AsyncSignalSafeLazyInitFakeStack() local
192 if (stack_size == 0) // stack_size is not yet available, don't use FakeStack. in AsyncSignalSafeLazyInitFakeStack()
204 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size)); in AsyncSignalSafeLazyInitFakeStack()
221 CHECK_EQ(this->stack_size(), 0U); in Init()
223 CHECK_GT(this->stack_size(), 0U); in Init()
265 uptr stack_size = 0; in SetThreadStackAndTls() local
267 const_cast<uptr *>(&stack_size), &tls_begin_, &tls_size); in SetThreadStackAndTls()
268 stack_top_ = stack_bottom_ + stack_size; in SetThreadStackAndTls()
/external/compiler-rt/lib/asan/tests/
Dasan_fake_stack_test.cc48 uptr stack_size = 1UL << stack_size_log; in TEST() local
53 uptr num_flags = stack_size / frame_size; in TEST()
95 const uptr stack_size = 1 << stack_size_log; in TEST() local
100 EXPECT_EQ(base + 0*stack_size + 64 * 7, fs->GetFrame(stack_size_log, 0, 7U)); in TEST()
101 EXPECT_EQ(base + 1*stack_size + 128 * 3, fs->GetFrame(stack_size_log, 1, 3U)); in TEST()
102 EXPECT_EQ(base + 2*stack_size + 256 * 5, fs->GetFrame(stack_size_log, 2, 5U)); in TEST()
/external/valgrind/none/tests/linux/
Dpthread-stack.c89 const size_t stack_size = 256 * 1024; in main() local
90 assert(stack_size < file_size); in main()
91 void *stack = mmap(NULL, stack_size, PROT_READ|PROT_WRITE, in main()
96 r = pthread_attr_setstack(&attr, stack, stack_size); in main()
/external/valgrind/none/tests/solaris/
Dpthread-stack.c83 const size_t stack_size = 256 * 1024; in main() local
84 assert(stack_size < file_size); in main()
85 void *stack = mmap(NULL, stack_size, PROT_READ|PROT_WRITE, in main()
90 int r = pthread_attr_setstack(&attr, stack, stack_size); in main()
/external/pdfium/core/fxcodec/lgif/
Dfx_gif.cpp28 stack_size(0), in CGifLZWDecoder()
47 stack_size = 0; in InitTable()
62 stack_size = 0; in DecodeString()
68 stack[GIF_MAX_LZW_CODE - 1 - stack_size++] = code_table[code].suffix; in DecodeString()
71 stack[GIF_MAX_LZW_CODE - 1 - stack_size++] = (uint8_t)code; in DecodeString()
91 if (stack_size != 0) { in Decode()
92 if (des_size < stack_size) { in Decode()
93 FXSYS_memcpy(des_buf, &stack[GIF_MAX_LZW_CODE - stack_size], des_size); in Decode()
94 stack_size -= (uint16_t)des_size; in Decode()
97 FXSYS_memcpy(des_buf, &stack[GIF_MAX_LZW_CODE - stack_size], stack_size); in Decode()
[all …]
/external/libchrome/base/debug/
Dstack_trace.cc67 size_t stack_size = 0; in GetStackEnd() local
74 &stack_size); in GetStackEnd()
79 uintptr_t stack_end = stack_begin + stack_size; in GetStackEnd()
/external/compiler-rt/lib/msan/
Dmsan_thread.cc24 uptr stack_size = 0; in SetThreadStackAndTls() local
25 GetThreadStackAndTls(IsMainThread(), &stack_bottom_, &stack_size, in SetThreadStackAndTls()
27 stack_top_ = stack_bottom_ + stack_size; in SetThreadStackAndTls()
/external/syslinux/com32/lib/sys/
Dcfarcall.c7 int __cfarcall(uint16_t cs, uint16_t ip, const void *stack, uint32_t stack_size) in __cfarcall() argument
9 return __com32.cs_cfarcall((cs << 16) + ip, stack, stack_size); in __cfarcall()
/external/ltp/testcases/kdump/lib/kprobes/
Dkprobes.c15 struct pt_regs *regs, unsigned long stack_size, in jdo_fork() argument
19 clone_flags, stack_size, regs); in jdo_fork()
/external/compiler-rt/lib/lsan/
Dlsan_thread.cc92 uptr stack_size = 0; in ThreadStart() local
94 GetThreadStackAndTls(tid == 0, &args.stack_begin, &stack_size, in ThreadStart()
96 args.stack_end = args.stack_begin + stack_size; in ThreadStart()
/external/google-breakpad/src/client/ios/handler/
Dios_exception_minidump_generator.mm174 size_t stack_size = frame_record_size * (frame_count - 1) + pointer_size;
175 if (!memory.Allocate(stack_size))
177 scoped_array<uint8_t> stack_memory(new uint8_t[stack_size]);
178 uintptr_t sp = stack_size - pointer_size;
191 if (!memory.Copy(stack_memory.get(), stack_size))

1234