/external/webrtc/third_party/abseil-cpp/absl/debugging/internal/ |
D | stack_consumption.cc | 80 int GetStackConsumption(const void* const altstack) { in GetStackConsumption() argument 84 begin = reinterpret_cast<const char*>(altstack); in GetStackConsumption() 87 begin = reinterpret_cast<const char*>(altstack) + kAlternateStackSize - 1; in GetStackConsumption() 112 void* altstack = mmap(nullptr, kAlternateStackSize, PROT_READ | PROT_WRITE, in GetSignalHandlerStackConsumption() local 114 ABSL_RAW_CHECK(altstack != MAP_FAILED, "mmap() failed"); in GetSignalHandlerStackConsumption() 119 sigstk.ss_sp = altstack; in GetSignalHandlerStackConsumption() 148 memset(altstack, kAlternateStackFillValue, kAlternateStackSize); in GetSignalHandlerStackConsumption() 150 int base_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 154 int signal_handler_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 173 ABSL_RAW_CHECK(munmap(altstack, kAlternateStackSize) == 0, "munmap() failed"); in GetSignalHandlerStackConsumption()
|
/external/abseil-cpp/absl/debugging/internal/ |
D | stack_consumption.cc | 80 int GetStackConsumption(const void* const altstack) { in GetStackConsumption() argument 84 begin = reinterpret_cast<const char*>(altstack); in GetStackConsumption() 87 begin = reinterpret_cast<const char*>(altstack) + kAlternateStackSize - 1; in GetStackConsumption() 112 void* altstack = mmap(nullptr, kAlternateStackSize, PROT_READ | PROT_WRITE, in GetSignalHandlerStackConsumption() local 114 ABSL_RAW_CHECK(altstack != MAP_FAILED, "mmap() failed"); in GetSignalHandlerStackConsumption() 119 sigstk.ss_sp = altstack; in GetSignalHandlerStackConsumption() 148 memset(altstack, kAlternateStackFillValue, kAlternateStackSize); in GetSignalHandlerStackConsumption() 150 int base_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 154 int signal_handler_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 173 ABSL_RAW_CHECK(munmap(altstack, kAlternateStackSize) == 0, "munmap() failed"); in GetSignalHandlerStackConsumption()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/internal/ |
D | stack_consumption.cc | 81 int GetStackConsumption(const void* const altstack) { in GetStackConsumption() argument 85 begin = reinterpret_cast<const char*>(altstack); in GetStackConsumption() 88 begin = reinterpret_cast<const char*>(altstack) + kAlternateStackSize - 1; in GetStackConsumption() 113 void* altstack = mmap(nullptr, kAlternateStackSize, PROT_READ | PROT_WRITE, in GetSignalHandlerStackConsumption() local 115 ABSL_RAW_CHECK(altstack != MAP_FAILED, "mmap() failed"); in GetSignalHandlerStackConsumption() 120 sigstk.ss_sp = altstack; in GetSignalHandlerStackConsumption() 149 memset(altstack, kAlternateStackFillValue, kAlternateStackSize); in GetSignalHandlerStackConsumption() 151 int base_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 155 int signal_handler_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 174 ABSL_RAW_CHECK(munmap(altstack, kAlternateStackSize) == 0, "munmap() failed"); in GetSignalHandlerStackConsumption()
|
/external/openscreen/third_party/abseil/src/absl/debugging/internal/ |
D | stack_consumption.cc | 81 int GetStackConsumption(const void* const altstack) { in GetStackConsumption() argument 85 begin = reinterpret_cast<const char*>(altstack); in GetStackConsumption() 88 begin = reinterpret_cast<const char*>(altstack) + kAlternateStackSize - 1; in GetStackConsumption() 113 void* altstack = mmap(nullptr, kAlternateStackSize, PROT_READ | PROT_WRITE, in GetSignalHandlerStackConsumption() local 115 ABSL_RAW_CHECK(altstack != MAP_FAILED, "mmap() failed"); in GetSignalHandlerStackConsumption() 120 sigstk.ss_sp = altstack; in GetSignalHandlerStackConsumption() 149 memset(altstack, kAlternateStackFillValue, kAlternateStackSize); in GetSignalHandlerStackConsumption() 151 int base_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 155 int signal_handler_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 174 ABSL_RAW_CHECK(munmap(altstack, kAlternateStackSize) == 0, "munmap() failed"); in GetSignalHandlerStackConsumption()
|
/external/libtextclassifier/abseil-cpp/absl/debugging/internal/ |
D | stack_consumption.cc | 81 int GetStackConsumption(const void* const altstack) { in GetStackConsumption() argument 85 begin = reinterpret_cast<const char*>(altstack); in GetStackConsumption() 88 begin = reinterpret_cast<const char*>(altstack) + kAlternateStackSize - 1; in GetStackConsumption() 113 void* altstack = mmap(nullptr, kAlternateStackSize, PROT_READ | PROT_WRITE, in GetSignalHandlerStackConsumption() local 115 ABSL_RAW_CHECK(altstack != MAP_FAILED, "mmap() failed"); in GetSignalHandlerStackConsumption() 120 sigstk.ss_sp = altstack; in GetSignalHandlerStackConsumption() 149 memset(altstack, kAlternateStackFillValue, kAlternateStackSize); in GetSignalHandlerStackConsumption() 151 int base_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 155 int signal_handler_stack_consumption = GetStackConsumption(altstack); in GetSignalHandlerStackConsumption() 174 ABSL_RAW_CHECK(munmap(altstack, kAlternateStackSize) == 0, "munmap() failed"); in GetSignalHandlerStackConsumption()
|
/external/ltp/testcases/kernel/syscalls/signal/ |
D | signal06.c | 64 char altstack[4096 * 10] __attribute__((aligned(4096))); variable 102 TEST(mprotect(altstack, sizeof(altstack), PROT_READ)); in tfunc() 107 TEST(mprotect(altstack, sizeof(altstack), PROT_READ | PROT_WRITE)); in tfunc() 124 .ss_sp = altstack, in main() 125 .ss_size = sizeof(altstack), in main()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix_libcdep.cc | 149 stack_t altstack, oldstack; in SetAlternateSignalStack() local 158 altstack.ss_sp = (char*) base; in SetAlternateSignalStack() 159 altstack.ss_flags = 0; in SetAlternateSignalStack() 160 altstack.ss_size = kAltStackSize; in SetAlternateSignalStack() 161 CHECK_EQ(0, sigaltstack(&altstack, nullptr)); in SetAlternateSignalStack() 165 stack_t altstack, oldstack; in UnsetAlternateSignalStack() local 166 altstack.ss_sp = nullptr; in UnsetAlternateSignalStack() 167 altstack.ss_flags = SS_DISABLE; in UnsetAlternateSignalStack() 168 altstack.ss_size = kAltStackSize; // Some sane value required on Darwin. in UnsetAlternateSignalStack() 169 CHECK_EQ(0, sigaltstack(&altstack, &oldstack)); in UnsetAlternateSignalStack()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix_libcdep.cpp | 171 stack_t altstack, oldstack; in SetAlternateSignalStack() local 180 altstack.ss_sp = (char*) base; in SetAlternateSignalStack() 181 altstack.ss_flags = 0; in SetAlternateSignalStack() 182 altstack.ss_size = kAltStackSize; in SetAlternateSignalStack() 183 CHECK_EQ(0, sigaltstack(&altstack, nullptr)); in SetAlternateSignalStack() 187 stack_t altstack, oldstack; in UnsetAlternateSignalStack() local 188 altstack.ss_sp = nullptr; in UnsetAlternateSignalStack() 189 altstack.ss_flags = SS_DISABLE; in UnsetAlternateSignalStack() 190 altstack.ss_size = kAltStackSize; // Some sane value required on Darwin. in UnsetAlternateSignalStack() 191 CHECK_EQ(0, sigaltstack(&altstack, &oldstack)); in UnsetAlternateSignalStack()
|
/external/perfetto/src/profiling/memory/ |
D | client_unittest.cc | 54 stack_t altstack{}; in TEST() local 56 altstack.ss_sp = stack; in TEST() 57 altstack.ss_size = sizeof(stack); in TEST() 58 ASSERT_NE(sigaltstack(&altstack, &old_altstack), -1); in TEST()
|
D | client.cc | 99 stack_t altstack; in GetSigAltStackRange() local 101 if (sigaltstack(nullptr, &altstack) == -1) { in GetSigAltStackRange() 106 if ((altstack.ss_flags & SS_ONSTACK) == 0) { in GetSigAltStackRange() 110 return {static_cast<char*>(altstack.ss_sp), in GetSigAltStackRange() 111 static_cast<char*>(altstack.ss_sp) + altstack.ss_size}; in GetSigAltStackRange()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/ |
D | stress.c | 173 if (scenarii[sc].altstack != 0) in main() 230 if ((scenarii[sc].altstack == 0) in main()
|
D | threads_scenarii.c | 37 int altstack; /* 0 => system manages the stack; 1 => stack is provided */ member 53 .altstack=sta, \ 334 if (scenarii[i].altstack != 0) { in scenar_init()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/ |
D | threads_scenarii.c | 37 int altstack; /* 0 => system manages the stack; 1 => stack is provided */ member 53 .altstack=sta, \ 401 if (scenarii[i].altstack != 0) { in scenar_init()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/ |
D | threads_scenarii.c | 37 int altstack; /* 0 => system manages the stack; 1 => stack is provided */ member 53 .altstack=sta, \ 334 if (scenarii[i].altstack != 0) { in scenar_init()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/testfrmw/ |
D | threads_scenarii.c | 58 int altstack; member 96 .altstack = sta, \ 380 if (scenarii[i].altstack != 0) { in scenar_init()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
D | 3-2.c | 430 if ((scenarii[sc].altstack == 0) in main() 486 if ((scenarii[sc].altstack == 0) in main()
|