/bionic/tests/ |
H A D | __cxa_thread_atexit_test.cpp | 40 static void* thread_nop(void* arg) { argument 41 class_with_dtor.set_message(*static_cast<std::string*>(arg)); 76 extern "C" int __cxa_thread_atexit_impl(void (*fn)(void*), void* arg, void* dso_handle); 78 static void thread_atexit_fn1(void* arg) { argument 79 std::string* call_sequence = static_cast<std::string*>(arg); 83 static void thread_atexit_fn2(void* arg) { argument 84 std::string* call_sequence = static_cast<std::string*>(arg); 88 static void thread_atexit_from_atexit(void* arg) { argument 89 std::string* call_sequence = static_cast<std::string*>(arg); 93 static void thread_atexit_fn3(void* arg) { argument 99 thread_atexit_fn4(void* arg) argument 104 thread_atexit_fn5(void* arg) argument 109 thread_main(void* arg) argument [all...] |
H A D | pthread_test.cpp | 195 static void* IdFn(void* arg) { argument 196 return arg; 230 static void* JoinFn(void* arg) { argument 231 return reinterpret_cast<void*>(pthread_join(reinterpret_cast<pthread_t>(arg), NULL)); 335 static void* thread_fn(void* arg) { argument 336 TestBug37410* data = reinterpret_cast<TestBug37410*>(arg); 358 static void* SignalHandlerFn(void* arg) { argument 361 return reinterpret_cast<void*>(sigwait64(&wait_set, reinterpret_cast<int*>(arg))); 690 static void* GetActualGuardSizeFn(void* arg) { argument 693 pthread_attr_getguardsize(&attributes, reinterpret_cast<size_t*>(arg)); 705 GetActualStackSizeFn(void* arg) argument 899 pthread_rwlock_wakeup_helper(RwlockWakeupHelperArg* arg) argument 1010 pthread_rwlock_wakeup_timeout_helper(RwlockWakeupHelperArg* arg) argument 1132 ThreadArg* arg = new ThreadArg(this, tid); local 1139 ThreadArg* arg = new ThreadArg(this, tid); local 1157 WriterThreadFn(ThreadArg* arg) argument 1166 ReaderThreadFn(ThreadArg* arg) argument 1679 pthread_gettid_np_helper(void* arg) argument 2391 BarrierTestHelper(BarrierTestHelperArg* arg) argument 2435 BarrierDestroyTestHelper(BarrierDestroyTestArg* arg) argument 2444 BarrierDestroyTestArg arg; local 2467 BarrierOrderingTestHelper(BarrierOrderingTestHelperArg* arg) argument [all...] |
H A D | pty_test.cpp | 82 static void PtyReader_28979140(PtyReader_28979140_Arg* arg) { argument 83 arg->finished = false; 86 CPU_CLR(arg->main_cpu_id, &cpus); 90 while (counter <= arg->data_count) { 92 size_t to_read = std::min(sizeof(buf), (arg->data_count + 1 - counter) * sizeof(uint32_t)); 93 ASSERT_TRUE(android::base::ReadFully(arg->slave_fd, buf, to_read)); 98 arg->matched = false; 102 close(arg->slave_fd); 103 arg->finished = true; 128 PtyReader_28979140_Arg arg; local [all...] |
H A D | semaphore_test.cpp | 71 static void* SemWaitThreadFn(void* arg) { argument 72 SemWaitThreadTestFn(*reinterpret_cast<sem_t*>(arg)); 182 static void* SemWaitEINTRThreadFn(void* arg) { argument 183 sem_t* sem = reinterpret_cast<sem_t*>(arg);
|
H A D | stack_protector_test.cpp | 77 ASSERT_EQ(0, pthread_create(&t, NULL, [](void* arg) -> void* { 78 stack_protector_checker* checker = reinterpret_cast<stack_protector_checker*>(arg);
|
H A D | stack_unwinding_test.cpp | 37 _Unwind_Reason_Code FrameCounter(_Unwind_Context* ctx __unused, void* arg) { argument 38 int* count_ptr = reinterpret_cast<int*>(arg);
|
H A D | stdatomic_test.cpp | 199 static void* writer(void* arg) { argument 200 three_atomics* a = reinterpret_cast<three_atomics*>(arg); 212 static void* reader(void* arg) { argument 213 three_atomics* a = reinterpret_cast<three_atomics*>(arg);
|
H A D | stdlib_test.cpp | 355 static void* TestBug57421_child(void* arg) { argument 356 pthread_t main_thread = reinterpret_cast<pthread_t>(arg);
|
H A D | sys_sem_test.cpp | 105 semun arg; local 109 arg.val = 123; 110 arg.buf = &i1; 111 arg.array = a; 112 arg.__buf = &i2;
|
/bionic/benchmarks/ |
H A D | bionic_benchmarks.cpp | 95 printf(" [--bionic_extra=\"<fn_name> <arg1> <arg 2> ...\"]\n"); 126 // If the arg was passed in with an =, it spans one char *. 217 static bool ParseOnebufManualStr(std::string& arg, std::vector<int>* values) { argument 225 if (sscanf(arg.c_str(), "AT_ONEBUF_MANUAL_ALIGN_%d_SIZE_%d" , &align, &size) != 2) { 238 static bool ParseTwobufManualStr(std::string& arg, std::vector<int>* values) { argument 248 if (sscanf(arg.c_str(), "AT_TWOBUF_MANUAL_ALIGN1_%d_ALIGN2_%d_SIZE_%d" ,
|
H A D | semaphore_benchmark.cpp | 73 static void* BM_semaphore_sem_post_start_thread(void* arg) { argument 74 sem_t* semaphore = reinterpret_cast<sem_t*>(arg);
|
H A D | util.h | 31 static int __attribute__((unused)) EmplaceBenchmark(const std::string& fn_name, benchmark_func_t fn_ptr, const std::string& arg = "") { 33 g_str_to_func.emplace(std::string(fn_name), std::make_pair(fn_ptr, arg)); 41 #define BIONIC_BENCHMARK_WITH_ARG(n, arg) \ 42 int _bionic_benchmark_##n __attribute__((unused)) = EmplaceBenchmark(std::string(#n), reinterpret_cast<benchmark_func_t>(n), arg)
|
/bionic/benchmarks/tests/ |
H A D | interface_test.cpp | 109 for (const auto& arg : extra_args) { 110 args.push_back(arg); 150 " [--bionic_extra=\"<fn_name> <arg1> <arg 2> ...\"]\n"
|
/bionic/libc/arch-arm/bionic/ |
H A D | atexit_legacy.c | 40 extern int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
|
/bionic/libc/arch-arm64/bionic/ |
H A D | __bionic_clone.S | 31 // pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg); 34 # Push 'fn' and 'arg' onto the child stack. 56 # Call __start_thread with the 'fn' and 'arg' we stored on the child stack.
|
/bionic/libc/arch-mips/bionic/ |
H A D | __bionic_clone.S | 33 // pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg); 42 lw $t1,24($sp) # arg 44 sw $t1,4($a1) # arg 61 lw $a1,4($sp) # arg 63 # void __start_thread(int (*func)(void*), void *arg)
|
/bionic/libc/arch-mips64/bionic/ |
H A D | __bionic_clone.S | 44 // pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg); 54 PRL_L $t1,FRAMESZ+6*REGSZ($sp) # arg 56 PTR_S $t1,FRAME_ARG($a1) # arg 61 PTR_S $a6,FRAME_ARG($a1) # arg 81 # void __start_thread(int (*func)(void*), void *arg) 83 PTR_L $a1,FRAME_ARG($sp) # arg
|
/bionic/libc/bionic/ |
H A D | __cxa_thread_atexit_impl.cpp | 25 void *arg; member in class:thread_local_dtor 30 extern "C" int __cxa_thread_atexit_impl(void (*func) (void *), void *arg, void *dso_handle); 35 int __cxa_thread_atexit_impl(void (*func) (void *), void *arg, void *dso_handle) { argument 39 dtor->arg = arg; 57 current->func(current->arg);
|
H A D | clone.cpp | 40 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg); 44 extern "C" __LIBC_HIDDEN__ void __start_thread(int (*fn)(void*), void* arg) { argument 52 int status = (*fn)(arg); 57 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { argument 69 va_start(args, arg); 102 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg);
|
H A D | exec.cpp | 74 int execl(const char* name, const char* arg, ...) { argument 76 va_start(ap, arg); 77 int result = __execl(name, arg, kIsExecL, ap); 82 int execle(const char* name, const char* arg, ...) { argument 84 va_start(ap, arg); 85 int result = __execl(name, arg, kIsExecLE, ap); 90 int execlp(const char* name, const char* arg, ...) { argument 92 va_start(ap, arg); 93 int result = __execl(name, arg, kIsExecLP, ap);
|
H A D | ioctl.cpp | 37 void* arg = va_arg(ap, void*); local 39 return __ioctl(fd, request, arg);
|
H A D | legacy_32_bit_support.cpp | 55 void* arg = va_arg(ap, void*); local 58 return __fcntl64(fd, cmd, arg);
|
H A D | malloc_common.cpp | 197 extern "C" int __cxa_atexit(void (*func)(void *), void *arg, void *dso); 476 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) { 479 return _iterate(base, size, callback, arg); 481 return Malloc(iterate)(base, size, callback, arg); 475 malloc_iterate(uintptr_t base, size_t size, void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) argument
|
H A D | posix_timers.cpp | 73 static void* __timer_thread_start(void* arg) { argument 74 PosixTimer* timer = reinterpret_cast<PosixTimer*>(arg);
|
H A D | pthread_create.cpp | 243 static int __pthread_start(void* arg) { argument 244 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(arg); 270 void* (*start_routine)(void*), void* arg) { 298 thread->start_routine_arg = arg; 269 pthread_create(pthread_t* thread_out, pthread_attr_t const* attr, void* (*start_routine)(void*), void* arg) argument
|