Home
last modified time | relevance | path

Searched refs:child_context (Results 1 – 3 of 3) sorted by relevance

/external/compiler-rt/test/lsan/TestCases/
Dswapcontext.cc32 ucontext_t child_context; in main() local
33 getcontext(&child_context); in main()
34 child_context.uc_stack.ss_sp = child_stack; in main()
35 child_context.uc_stack.ss_size = kStackSize / 2; in main()
36 child_context.uc_link = &orig_context; in main()
37 makecontext(&child_context, Child, 0); in main()
38 if (swapcontext(&orig_context, &child_context) < 0) { in main()
/external/compiler-rt/test/asan/TestCases/Linux/
Dswapcontext_test.cc16 ucontext_t child_context; variable
42 if (swapcontext(&child_context, &orig_context) < 0) { in Child()
52 getcontext(&child_context); in Run()
53 child_context.uc_stack.ss_sp = child_stack; in Run()
54 child_context.uc_stack.ss_size = kStackSize / 2; in Run()
56 child_context.uc_link = &orig_context; in Run()
58 makecontext(&child_context, (void (*)())Child, 1, mode); in Run()
59 if (swapcontext(&orig_context, &child_context) < 0) { in Run()
Dswapcontext_annotation.cc21 ucontext_t child_context; variable
78 if (swapcontext(&child_context, &orig_context) < 0) { in Child()
90 if (swapcontext(&child_context, &next_child_context) < 0) { in Child()
100 getcontext(&child_context); in Run()
101 child_context.uc_stack.ss_sp = child_stack; in Run()
102 child_context.uc_stack.ss_size = kStackSize / 2; in Run()
104 child_context.uc_link = &orig_context; in Run()
106 makecontext(&child_context, (void (*)())Child, 1, mode); in Run()
108 __sanitizer_start_switch_fiber(child_context.uc_stack.ss_sp, in Run()
109 child_context.uc_stack.ss_size); in Run()
[all …]