Searched refs:child_stack (Results 1 - 25 of 27) sorted by relevance

12

/external/compiler-rt/test/lsan/TestCases/
H A Dswapcontext.cc20 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/
H A Dsanitizer_linux_s390.cc58 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, argument
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)[
[all...]
H A Dsanitizer_linux.cc914 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, argument
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, in argument
1046 internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, int *parent_tidptr, void *newtls, int *child_tidptr) argument
1097 internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, int *parent_tidptr, void *newtls, int *child_tidptr) argument
[all...]
H A Dsanitizer_linux.h52 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg,
/external/ltp/testcases/kernel/syscalls/clone/
H A Dclone01.c44 void *child_stack; local
51 child_stack = malloc(CHILD_STACK_SIZE);
52 if (child_stack == NULL)
57 TEST(ltp_clone(SIGCHLD, do_child, NULL, CHILD_STACK_SIZE, child_stack));
72 free(child_stack);
H A Dclone04.c39 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);
H A Dclone03.c60 void *child_stack; local
69 child_stack = malloc(CHILD_STACK_SIZE);
70 if (child_stack == NULL)
80 child_stack));
112 free(child_stack);
H A Dclone05.c46 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);
H A Dclone07.c51 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);
H A Dclone06.c50 void *child_stack; local
58 child_stack = malloc(CHILD_STACK_SIZE);
59 if (child_stack == NULL)
69 child_stack));
99 free(child_stack);
H A Dclone02.c117 void *child_stack; local
124 child_stack = malloc(CHILD_STACK_SIZE);
125 if (child_stack == NULL)
140 CHILD_STACK_SIZE, child_stack));
179 free(child_stack);
H A Dclone08.c29 static void *child_stack; variable
108 child_stack = SAFE_MALLOC(cleanup, CHILD_STACK_SIZE);
113 free(child_stack);
121 child_stack, &ptid, NULL, &ctid));
/external/compiler-rt/test/asan/TestCases/Linux/
H A Dclone_test.cc25 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];
H A Dswapcontext_test.cc49 int Run(int arg, int mode, char *child_stack) { argument
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];
H A Dswapcontext_annotation.cc97 int Run(int arg, int mode, char *child_stack) { argument
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];
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
H A D15-1.c111 int *child_stack; local
122 ret = pthread_create(&gchild, NULL, teststack, &child_stack);
138 output("Child location: %p\n", child_stack);
141 if ((((long)scenarii[sc].bottom) < ((long)child_stack))
142 && (((long)child_stack) <
/external/valgrind/none/tests/linux/
H A Dclonev.c27 void *child_stack = mmap( local
30 if (NULL == child_stack) {
36 if (-1 == mprotect((char *)child_stack, page_size, PROT_NONE)) {
41 if (-1 == mprotect((char *)child_stack + page_size + stack_size,
47 void *stack_start = (char *)child_stack + page_size + stack_size;
/external/ltp/testcases/kernel/syscalls/setns/
H A Dsetns02.c139 void *child_stack; local
142 child_stack = malloc(CHILD_STACK_SIZE);
143 if (child_stack == NULL)
149 CHILD_STACK_SIZE, child_stack);
159 free(child_stack);
/external/strace/tests/
H A Dioctl_nsfs.c108 # define clone(fn, child_stack, flags, arg) \
109 __clone2(fn, child_stack, get_page_size() / 2, flags, arg)
/external/strace/tests-m32/
H A Dioctl_nsfs.c108 # define clone(fn, child_stack, flags, arg) \
109 __clone2(fn, child_stack, get_page_size() / 2, flags, arg)
/external/strace/tests-mx32/
H A Dioctl_nsfs.c108 # define clone(fn, child_stack, flags, arg) \
109 __clone2(fn, child_stack, get_page_size() / 2, flags, arg)
/external/libchrome/sandbox/linux/services/
H A Dsyscall_wrappers.h33 // |regs| is not supported and must be passed as nullptr. |child_stack| must be
37 std::nullptr_t child_stack,
H A Dsyscall_wrappers.cc36 std::nullptr_t child_stack,
56 return syscall(__NR_clone, flags, child_stack, ptid, ctid, tls);
60 return syscall(__NR_clone, flags, child_stack, ptid, tls, ctid);
35 sys_clone(unsigned long flags, std::nullptr_t child_stack, pid_t* ptid, pid_t* ctid, std::nullptr_t tls) argument
/external/google-breakpad/src/third_party/lss/
H A Dlinux_syscall_support.h1745 LSS_INLINE int LSS_NAME(clone)(int (*fn)(void *), void *child_stack, argument
1755 /* if (child_stack == NULL)
1762 * child_stack = (child_stack & ~0xF) - 20;
1777 * %ecx = child_stack,
1826 "m"(fn), "m"(child_stack), "m"(flags), "m"(arg),
2066 LSS_INLINE int LSS_NAME(clone)(int (*fn)(void *), void *child_stack, argument
2077 /* if (child_stack == NULL)
2095 * %rsi = child_stack,
2133 "S"(LSS_SYSCALL_ARG(child_stack)),
2234 clone(int (*fn)(void *), void *child_stack, int flags, void *arg, int *parent_tidptr, void *newtls, int *child_tidptr) argument
2360 clone(int (*fn)(void *), void *child_stack, int flags, void *arg, int *parent_tidptr, void *newtls, int *child_tidptr) argument
2516 clone(int (*fn)(void *), void *child_stack, int flags, void *arg, int *parent_tidptr, void *newtls, int *child_tidptr) argument
2695 clone(int (*fn)(void *), void *child_stack, int flags, void *arg, int *parent_tidptr, void *newtls, int *child_tidptr) argument
2903 clone(int (*fn)(void *), void *child_stack, int flags, void *arg, int *parent_tidptr, void *newtls, int *child_tidptr) argument
4003 void *child_stack = NULL; local
[all...]
/external/valgrind/memcheck/tests/arm64-linux/
H A Dscalar.stderr.exp784 Syscall param clone(child_stack) contains uninitialised byte(s)

Completed in 612 milliseconds

12