HomeSort by relevance Sort by last modified time
    Searched refs:child_stack (Results 1 - 25 of 35) sorted by null

1 2

  /external/compiler-rt/test/lsan/TestCases/
swapcontext.cc 20 int child_stack; local
21 printf("Child: %p\n", &child_stack);
28 char *child_stack = (argc > 1) ? stack_memory : heap_memory; local
30 printf("Child stack: %p\n", child_stack);
34 child_context.uc_stack.ss_sp = child_stack;
  /external/compiler-rt/lib/sanitizer_common/
sanitizer_linux_s390.cc 58 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg,
60 if (!fn || !child_stack)
62 CHECK_EQ(0, (uptr)child_stack % 16);
65 child_stack = (char *)child_stack - 160;
67 child_stack = (char *)child_stack - 96;
70 ((unsigned long *)child_stack)[0] = 0;
72 ((unsigned long *)child_stack)[1] = (uptr)fn;
73 ((unsigned long *)child_stack)[2] = (uptr)arg
    [all...]
sanitizer_linux.cc 914 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg,
917 if (!fn || !child_stack)
919 CHECK_EQ(0, (uptr)child_stack % 16);
920 child_stack = (char *)child_stack - 2 * sizeof(unsigned long long);
921 ((unsigned long long *)child_stack)[0] = (uptr)fn;
922 ((unsigned long long *)child_stack)[1] = (uptr)arg;
928 * %rsi = child_stack,
961 "S"(child_stack),
970 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg
    [all...]
  /external/ltp/testcases/kernel/syscalls/clone/
clone01.c 45 void *child_stack; local
52 child_stack = malloc(CHILD_STACK_SIZE);
53 if (child_stack == NULL)
58 TEST(ltp_clone(SIGCHLD, do_child, NULL, CHILD_STACK_SIZE, child_stack));
70 free(child_stack);
clone04.c 39 static void *child_stack; variable
43 void **child_stack; member in struct:test_case_t
66 if (test_cases[ind].child_stack == NULL) {
68 } else if (*test_cases[ind].child_stack == NULL) {
73 test_stack = child_stack;
102 child_stack = malloc(CHILD_STACK_SIZE);
107 free(child_stack);
clone03.c 60 void *child_stack; local
69 child_stack = malloc(CHILD_STACK_SIZE);
70 if (child_stack == NULL)
80 child_stack));
112 free(child_stack);
clone05.c 46 void *child_stack; local
52 child_stack = malloc(CHILD_STACK_SIZE);
53 if (child_stack == NULL)
60 CHILD_STACK_SIZE, child_stack));
74 free(child_stack);
clone07.c 51 void *child_stack; local
59 child_stack = malloc(CHILD_STACK_SIZE);
60 if (child_stack == NULL)
65 CHILD_STACK_SIZE, child_stack);
74 free(child_stack);
clone09.c 28 static void *child_stack; variable
37 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE);
45 free(child_stack);
57 TEST(ltp_clone(flags, newnet, NULL, CHILD_STACK_SIZE, child_stack));
clone06.c 50 void *child_stack; local
58 child_stack = malloc(CHILD_STACK_SIZE);
59 if (child_stack == NULL)
69 child_stack));
99 free(child_stack);
clone02.c 118 void *child_stack; local
125 child_stack = malloc(CHILD_STACK_SIZE);
126 if (child_stack == NULL)
141 CHILD_STACK_SIZE, child_stack));
180 free(child_stack);
clone08.c 31 static void *child_stack; variable
87 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE);
92 free(child_stack);
98 child_stack, &ptid, NULL, &ctid));
  /external/compiler-rt/test/asan/TestCases/Linux/
clone_test.cc 25 char __attribute__((aligned(16))) child_stack[kStackSize + 1]; local
26 char *sp = child_stack + kStackSize; // Stack grows down.
38 child_stack[i] = i;
39 int ret = child_stack[argc - 1];
swapcontext_test.cc 49 int Run(int arg, int mode, char *child_stack) {
50 printf("Child stack: %p\n", child_stack);
53 child_context.uc_stack.ss_sp = child_stack;
65 child_stack[i] = i;
67 return child_stack[arg];
swapcontext_annotation.cc 97 int Run(int arg, int mode, char *child_stack) {
98 printf("Child stack: %p\n", child_stack);
101 child_context.uc_stack.ss_sp = child_stack;
121 child_stack[i] = i;
123 return child_stack[arg];
  /bionic/libc/bionic/
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);
58 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) {
63 if (fn != nullptr && child_stack == nullptr) {
82 // Align 'child_stack' to 16 bytes.
83 uintptr_t child_stack_addr = reinterpret_cast<uintptr_t>(child_stack);
85 child_stack = reinterpret_cast<void*>(child_stack_addr);
103 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg);
106 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, child_tid, new_tls);
108 clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, new_tls, child_tid);
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
15-1.c 104 int *child_stack; local
115 ret = pthread_create(&gchild, NULL, teststack, &child_stack);
131 output("Child location: %p\n", child_stack);
134 if ((((long)scenarii[sc].bottom) < ((long)child_stack))
135 && (((long)child_stack) <
  /external/strace/tests/
clone_parent.c 50 # define clone(fn, child_stack, flags, arg) \
51 __clone2(fn, child_stack, child_stack_size, flags, arg)
clone_ptrace.c 61 # define clone(fn, child_stack, flags, arg) \
62 __clone2(fn, child_stack, child_stack_size, flags, arg)
ioctl_nsfs.c 108 # define clone(fn, child_stack, flags, arg) \
109 __clone2(fn, child_stack, get_page_size() / 2, flags, arg)
  /external/strace/tests-m32/
clone_parent.c 50 # define clone(fn, child_stack, flags, arg) \
51 __clone2(fn, child_stack, child_stack_size, flags, arg)
clone_ptrace.c 61 # define clone(fn, child_stack, flags, arg) \
62 __clone2(fn, child_stack, child_stack_size, flags, arg)
  /external/strace/tests-mx32/
clone_parent.c 50 # define clone(fn, child_stack, flags, arg) \
51 __clone2(fn, child_stack, child_stack_size, flags, arg)
clone_ptrace.c 61 # define clone(fn, child_stack, flags, arg) \
62 __clone2(fn, child_stack, child_stack_size, flags, arg)
  /external/ltp/testcases/kernel/syscalls/setns/
setns02.c 139 void *child_stack; local
142 child_stack = malloc(CHILD_STACK_SIZE);
143 if (child_stack == NULL)
149 CHILD_STACK_SIZE, child_stack);
158 free(child_stack);

Completed in 2636 milliseconds

1 2