Home
last modified time | relevance | path

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

1234

/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->fd, buf, to_read)); in PtyReader_28979140()
98 arg->matched = false; in PtyReader_28979140()
102 close(arg->fd); in PtyReader_28979140()
103 arg->finished = true; in PtyReader_28979140()
127 PtyReader_28979140_Arg arg; in TEST() local
[all …]
D__cxa_atexit_test.cpp32 int __cxa_atexit(void (*func)(void*), void* arg, void* dso);
46 __cxa_atexit([](void* arg) { ++*static_cast<int*>(arg); }, &counter, &counter); in TEST() argument
61 auto append_to_actual = [](void* arg) { in TEST() argument
62 int* idx = static_cast<int*>(arg); in TEST()
Dtouch-obj-on-success7 for arg in "$@"; do
8 if [[ "$arg" == *.o ]]; then
9 touch "$arg"
Dsys_sem_test.cpp112 semun arg; in TEST() local
116 arg.val = 123; in TEST()
117 arg.buf = &i1; in TEST()
118 arg.array = a; in TEST()
119 arg.__buf = &i2; in TEST()
Dpthread_test.cpp226 static void* IdFn(void* arg) { in IdFn() argument
227 return arg; in IdFn()
261 static void* JoinFn(void* arg) { in JoinFn() argument
262 return reinterpret_cast<void*>(pthread_join(reinterpret_cast<pthread_t>(arg), nullptr)); in JoinFn()
366 static void* thread_fn(void* arg) { in thread_fn()
367 TestBug37410* data = reinterpret_cast<TestBug37410*>(arg); in thread_fn()
389 static void* SignalHandlerFn(void* arg) { in SignalHandlerFn() argument
392 return reinterpret_cast<void*>(sigwait64(&wait_set, reinterpret_cast<int*>(arg))); in SignalHandlerFn()
749 static void* GetActualGuardSizeFn(void* arg) { in GetActualGuardSizeFn() argument
752 pthread_attr_getguardsize(&attributes, reinterpret_cast<size_t*>(arg)); in GetActualGuardSizeFn()
[all …]
/bionic/libc/arch-arm64/
Ddynamic_function_dispatch.cpp54 if (arg->_hwcap2 & HWCAP2_MTE) { in DEFINE_IFUNC_FOR()
69 if (__bionic_is_oryon(arg->_hwcap)) { in DEFINE_IFUNC_FOR()
71 } else if (arg->_hwcap & HWCAP_ASIMD) { in DEFINE_IFUNC_FOR()
80 if (__bionic_is_oryon(arg->_hwcap)) { in DEFINE_IFUNC_FOR()
82 } else if (arg->_hwcap & HWCAP_ASIMD) { in DEFINE_IFUNC_FOR()
96 if (__bionic_is_oryon(arg->_hwcap)) { in DEFINE_IFUNC_FOR()
111 if (arg->_hwcap2 & HWCAP2_MTE) { in DEFINE_IFUNC_FOR()
120 if (arg->_hwcap2 & HWCAP2_MTE) { in DEFINE_IFUNC_FOR()
141 if (arg->_hwcap2 & HWCAP2_MTE) { in DEFINE_IFUNC_FOR()
162 if (arg->_hwcap2 & HWCAP2_MTE) { in DEFINE_IFUNC_FOR()
/bionic/libc/bionic/
Dbionic_call_ifunc_resolver.cpp43 static __ifunc_arg_t arg; in __bionic_call_ifunc_resolver() local
47 arg._size = sizeof(__ifunc_arg_t); in __bionic_call_ifunc_resolver()
48 arg._hwcap = getauxval(AT_HWCAP); in __bionic_call_ifunc_resolver()
49 arg._hwcap2 = getauxval(AT_HWCAP2); in __bionic_call_ifunc_resolver()
51 return reinterpret_cast<ifunc_resolver_t>(resolver_addr)(arg._hwcap | _IFUNC_ARG_HWCAP, &arg); in __bionic_call_ifunc_resolver()
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()
Dfcntl.cpp43 void* arg = va_arg(args, void*); in fcntl() local
46 if (cmd == F_SETFD && (reinterpret_cast<uintptr_t>(arg) & ~FD_CLOEXEC) != 0) { in fcntl()
47 __fortify_fatal("fcntl(F_SETFD) only supports FD_CLOEXEC but was passed %p", arg); in fcntl()
51 int rc = __fcntl(fd, cmd, arg); in fcntl()
54 int rc = __fcntl64(fd, cmd, arg); in fcntl()
Dmalloc_common.cpp250 void (*callback)(uintptr_t base, size_t size, void* arg);
251 void* arg; member
254 void CallbackWrapper(uintptr_t base, size_t size, void* arg) { in CallbackWrapper() argument
255 CallbackWrapperArg* wrapper_arg = reinterpret_cast<CallbackWrapperArg*>(arg); in CallbackWrapper()
258 size, wrapper_arg->arg); in CallbackWrapper()
271 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) { in malloc_iterate() argument
277 wrapper_arg.arg = arg; in malloc_iterate()
316 void (*callback)(uintptr_t base, size_t size, void* arg) in __sanitizer_malloc_iterate()
318 void* arg __unused) { in __sanitizer_malloc_iterate()
339 extern "C" bool android_mallopt(int opcode, void* arg, size_t arg_size) { in android_mallopt() argument
[all …]
Dmalloc_common_dynamic.cpp125 extern "C" int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
478 extern "C" bool android_mallopt(int opcode, void* arg, size_t arg_size) { in android_mallopt() argument
480 if (arg != nullptr || arg_size != 0) { in android_mallopt()
488 if (arg != nullptr || arg_size != 0) { in android_mallopt()
498 if (arg == nullptr || arg_size != sizeof(bool)) { in android_mallopt()
504 *reinterpret_cast<bool*>(arg) = in android_mallopt()
509 return LimitEnable(arg, arg_size); in android_mallopt()
512 if (arg == nullptr || arg_size != sizeof(FILE*)) { in android_mallopt()
516 return WriteMallocLeakInfo(reinterpret_cast<FILE*>(arg)); in android_mallopt()
519 if (arg == nullptr || arg_size != sizeof(android_mallopt_leak_info_t)) { in android_mallopt()
[all …]
Dexec.cpp78 int execl(const char* name, const char* arg, ...) { in execl() argument
80 va_start(ap, arg); in execl()
81 int result = __execl<ExecL>(name, arg, ap); in execl()
86 int execle(const char* name, const char* arg, ...) { in execle() argument
88 va_start(ap, arg); in execle()
89 int result = __execl<ExecLE>(name, arg, ap); in execle()
94 int execlp(const char* name, const char* arg, ...) { in execlp() argument
96 va_start(ap, arg); in execlp()
97 int result = __execl<ExecLP>(name, arg, ap); in execlp()
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()
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()
Dioctl.cpp37 void* arg = va_arg(ap, void*); in ioctl() local
39 return __ioctl(fd, request, arg); in ioctl()
Datexit.cpp52 void* arg; // argument for `fn` callback member
230 int __cxa_atexit(void (*func)(void*), void* arg, void* dso) { in __cxa_atexit() argument
235 if (g_array.append_entry({.fn = func, .arg = arg, .dso = dso})) { in __cxa_atexit()
261 entry.fn(entry.arg); in __cxa_finalize()
/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/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp157 void* MallocHooksTest::test_malloc_hook(size_t size, const void* arg) { in test_malloc_hook() argument
159 void_arg_ = arg; in test_malloc_hook()
160 return orig_malloc_hook_(size, arg); in test_malloc_hook()
163 void* MallocHooksTest::test_realloc_hook(void* ptr, size_t size, const void* arg) { in test_realloc_hook() argument
165 void_arg_ = arg; in test_realloc_hook()
166 return orig_realloc_hook_(ptr, size, arg); in test_realloc_hook()
169 void* MallocHooksTest::test_memalign_hook(size_t alignment, size_t size, const void* arg) { in test_memalign_hook() argument
171 void_arg_ = arg; in test_memalign_hook()
172 return orig_memalign_hook_(alignment, size, arg); in test_memalign_hook()
175 void MallocHooksTest::test_free_hook(void* ptr, const void* arg) { in test_free_hook() argument
[all …]
/bionic/libc/tools/
Dgenerate_notice.py164 def do_dir(arg): argument
165 for directory, sub_directories, filenames in os.walk(arg):
181 for arg in args:
182 if os.path.isdir(arg):
183 do_dir(arg)
185 do_file(arg)
/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/benchmarks/linker_relocation/
Dgen_bench.sh35 for arg in "$@"; do
36 case "$arg" in
44 echo "error: unrecognized option: $arg"
/bionic/libc/seccomp/
Dseccomp_policy.cpp178 for (int arg = 0; arg < 3; arg++) { in ValidateSetUidGid() local
179 ValidateSyscallArgInRange(f, arg, uid_gid_min, uid_gid_max); in ValidateSetUidGid()
185 for (int arg = 0; arg < 3; arg++) { in ValidateSetUidGid() local
186 ValidateSyscallArgInRange(f, arg, uid_gid_min, uid_gid_max); in ValidateSetUidGid()
/bionic/linker/
Dlinker_tls.h50 size_t arg; member
54 size_t arg;

1234