Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 75) sorted by relevance

123

/bionic/tests/
D__cxa_thread_atexit_test.cpp40 static void* thread_nop(void* arg) { in thread_nop() argument
41 class_with_dtor.set_message(*static_cast<std::string*>(arg)); in thread_nop()
76 extern "C" int __cxa_thread_atexit_impl(void (*fn)(void*), void* arg, void* dso_handle);
78 static void thread_atexit_fn1(void* arg) { in thread_atexit_fn1() argument
79 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_fn1()
83 static void thread_atexit_fn2(void* arg) { in thread_atexit_fn2() argument
84 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_fn2()
88 static void thread_atexit_from_atexit(void* arg) { in thread_atexit_from_atexit() argument
89 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_from_atexit()
93 static void thread_atexit_fn3(void* arg) { in thread_atexit_fn3() argument
[all …]
Dpty_test.cpp82 static void PtyReader_28979140(PtyReader_28979140_Arg* arg) { in PtyReader_28979140() argument
83 arg->finished = false; in PtyReader_28979140()
86 CPU_CLR(arg->main_cpu_id, &cpus); in PtyReader_28979140()
90 while (counter <= arg->data_count) { in PtyReader_28979140()
92 size_t to_read = std::min(sizeof(buf), (arg->data_count + 1 - counter) * sizeof(uint32_t)); in PtyReader_28979140()
93 ASSERT_TRUE(android::base::ReadFully(arg->slave_fd, buf, to_read)); in PtyReader_28979140()
98 arg->matched = false; in PtyReader_28979140()
102 close(arg->slave_fd); in PtyReader_28979140()
103 arg->finished = true; in PtyReader_28979140()
127 PtyReader_28979140_Arg arg; in TEST() local
[all …]
Dpthread_test.cpp197 static void* IdFn(void* arg) { in IdFn() argument
198 return arg; in IdFn()
232 static void* JoinFn(void* arg) { in JoinFn() argument
233 return reinterpret_cast<void*>(pthread_join(reinterpret_cast<pthread_t>(arg), nullptr)); in JoinFn()
337 static void* thread_fn(void* arg) { in thread_fn()
338 TestBug37410* data = reinterpret_cast<TestBug37410*>(arg); in thread_fn()
363 static void* SignalHandlerFn(void* arg) { in SignalHandlerFn() argument
366 return reinterpret_cast<void*>(sigwait64(&wait_set, reinterpret_cast<int*>(arg))); in SignalHandlerFn()
723 static void* GetActualGuardSizeFn(void* arg) { in GetActualGuardSizeFn() argument
726 pthread_attr_getguardsize(&attributes, reinterpret_cast<size_t*>(arg)); in GetActualGuardSizeFn()
[all …]
Dsys_sem_test.cpp104 semun arg; in TEST() local
108 arg.val = 123; in TEST()
109 arg.buf = &i1; in TEST()
110 arg.array = a; in TEST()
111 arg.__buf = &i2; in TEST()
Dtouch-obj-on-success7 for arg in "$@"; do
8 if [[ "$arg" == *.o ]]; then
9 touch "$arg"
D__cxa_atexit_test.cpp35 __cxxabiv1::__cxa_atexit([](void* arg) { ++*static_cast<int*>(arg); }, &counter, &counter); in TEST() argument
50 auto append_to_actual = [](void* arg) { in TEST() argument
51 int* idx = static_cast<int*>(arg); in TEST()
/bionic/libc/arch-arm64/
Ddynamic_function_dispatch.cpp47 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
56 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
65 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
74 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
83 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
92 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
101 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
110 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
119 if (supports_mte(arg->_hwcap2)) { in DEFINE_IFUNC_FOR()
/bionic/libc/bionic/
Dmalloc_common.cpp224 void (*callback)(uintptr_t base, size_t size, void* arg);
225 void* arg; member
228 void CallbackWrapper(uintptr_t base, size_t size, void* arg) { in CallbackWrapper() argument
229 CallbackWrapperArg* wrapper_arg = reinterpret_cast<CallbackWrapperArg*>(arg); in CallbackWrapper()
232 size, wrapper_arg->arg); in CallbackWrapper()
245 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) { in malloc_iterate() argument
251 wrapper_arg.arg = arg; in malloc_iterate()
290 void (*callback)(uintptr_t base, size_t size, void* arg) in __sanitizer_malloc_iterate()
292 void* arg __unused) { in __sanitizer_malloc_iterate()
313 extern "C" bool android_mallopt(int opcode, void* arg, size_t arg_size) { in android_mallopt() argument
[all …]
Dbionic_call_ifunc_resolver.cpp42 static __ifunc_arg_t arg; in __bionic_call_ifunc_resolver() local
46 arg._size = sizeof(__ifunc_arg_t); in __bionic_call_ifunc_resolver()
47 arg._hwcap = getauxval(AT_HWCAP); in __bionic_call_ifunc_resolver()
48 arg._hwcap2 = getauxval(AT_HWCAP2); in __bionic_call_ifunc_resolver()
50 return reinterpret_cast<ifunc_resolver_t>(resolver_addr)(arg._hwcap | _IFUNC_ARG_HWCAP, &arg); in __bionic_call_ifunc_resolver()
Dfcntl.cpp44 void* arg = va_arg(args, void*); in fcntl() local
47 int rc = __fcntl(fd, cmd, arg); in fcntl()
65 void* arg = va_arg(ap, void*); in fcntl() local
69 return FDTRACK_CREATE_NAME("F_DUPFD", __fcntl64(fd, cmd, arg)); in fcntl()
71 return FDTRACK_CREATE_NAME("F_DUPFD_CLOEXEC", __fcntl64(fd, cmd, arg)); in fcntl()
73 return __fcntl64(fd, cmd, arg); in fcntl()
D__cxa_thread_atexit_impl.cpp25 void *arg; member in 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) { in __cxa_thread_atexit_impl() argument
39 dtor->arg = arg; in __cxa_thread_atexit_impl()
57 current->func(current->arg); in __cxa_thread_finalize()
Dexec.cpp76 int execl(const char* name, const char* arg, ...) { in execl() argument
78 va_start(ap, arg); in execl()
79 int result = __execl<ExecL>(name, arg, ap); in execl()
84 int execle(const char* name, const char* arg, ...) { in execle() argument
86 va_start(ap, arg); in execle()
87 int result = __execl<ExecLE>(name, arg, ap); in execle()
92 int execlp(const char* name, const char* arg, ...) { in execlp() argument
94 va_start(ap, arg); in execlp()
95 int result = __execl<ExecLP>(name, arg, ap); in execlp()
Dmalloc_common_dynamic.cpp123 extern "C" int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
470 extern "C" bool android_mallopt(int opcode, void* arg, size_t arg_size) { in android_mallopt() argument
472 if (arg != nullptr || arg_size != 0) { in android_mallopt()
480 if (arg != nullptr || arg_size != 0) { in android_mallopt()
490 if (arg == nullptr || arg_size != sizeof(bool)) { in android_mallopt()
496 *reinterpret_cast<bool*>(arg) = in android_mallopt()
501 return LimitEnable(arg, arg_size); in android_mallopt()
504 if (arg == nullptr || arg_size != sizeof(FILE*)) { in android_mallopt()
508 return WriteMallocLeakInfo(reinterpret_cast<FILE*>(arg)); in android_mallopt()
511 if (arg == nullptr || arg_size != sizeof(android_mallopt_leak_info_t)) { in android_mallopt()
[all …]
Dclone.cpp40 …flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg);
45 extern "C" __LIBC_HIDDEN__ void __start_thread(int (*fn)(void*), void* arg) { in __start_thread() argument
53 int status = (*fn)(arg); in __start_thread()
58 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { in clone() argument
70 va_start(args, arg); in clone()
103 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); in clone()
Datexit.cpp52 void* arg; // argument for `fn` callback member
210 int __cxa_atexit(void (*func)(void*), void* arg, void* dso) { in __cxa_atexit() argument
215 if (g_array.append_entry({.fn = func, .arg = arg, .dso = dso})) { in __cxa_atexit()
241 entry.fn(entry.arg); in __cxa_finalize()
Dsys_sem.cpp42 semun arg = va_arg(ap, semun); in semctl() local
45 return syscall(SYS_semctl, id, num, cmd, arg); in semctl()
47 return syscall(SYS_ipc, SEMCTL, id, num, cmd, &arg, 0); in semctl()
Dmalloc_limit.cpp62 …t LimitIterate(uintptr_t base, size_t size, void (*callback)(uintptr_t, size_t, void*), void* arg);
306 bool LimitEnable(void* arg, size_t arg_size) { in LimitEnable() argument
307 if (arg == nullptr || arg_size != sizeof(size_t)) { in LimitEnable()
319 gAllocLimit = *reinterpret_cast<size_t*>(arg); in LimitEnable()
352 … LimitIterate(uintptr_t base, size_t size, void (*callback)(uintptr_t, size_t, void*), void* arg) { in LimitIterate() argument
355 return dispatch_table->malloc_iterate(base, size, callback, arg); in LimitIterate()
357 return Malloc(malloc_iterate)(base, size, callback, arg); in LimitIterate()
Dioctl.cpp37 void* arg = va_arg(ap, void*); in ioctl() local
39 return __ioctl(fd, request, arg); in ioctl()
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp156 void* MallocHooksTest::test_malloc_hook(size_t size, const void* arg) { in test_malloc_hook() argument
158 void_arg_ = arg; in test_malloc_hook()
159 return orig_malloc_hook_(size, arg); in test_malloc_hook()
162 void* MallocHooksTest::test_realloc_hook(void* ptr, size_t size, const void* arg) { in test_realloc_hook() argument
164 void_arg_ = arg; in test_realloc_hook()
165 return orig_realloc_hook_(ptr, size, arg); in test_realloc_hook()
168 void* MallocHooksTest::test_memalign_hook(size_t alignment, size_t size, const void* arg) { in test_memalign_hook() argument
170 void_arg_ = arg; in test_memalign_hook()
171 return orig_memalign_hook_(alignment, size, arg); in test_memalign_hook()
174 void MallocHooksTest::test_free_hook(void* ptr, const void* arg) { in test_free_hook() argument
[all …]
/bionic/libc/malloc_debug/tools/
Dgen_malloc.pl293 my $arg = pop(@ARGV);
294 if ($arg =~ /^-/) {
295 if ($arg eq "-d") {
297 } elsif ($arg eq "-i") {
299 } elsif ($arg eq "-m") {
302 print "Unknown option $arg\n";
306 unshift @args, $arg;
/bionic/libc/seccomp/
Dseccomp_policy.cpp156 for (int arg = 0; arg < 3; arg++) { in ValidateSetUidGid() local
157 ValidateSyscallArgInRange(f, arg, uid_gid_min, uid_gid_max); in ValidateSetUidGid()
164 for (int arg = 0; arg < 3; arg++) { in ValidateSetUidGid() local
165 ValidateSyscallArgInRange(f, arg, uid_gid_min, uid_gid_max); in ValidateSetUidGid()
/bionic/benchmarks/
Dutil.h33 …mplaceBenchmark(const std::string& fn_name, benchmark_func_t fn_ptr, const std::string& arg = "") {
35 g_str_to_func.emplace(std::string(fn_name), std::make_pair(fn_ptr, arg));
43 #define BIONIC_BENCHMARK_WITH_ARG(n, arg) \ argument
44 …tribute__((unused)) = EmplaceBenchmark(std::string(#n), reinterpret_cast<benchmark_func_t>(n), arg)
/bionic/libfdtrack/
Dfdtrack_test.cpp52 const uint64_t* function_offsets, size_t count, void* arg); in RunFdtrack()
53 auto fdtrack_iterate = reinterpret_cast<void (*)(fdtrack_callback_t, void* arg)>( in RunFdtrack()
64 void* arg) { in RunFdtrack() argument
65 auto& map = *static_cast<decltype(result)*>(arg); in RunFdtrack()
/bionic/libc/tools/
Dgenerate-NOTICE.py156 for directory, sub_directories, filenames in os.walk(arg):
171 for arg in args:
172 if os.path.isdir(arg):
173 do_dir(arg)
175 do_file(arg)
/bionic/benchmarks/linker_relocation/
Dgen_bench.sh35 for arg in "$@"; do
36 case "$arg" in
44 echo "error: unrecognized option: $arg"

123