Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 8 of 8) sorted by relevance

/system/extras/simpleperf/
DRecordReadThread.cpp479 uint64_t stack_size; in PushRecordToRecordBuffer() local
480 kernel_record_reader->ReadRecord(stack_size_pos, sizeof(stack_size), &stack_size); in PushRecordToRecordBuffer()
481 if (stack_size > 0) { in PushRecordToRecordBuffer()
482 size_t dyn_stack_size_pos = stack_size_pos + sizeof(stack_size) + stack_size; in PushRecordToRecordBuffer()
490 dyn_stack_size = stack_size; in PushRecordToRecordBuffer()
497 if (stack_size > new_stack_size) { in PushRecordToRecordBuffer()
500 new_header.size -= stack_size - new_stack_size; in PushRecordToRecordBuffer()
DRecordReadThread_test.cpp96 uint64_t stack_size; in TEST() local
97 read_record_fn(pos, sizeof(stack_size), &stack_size); in TEST()
98 ASSERT_EQ(static_cast<SampleRecord*>(record.get())->stack_user_data.size, stack_size); in TEST()
130 const perf_event_attr& attr, size_t record_count, size_t stack_size, size_t dyn_stack_size) { in CreateFakeRecords() argument
134 std::vector<char>(stack_size), dyn_stack_size); in CreateFakeRecords()
DOfflineUnwinder.h73 size_t stack_size, std::vector<uint64_t>* ips, std::vector<uint64_t>* sps);
Drecord_test.cpp105 for (size_t stack_size : {8, 1024}) { in TEST_F()
106 SampleRecord r(event_attr, 0, 1, 2, 3, 4, 5, 6, {1}, std::vector<char>(stack_size), 10); in TEST_F()
DOfflineUnwinder.cpp187 const char* stack, size_t stack_size, in UnwindCallChain() argument
208 stack_addr, stack_addr + stack_size)); in UnwindCallChain()
281 unwinding_result_.stack_end = stack_addr + stack_size; in UnwindCallChain()
/system/core/libbacktrace/
Dbacktrace_offline_test.cpp107 const size_t stack_size = 16 * 1024; in TEST_F() local
108 void* stack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST_F()
113 ASSERT_EQ(0, pthread_attr_setstack(&attr, reinterpret_cast<void*>(stack), stack_size)); in TEST_F()
122 reinterpret_cast<uint8_t*>(stack) + stack_size); in TEST_F()
125 ASSERT_EQ(0, munmap(stack, stack_size)); in TEST_F()
132 stack_info.end = stack_addr + stack_size; in TEST_F()
Dbacktrace_test.cpp345 EXPECT_EQ(bt_ign2->GetFrame(i)->stack_size, bt_ign1->GetFrame(i+1)->stack_size); in VerifyIgnoreFrames()
349 EXPECT_EQ(bt_ign2->GetFrame(i)->stack_size, bt_all->GetFrame(i+2)->stack_size); in VerifyIgnoreFrames()
830 frame.stack_size = 0; in TEST_F()
/system/core/libbacktrace/include/backtrace/
DBacktrace.h89 size_t stack_size; // The size of the stack, zero indicate an unknown stack size. member