Home
last modified time | relevance | path

Searched refs:stack_buffer (Results 1 – 25 of 53) sorted by relevance

123

/aosp_15_r20/external/cpuinfo/deps/clog/src/
H A Dclog.c52 char stack_buffer[CLOG_STACK_BUFFER_SIZE]; in clog_vlog_fatal()
54 char* out_buffer = &stack_buffer[0]; in clog_vlog_fatal()
62 memcpy(stack_buffer, CLOG_FATAL_PREFIX, CLOG_FATAL_PREFIX_LENGTH); in clog_vlog_fatal()
64 prefix_chars = snprintf(stack_buffer, CLOG_STACK_BUFFER_SIZE, CLOG_FATAL_PREFIX_FORMAT, module); in clog_vlog_fatal()
81 &stack_buffer[prefix_chars], in clog_vlog_fatal()
102 memcpy(heap_buffer, stack_buffer, prefix_chars); in clog_vlog_fatal()
130 char stack_buffer[CLOG_STACK_BUFFER_SIZE]; in clog_vlog_error()
132 char* out_buffer = &stack_buffer[0]; in clog_vlog_error()
140 memcpy(stack_buffer, CLOG_ERROR_PREFIX, CLOG_ERROR_PREFIX_LENGTH); in clog_vlog_error()
142 prefix_chars = snprintf(stack_buffer, CLOG_STACK_BUFFER_SIZE, CLOG_ERROR_PREFIX_FORMAT, module); in clog_vlog_error()
[all …]
/aosp_15_r20/external/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/deps/clog/src/
H A Dclog.c57 char stack_buffer[CLOG_STACK_BUFFER_SIZE]; in clog_vlog_fatal()
59 char* out_buffer = &stack_buffer[0]; in clog_vlog_fatal()
68 memcpy(stack_buffer, CLOG_FATAL_PREFIX, CLOG_FATAL_PREFIX_LENGTH); in clog_vlog_fatal()
71 stack_buffer, CLOG_STACK_BUFFER_SIZE, CLOG_FATAL_PREFIX_FORMAT, module); in clog_vlog_fatal()
89 &stack_buffer[prefix_chars], in clog_vlog_fatal()
116 memcpy(heap_buffer, stack_buffer, prefix_chars); in clog_vlog_fatal()
151 char stack_buffer[CLOG_STACK_BUFFER_SIZE]; in clog_vlog_error()
153 char* out_buffer = &stack_buffer[0]; in clog_vlog_error()
162 memcpy(stack_buffer, CLOG_ERROR_PREFIX, CLOG_ERROR_PREFIX_LENGTH); in clog_vlog_error()
165 stack_buffer, CLOG_STACK_BUFFER_SIZE, CLOG_ERROR_PREFIX_FORMAT, module); in clog_vlog_error()
[all …]
/aosp_15_r20/external/cronet/base/profiler/
H A Dstack_copier_unittest.cc86 TestStackBuffer stack_buffer; in TEST() local
89 std::iota(&stack_buffer.as_uint16[0], in TEST()
90 &stack_buffer.as_uint16[0] + std::size(stack_buffer.as_uint16), in TEST()
96 reinterpret_cast<uint8_t*>(&stack_buffer.as_uint16[1]); in TEST()
102 &stack_buffer.as_uintptr[std::size(stack_buffer.as_uintptr) - in TEST()
118 EXPECT_EQ(unaligned_stack_bottom - &stack_buffer.as_uint8[0], in TEST()
140 TestStackBuffer stack_buffer = {{0}}; in TEST() local
145 reinterpret_cast<uint8_t*>(&stack_buffer.as_uint16[1]); in TEST()
149 reinterpret_cast<uintptr_t>(&stack_buffer.as_uintptr[2]); in TEST()
158 &stack_buffer.as_uintptr[0] + std::size(stack_buffer.as_uintptr), in TEST()
[all …]
H A Dstack_copier_suspend_unittest.cc111 std::unique_ptr<StackBuffer> stack_buffer = in TEST() local
117 stack_copier_suspend.CopyStack(stack_buffer.get(), &stack_top, &timestamp, in TEST()
121 reinterpret_cast<uintptr_t*>(stack_buffer.get()->buffer()); in TEST()
144 std::unique_ptr<StackBuffer> stack_buffer = in TEST() local
149 stack_buffer->size() / sizeof(stack_buffer->buffer()[0]); in TEST()
150 std::fill_n(stack_buffer->buffer(), stack_buffer_elements, in TEST()
156 stack_copier_suspend.CopyStack(stack_buffer.get(), &stack_top, &timestamp, in TEST()
160 reinterpret_cast<uintptr_t*>(stack_buffer.get()->buffer()); in TEST()
176 std::unique_ptr<StackBuffer> stack_buffer = in TEST() local
182 stack_copier_suspend.CopyStack(stack_buffer.get(), &stack_top, &timestamp, in TEST()
[all …]
H A Dstack_copier_signal_unittest.cc93 StackBuffer stack_buffer(/* buffer_size = */ 1 << 20); in TEST() local
94 memset(stack_buffer.buffer(), 0, stack_buffer.size()); in TEST()
111 bool result = copier.CopyStack(&stack_buffer, &stack_top, &timestamp, in TEST()
136 StackBuffer stack_buffer(/* buffer_size = */ 1 << 20); in TEST() local
137 memset(stack_buffer.buffer(), 0, stack_buffer.size()); in TEST()
149 bool result = copier.CopyStack(&stack_buffer, &stack_top, &timestamp, in TEST()
169 StackBuffer stack_buffer(/* buffer_size = */ 1 << 20); in TEST() local
170 memset(stack_buffer.buffer(), 0, stack_buffer.size()); in TEST()
181 bool result = copier.CopyStack(&stack_buffer, &stack_top, &timestamp, in TEST()
201 StackBuffer stack_buffer(/* buffer_size = */ 1 << 20); in TEST() local
[all …]
H A Dstack_sampler_unittest.cc70 bool CopyStack(StackBuffer* stack_buffer, in CopyStack() argument
75 std::memcpy(stack_buffer->buffer(), &(*fake_stack_)[0], in CopyStack()
77 *stack_top = reinterpret_cast<uintptr_t>(stack_buffer->buffer() + in CopyStack()
82 reinterpret_cast<uintptr_t>(stack_buffer->buffer()); in CopyStack()
100 bool CopyStack(StackBuffer* stack_buffer, in CopyStack() argument
105 *stack_top = reinterpret_cast<uintptr_t>(stack_buffer->buffer()) + in CopyStack()
278 std::unique_ptr<StackBuffer> stack_buffer = in TEST() local
281 stack_sampler->RecordStackFrames(stack_buffer.get(), &profile_builder, in TEST()
312 std::unique_ptr<StackBuffer> stack_buffer = in TEST() local
318 stack_sampler->RecordStackFrames(stack_buffer.get(), &profile_builder, in TEST()
[all …]
H A Dstack_buffer_unittest.cc20 StackBuffer stack_buffer(kBufferSize); in TEST() local
21 EXPECT_EQ(stack_buffer.size(), kBufferSize); in TEST()
24 volatile uintptr_t* buffer = stack_buffer.buffer(); in TEST()
39 StackBuffer stack_buffer(kBufferSize); in TEST() local
40 volatile uintptr_t* buffer = stack_buffer.buffer(); in TEST()
51 stack_buffer.MarkUpperBufferContentsAsUnneeded(kUndiscardedElements * in TEST()
H A Dstack_sampler.cc106 void StackSampler::RecordStackFrames(StackBuffer* stack_buffer, in RecordStackFrames() argument
109 DCHECK(stack_buffer); in RecordStackFrames()
127 stack_buffer, &stack_top, &timestamp, &thread_context, &delegate); in RecordStackFrames()
147 reinterpret_cast<uint8_t*>(stack_buffer->buffer()); in RecordStackFrames()
174 stack_buffer->MarkUpperBufferContentsAsUnneeded(kLargeStackSize); in RecordStackFrames()
H A Dstack_copier_signal.cc128 RAW_PTR_EXCLUSION StackBuffer* stack_buffer; member
164 if ((top - bottom) > params->stack_buffer->size()) { in CopyStackSignalHandler()
176 StackBuffer::kPlatformStackAlignment, params->stack_buffer->buffer()); in CopyStackSignalHandler()
228 bool StackCopierSignal::CopyStack(StackBuffer* stack_buffer, in CopyStack() argument
239 thread_context, stack_buffer, &stack_copy_bottom, in CopyStack()
H A Dstack_copier_suspend.cc24 bool StackCopierSuspend::CopyStack(StackBuffer* stack_buffer, in CopyStack() argument
54 if ((top - bottom) > stack_buffer->size()) in CopyStack()
64 StackBuffer::kPlatformStackAlignment, stack_buffer->buffer()); in CopyStack()
/aosp_15_r20/external/libchrome/base/containers/
H A Dstack_container_unittest.cc40 const int* stack_buffer = &vect.stack_data().stack_buffer()[0]; in TEST() local
46 EXPECT_EQ(stack_buffer, &vect.container()[0]); in TEST()
53 EXPECT_NE(stack_buffer, &vect.container()[0]); in TEST()
73 EXPECT_EQ(stack_buffer, &other.front()); in TEST()
H A Dstack_container.h49 T* stack_buffer() { return reinterpret_cast<T*>(stack_buffer_); } in stack_buffer() function
50 const T* stack_buffer() const { in stack_buffer() function
109 return source_->stack_buffer(); in allocate()
118 if (source_ != NULL && p == source_->stack_buffer()) in deallocate()
/aosp_15_r20/external/XNNPACK/src/
H A Dlog.c51 char stack_buffer[XNN_LOG_STACK_BUFFER_SIZE]; in xnn_vlog() local
53 char* out_buffer = &stack_buffer[0]; in xnn_vlog()
59 memcpy(stack_buffer, prefix, prefix_length * sizeof(char)); in xnn_vlog()
63 &stack_buffer[prefix_length], in xnn_vlog()
/aosp_15_r20/external/compiler-rt/test/asan/TestCases/Windows/
H A Dbeginthreadex.cc8 volatile char stack_buffer[42]; in thread_proc() local
9 for (int i = 0; i < sizeof(stack_buffer); ++i) in thread_proc()
10 stack_buffer[i] = 42; in thread_proc()
H A Dthread_simple.cc7 volatile char stack_buffer[42]; in thread_proc() local
8 for (int i = 0; i < sizeof(stack_buffer); ++i) in thread_proc()
9 stack_buffer[i] = 42; in thread_proc()
H A Dthread_suspended.cc7 volatile char stack_buffer[42]; in thread_proc() local
8 for (int i = 0; i < sizeof(stack_buffer); ++i) in thread_proc()
9 stack_buffer[i] = 42; in thread_proc()
H A Dthread_stress.cc7 volatile char stack_buffer[42]; in thread_proc() local
8 for (int i = 0; i < sizeof(stack_buffer); ++i) in thread_proc()
9 stack_buffer[i] = 42; in thread_proc()
H A Dthread_stack_reuse.cc15 volatile char stack_buffer[42]; in thread_proc_2() local
16 for (int i = 0; i < sizeof(stack_buffer); ++i) in thread_proc_2()
17 stack_buffer[i] = 42; in thread_proc_2()
H A Dstack_use_after_return.cc7 char stack_buffer[42]; in foo() local
8 x = &stack_buffer[13]; in foo()
H A Ddll_stack_use_after_return.cc10 char stack_buffer[42]; in foo() local
11 x = &stack_buffer[13]; in foo()
H A Dthread_stack_array_right_oob.cc8 volatile char stack_buffer[42]; in thread_proc() local
9 stack_buffer[subscript] = 42; in thread_proc()
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/gensrcs/external/libchrome/base/containers/
Dstack_container.h52 T* stack_buffer() { return reinterpret_cast<T*>(stack_buffer_); } in stack_buffer() function
53 const T* stack_buffer() const { in stack_buffer() function
112 return source_->stack_buffer(); in allocate()
121 if (source_ != NULL && p == source_->stack_buffer()) in deallocate()
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/1/external/libchrome/base/containers/
Dstack_container.h52 T* stack_buffer() { return reinterpret_cast<T*>(stack_buffer_); } in stack_buffer() function
53 const T* stack_buffer() const { in stack_buffer() function
112 return source_->stack_buffer(); in allocate()
121 if (source_ != NULL && p == source_->stack_buffer()) in deallocate()
/aosp_15_r20/external/leveldb/util/
H A Dwindows_logger.h47 char stack_buffer[kStackBufferSize]; in Logv() local
48 static_assert(sizeof(stack_buffer) == static_cast<size_t>(kStackBufferSize), in Logv()
56 (iteration == 0) ? stack_buffer : new char[dynamic_buffer_size]; in Logv()
H A Dposix_logger.h53 char stack_buffer[kStackBufferSize]; in Logv() local
54 static_assert(sizeof(stack_buffer) == static_cast<size_t>(kStackBufferSize), in Logv()
62 (iteration == 0) ? stack_buffer : new char[dynamic_buffer_size]; in Logv()

123