Home
last modified time | relevance | path

Searched refs:child_stack (Results 1 – 25 of 42) 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/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/kernel/syscalls/ioctl/
Dioctl_ns01.c29 static char *child_stack; variable
38 child_stack = ltp_alloc_stack(STACK_SIZE); in setup()
39 if (!child_stack) in setup()
45 free(child_stack); in cleanup()
79 STACK_SIZE, child_stack) == -1) in run()
Dioctl_ns06.c29 static char *child_stack; variable
38 child_stack = ltp_alloc_stack(STACK_SIZE); in setup()
39 if (!child_stack) in setup()
45 free(child_stack); in cleanup()
59 STACK_SIZE, child_stack); in run()
Dioctl_ns05.c28 static char *child_stack; variable
37 child_stack = ltp_alloc_stack(STACK_SIZE); in setup()
38 if (!child_stack) in setup()
44 free(child_stack); in cleanup()
60 STACK_SIZE, child_stack); in run()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D15-1.c105 int *child_stack; in threaded() local
116 ret = pthread_create(&gchild, NULL, teststack, &child_stack); in threaded()
132 output("Child location: %p\n", child_stack); in threaded()
135 if ((((long)scenarii[sc].bottom) < ((long)child_stack)) in threaded()
136 && (((long)child_stack) < in threaded()
/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/clone/
Dclone09.c15 static void *child_stack; variable
24 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE); in setup()
32 free(child_stack); in cleanup()
44 TEST(ltp_clone(flags, newnet, NULL, CHILD_STACK_SIZE, child_stack)); in clone_child()
Dclone05.c23 static void *child_stack; variable
43 CHILD_STACK_SIZE, child_stack), "clone with vfork"); in verify_clone()
54 {&child_stack, .size = CHILD_STACK_SIZE},
Dclone07.c21 static void *child_stack; variable
34 child_stack)); in verify_clone()
57 {&child_stack, .size = CHILD_STACK_SIZE},
Dclone01.c20 static void *child_stack; variable
32 CHILD_STACK_SIZE, child_stack), "clone()"); in verify_clone()
52 {&child_stack, .size = CHILD_STACK_SIZE},
Dclone06.c23 static void *child_stack; variable
46 child_stack)); in verify_clone()
63 {&child_stack, .size = CHILD_STACK_SIZE},
Dclone03.c18 static void *child_stack; variable
31 child_stack)); in verify_clone()
57 {&child_stack, .size = CHILD_STACK_SIZE},
Dclone02.c118 void *child_stack; in main() local
125 child_stack = malloc(CHILD_STACK_SIZE); in main()
126 if (child_stack == NULL) in main()
140 CHILD_STACK_SIZE, child_stack)); in main()
179 free(child_stack); in main()
Dclone08.c21 static void *child_stack; variable
68 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE); in setup()
73 free(child_stack); in cleanup()
79 child_stack, &ptid, NULL, &ctid)); in clone_child()
Dclone04.c23 void *child_stack; member
40 CHILD_STACK_SIZE, tc->child_stack), in verify_clone()
/external/ltp/testcases/kernel/syscalls/setns/
Dsetns02.c116 void *child_stack; in test_flag() local
119 child_stack = SAFE_MALLOC(CHILD_STACK_SIZE); in test_flag()
124 CHILD_STACK_SIZE, child_stack); in test_flag()
129 free(child_stack); in test_flag()
/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)
/external/strace/tests/
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-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)

12