Home
last modified time | relevance | path

Searched refs:child_stack (Results 1 – 25 of 40) sorted by relevance

12

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_s390.cc58 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, in internal_clone() argument
60 if (!fn || !child_stack) in internal_clone()
62 CHECK_EQ(0, (uptr)child_stack % 16); in internal_clone()
65 child_stack = (char *)child_stack - 160; in internal_clone()
67 child_stack = (char *)child_stack - 96; in internal_clone()
70 ((unsigned long *)child_stack)[0] = 0; in internal_clone()
72 ((unsigned long *)child_stack)[1] = (uptr)fn; in internal_clone()
73 ((unsigned long *)child_stack)[2] = (uptr)arg; in internal_clone()
75 register void *__cstack __asm__("r2") = child_stack; in internal_clone()
Dsanitizer_linux.cc914 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, in internal_clone() argument
917 if (!fn || !child_stack) in internal_clone()
919 CHECK_EQ(0, (uptr)child_stack % 16); in internal_clone()
920 child_stack = (char *)child_stack - 2 * sizeof(unsigned long long); in internal_clone()
921 ((unsigned long long *)child_stack)[0] = (uptr)fn; in internal_clone()
922 ((unsigned long long *)child_stack)[1] = (uptr)arg; in internal_clone()
961 "S"(child_stack), in internal_clone()
970 uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg, in internal_clone() argument
973 if (!fn || !child_stack) in internal_clone()
975 CHECK_EQ(0, (uptr)child_stack % 16); in internal_clone()
[all …]
/external/ltp/testcases/kernel/syscalls/clone/
Dclone04.c39 static void *child_stack; variable
43 void **child_stack; member
66 if (test_cases[ind].child_stack == NULL) { in main()
68 } else if (*test_cases[ind].child_stack == NULL) { in main()
73 test_stack = child_stack; in main()
102 child_stack = malloc(CHILD_STACK_SIZE); in setup()
107 free(child_stack); in cleanup()
Dclone01.c45 void *child_stack; in main() local
52 child_stack = malloc(CHILD_STACK_SIZE); in main()
53 if (child_stack == NULL) in main()
58 TEST(ltp_clone(SIGCHLD, do_child, NULL, CHILD_STACK_SIZE, child_stack)); in main()
70 free(child_stack); in main()
Dclone05.c46 void *child_stack; in main() local
52 child_stack = malloc(CHILD_STACK_SIZE); in main()
53 if (child_stack == NULL) in main()
60 CHILD_STACK_SIZE, child_stack)); in main()
74 free(child_stack); in main()
Dclone07.c51 void *child_stack; in main() local
59 child_stack = malloc(CHILD_STACK_SIZE); in main()
60 if (child_stack == NULL) in main()
65 CHILD_STACK_SIZE, child_stack); in main()
74 free(child_stack); in main()
Dclone03.c60 void *child_stack; in main() local
69 child_stack = malloc(CHILD_STACK_SIZE); in main()
70 if (child_stack == NULL) in main()
80 child_stack)); in main()
112 free(child_stack); in main()
Dclone06.c50 void *child_stack; in main() local
58 child_stack = malloc(CHILD_STACK_SIZE); in main()
59 if (child_stack == NULL) in main()
69 child_stack)); in main()
99 free(child_stack); in main()
Dclone09.c16 static void *child_stack; variable
25 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE); in setup()
33 free(child_stack); in cleanup()
45 TEST(ltp_clone(flags, newnet, NULL, CHILD_STACK_SIZE, child_stack)); in clone_child()
Dclone02.c118 void *child_stack; in main() local
125 child_stack = malloc(CHILD_STACK_SIZE); in main()
126 if (child_stack == NULL) in main()
141 CHILD_STACK_SIZE, child_stack)); in main()
180 free(child_stack); in main()
Dclone08.c21 static void *child_stack; variable
77 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE); in setup()
82 free(child_stack); in cleanup()
88 child_stack, &ptid, NULL, &ctid)); in clone_child()
/external/compiler-rt/test/lsan/TestCases/
Dswapcontext.cc20 int child_stack; in Child() local
21 printf("Child: %p\n", &child_stack); in Child()
28 char *child_stack = (argc > 1) ? stack_memory : heap_memory; in main() local
30 printf("Child stack: %p\n", child_stack); in main()
34 child_context.uc_stack.ss_sp = child_stack; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D15-1.c104 int *child_stack; in threaded() local
115 ret = pthread_create(&gchild, NULL, teststack, &child_stack); in threaded()
131 output("Child location: %p\n", child_stack); in threaded()
134 if ((((long)scenarii[sc].bottom) < ((long)child_stack)) in threaded()
135 && (((long)child_stack) < in threaded()
/external/ltp/testcases/kernel/syscalls/ioctl/
Dioctl_ns01.c27 static char *child_stack; variable
36 child_stack = ltp_alloc_stack(STACK_SIZE); in setup()
37 if (!child_stack) in setup()
43 free(child_stack); in cleanup()
77 STACK_SIZE, child_stack) == -1) in run()
Dioctl_ns06.c27 static char *child_stack; variable
36 child_stack = ltp_alloc_stack(STACK_SIZE); in setup()
37 if (!child_stack) in setup()
43 free(child_stack); in cleanup()
57 STACK_SIZE, child_stack); in run()
Dioctl_ns05.c26 static char *child_stack; variable
35 child_stack = ltp_alloc_stack(STACK_SIZE); in setup()
36 if (!child_stack) in setup()
42 free(child_stack); in cleanup()
58 STACK_SIZE, child_stack); in run()
/external/compiler-rt/test/asan/TestCases/Linux/
Dswapcontext_test.cc49 int Run(int arg, int mode, char *child_stack) { in Run() argument
50 printf("Child stack: %p\n", child_stack); in Run()
53 child_context.uc_stack.ss_sp = child_stack; in Run()
65 child_stack[i] = i; in Run()
67 return child_stack[arg]; in Run()
Dclone_test.cc25 char __attribute__((aligned(16))) child_stack[kStackSize + 1]; in main() local
26 char *sp = child_stack + kStackSize; // Stack grows down. in main()
38 child_stack[i] = i; in main()
39 int ret = child_stack[argc - 1]; in main()
Dswapcontext_annotation.cc97 int Run(int arg, int mode, char *child_stack) { in Run() argument
98 printf("Child stack: %p\n", child_stack); in Run()
101 child_context.uc_stack.ss_sp = child_stack; in Run()
121 child_stack[i] = i; in Run()
123 return child_stack[arg]; in Run()
/external/ltp/testcases/kernel/syscalls/setns/
Dsetns02.c139 void *child_stack; in test_flag() local
142 child_stack = malloc(CHILD_STACK_SIZE); in test_flag()
143 if (child_stack == NULL) in test_flag()
149 CHILD_STACK_SIZE, child_stack); in test_flag()
158 free(child_stack); in test_flag()
/external/strace/tests-m32/
Dclone_parent.c50 # define clone(fn, child_stack, flags, arg) \ argument
51 __clone2(fn, child_stack, child_stack_size, flags, arg)
Dclone_ptrace.c61 # define clone(fn, child_stack, flags, arg) \ argument
62 __clone2(fn, child_stack, child_stack_size, flags, arg)
/external/strace/tests-mx32/
Dclone_parent.c50 # define clone(fn, child_stack, flags, arg) \ argument
51 __clone2(fn, child_stack, child_stack_size, flags, arg)
Dclone_ptrace.c61 # define clone(fn, child_stack, flags, arg) \ argument
62 __clone2(fn, child_stack, child_stack_size, flags, arg)
/external/strace/tests/
Dclone_parent.c50 # define clone(fn, child_stack, flags, arg) \ argument
51 __clone2(fn, child_stack, child_stack_size, flags, arg)

12