Home
last modified time | relevance | path

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

12

/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 …]
Dpthread_test.cpp197 static void* IdFn(void* arg) { in IdFn() argument
198 return arg; in IdFn()
230 static void* JoinFn(void* arg) { in JoinFn() argument
231 return reinterpret_cast<void*>(pthread_join(reinterpret_cast<pthread_t>(arg), NULL)); in JoinFn()
335 static void* thread_fn(void* arg) { in thread_fn()
336 TestBug37410* data = reinterpret_cast<TestBug37410*>(arg); in thread_fn()
358 static void* SignalHandlerFn(void* arg) { in SignalHandlerFn() argument
361 return reinterpret_cast<void*>(sigwait(&wait_set, reinterpret_cast<int*>(arg))); in SignalHandlerFn()
553 static void* GetActualGuardSizeFn(void* arg) { in GetActualGuardSizeFn() argument
556 pthread_attr_getguardsize(&attributes, reinterpret_cast<size_t*>(arg)); in GetActualGuardSizeFn()
[all …]
Dstack_protector_test.cpp62 static void* ThreadGuardHelper(void* arg) { in ThreadGuardHelper() argument
63 stack_protector_checker* checker = reinterpret_cast<stack_protector_checker*>(arg); in ThreadGuardHelper()
Dstack_unwinding_test.cpp37 static _Unwind_Reason_Code FrameCounter(_Unwind_Context* ctx __unused, void* arg) { in FrameCounter() argument
38 int* count_ptr = reinterpret_cast<int*>(arg); in FrameCounter()
/bionic/libc/bionic/
D__cxa_thread_atexit_impl.cpp20 void *arg; member
27 extern "C" int __cxa_thread_atexit_impl(void (*func) (void *), void *arg, void *dso_handle) { in __cxa_thread_atexit_impl() argument
31 dtor->arg = arg; in __cxa_thread_atexit_impl()
45 current->func(current->arg); in __cxa_thread_finalize()
Dclone.cpp36 …flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg);
40 extern "C" __LIBC_HIDDEN__ void __start_thread(int (*fn)(void*), void* arg) { in __start_thread() argument
41 int status = (*fn)(arg); in __start_thread()
45 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { in clone() argument
52 va_start(args, arg); in clone()
74 int clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); in clone()
Dioctl.c35 void * arg; in ioctl() local
38 arg = va_arg(ap, void *); in ioctl()
41 return __ioctl(fd, request, arg); in ioctl()
Dlegacy_32_bit_support.cpp52 void* arg = va_arg(ap, void*); in fcntl() local
55 return __fcntl64(fd, cmd, arg); in fcntl()
Dpthread_exit.cpp46 void __pthread_cleanup_push(__pthread_cleanup_t* c, __pthread_cleanup_func_t routine, void* arg) { in __pthread_cleanup_push() argument
49 c->__cleanup_arg = arg; in __pthread_cleanup_push()
Dpthread_create.cpp187 static int __pthread_start(void* arg) { in __pthread_start() argument
188 pthread_internal_t* thread = reinterpret_cast<pthread_internal_t*>(arg); in __pthread_start()
213 void* (*start_routine)(void*), void* arg) { in pthread_create() argument
244 thread->start_routine_arg = arg; in pthread_create()
Ddebug_stacktrace.cpp77 static _Unwind_Reason_Code trace_function(__unwind_context* context, void* arg) { in trace_function() argument
78 stack_crawl_state_t* state = static_cast<stack_crawl_state_t*>(arg); in trace_function()
/bionic/benchmarks/benchmark/
DBenchmark.h69 bool ShouldRun(std::vector<regex_t*>&, T arg);
70 void RunWithArg(T arg);
110 BenchmarkWithArg* Arg(T arg) { in Arg() argument
111 args_.push_back(arg); in Arg()
118 for (const auto& arg : args_) { in NameColumnWidth() local
119 max = std::max(max, GetNameStr(arg).size()); in NameColumnWidth()
124 std::string GetNameStr(T arg) override;
128 for (T& arg : args_) { in RunAllArgs()
129 if (BenchmarkT<T>::ShouldRun(regs, arg)) { in RunAllArgs()
131 BenchmarkT<T>::RunWithArg(arg); in RunAllArgs()
[all …]
/bionic/benchmarks/
DBenchmark.cpp74 bool BenchmarkT<T>::ShouldRun(std::vector<regex_t*>& regs, T arg) { in ShouldRun() argument
80 if (regexec(re, GetNameStr(arg).c_str(), 0, NULL, 0) != REG_NOMATCH) { in ShouldRun()
105 std::string BenchmarkWithArg<int>::GetNameStr(int arg) { in GetNameStr() argument
106 return Name() + "/" + PrettyInt(arg, 2); in GetNameStr()
110 std::string BenchmarkWithArg<double>::GetNameStr(double arg) { in GetNameStr() argument
111 return Name() + "/" + android::base::StringPrintf("%0.6f", arg); in GetNameStr()
115 void BenchmarkT<T>::RunWithArg(T arg) { in RunWithArg() argument
124 RunIterations(iterations, arg); in RunWithArg()
140 printf("%-*s %10s %10" PRId64, MaxNameColumnWidth(), GetNameStr(arg).c_str(), in RunWithArg()
Dpthread_benchmark.cpp173 static void* RunThread(void* arg) { in RunThread() argument
174 ::testing::Benchmark* benchmark = reinterpret_cast<::testing::Benchmark*>(arg); in RunThread()
191 static void* ExitThread(void* arg) { in ExitThread() argument
192 ::testing::Benchmark* benchmark = reinterpret_cast<::testing::Benchmark*>(arg); in ExitThread()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dexec.c46 execl(const char *name, const char *arg, ...) in execl() argument
52 va_start(ap, arg); in execl()
62 va_start(ap, arg); in execl()
64 argv[0] = (char *)arg; in execl()
72 execle(const char *name, const char *arg, ...) in execle() argument
78 va_start(ap, arg); in execle()
88 va_start(ap, arg); in execle()
90 argv[0] = (char *)arg; in execle()
99 execlp(const char *name, const char *arg, ...) in execlp() argument
105 va_start(ap, arg); in execlp()
[all …]
/bionic/libc/arch-mips/bionic/
D__bionic_clone.S42 lw t1,24(sp) # arg
44 sw t1,4(a1) # arg
/bionic/libc/arch-mips64/bionic/
D__bionic_clone.S54 PRL_L t1,FRAMESZ+6*REGSZ(sp) # arg
56 PTR_S t1,FRAME_ARG(a1) # arg
61 PTR_S a6,FRAME_ARG(a1) # arg
/bionic/libc/arch-arm/bionic/
Datexit_legacy.c40 extern int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
/bionic/libc/kernel/uapi/linux/
Dn_r3964.h47 int arg; member
Dax25.h86 int arg; member
95 unsigned long arg; member
/bionic/libc/kernel/uapi/linux/mmc/
Dioctl.h27 __u32 arg; member
/bionic/libc/tools/
Dgenerate-NOTICE.py107 for arg in args:
108 sys.stderr.write('Searching for source files in "%s"...\n' % arg)
110 for directory, sub_directories, filenames in os.walk(arg):
/bionic/libc/arch-arm64/bionic/
D__bionic_clone.S56 # Call __start_thread with the 'fn' and 'arg' we stored on the child stack.
/bionic/libc/kernel/tools/
Dclean_header.py192 for opt, arg in optlist:
198 kernel_original_path = arg
200 kernel_cleaned_path = arg
/bionic/libc/kernel/uapi/xen/
Dprivcmd.h27 __u64 arg[5]; member

12