/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/ |
H A D | fp_unwinder.cpp | 34 int32_t FpUnwinder::Unwind(uintptr_t* pcs, int32_t sz, int32_t skipFrameNum) in Unwind() argument 36 GetFpPcRegs(pcs); in Unwind() 38 uintptr_t firstFp = pcs[1]; in Unwind() 60 pcs[index - skipFrameNum] = *reinterpret_cast<uintptr_t*>(fp + sizeof(uintptr_t)); in Unwind() 72 int32_t FpUnwinder::UnwindFallback(uintptr_t* pcs, int32_t sz, int32_t skipFrameNum) in UnwindFallback() argument 78 uintptr_t firstFp = pcs[1]; in UnwindFallback() 84 if (!ReadUintptrSafe(addr, pcs[++index])) { in UnwindFallback() 88 pcs[index - skipFrameNum] = 0; in UnwindFallback()
|
H A D | async_stack.cpp | 70 uintptr_t pcs[maxSize] = {0}; in CollectAsyncStack() local 72 … size_t sz = static_cast<size_t>(OHOS::HiviewDFX::FpUnwinder::Unwind(pcs, maxSize, skipFrameNum)); in CollectAsyncStack() 75 OHOS::HiviewDFX::UniqueStackTable::Instance()->PutPcsInTable(stackIdPtr, pcs, sz); in CollectAsyncStack()
|
H A D | fp_unwinder.h | 37 static int32_t Unwind(uintptr_t* pcs, int32_t sz, int32_t skipFrameNum); 39 static int32_t UnwindFallback(uintptr_t* pcs, int32_t sz, int32_t skipFrameNum);
|
H A D | unique_stack_table.cpp | 154 uint64_t UniqueStackTable::PutPcsInTable(StackId *stackId, uintptr_t* pcs, size_t nr) in PutPcsInTable() argument 164 uint64_t pc = pcs[reverseIndex]; in PutPcsInTable() 209 bool UniqueStackTable::GetPcsByStackId(StackId stackId, std::vector<uintptr_t>& pcs) in GetPcsByStackId() argument 221 pcs.push_back( in GetPcsByStackId()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | lock_parser_test.cpp | 125 std::vector<uintptr_t> pcs = unwinder->GetPcs(); variable 126 ASSERT_FALSE(pcs.empty()); 129 (void)unwinder->GetFramesByPcs(frames, pcs); 179 std::vector<uintptr_t> pcs = unwinder->GetPcs(); variable 180 ASSERT_FALSE(pcs.empty()); 183 (void)unwinder->GetFramesByPcs(frames, pcs); 231 std::vector<uintptr_t> pcs = unwinder->GetPcs(); variable 233 (void)unwinder->GetFramesByPcs(frames, pcs); 272 (void)unwinder->GetFramesByPcs(frames, pcs); 310 ASSERT_FALSE(pcs.empty()); [all …]
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | fp_unwinder_test.cpp | 52 uintptr_t pcs[maxSize] = {0}; variable 53 auto unwSz = FpUnwinder::GetPtr()->Unwind(pc, fp, pcs, maxSize); 60 frame.pc = static_cast<uint64_t>(pcs[i]); 84 uintptr_t pcs[maxSize] = {0}; variable 85 auto unwSz = FpUnwinder::GetPtr()->UnwindSafe(pc, fp, pcs, maxSize); 92 frame.pc = static_cast<uint64_t>(pcs[i]);
|
H A D | unwinder_test.cpp | 504 auto pcs = unwinder->GetPcs(); variable 506 unwinder->GetFramesByPcs(frames, pcs); 821 auto pcs = unwinder->GetPcs(); variable 823 unwinder->GetFramesByPcs(frames, pcs);
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | fp_unwinder.h | 50 … size_t Unwind(uintptr_t pc, uintptr_t fp, uintptr_t* pcs, size_t maxSize, size_t skipFrameNum = 0) 52 if (pcs == nullptr) { 70 pcs[index - skipFrameNum] = pc; 85 …NO_SANITIZE size_t UnwindSafe(uintptr_t pc, uintptr_t fp, uintptr_t* pcs, size_t maxSize, size_t s… 87 if (pcs == nullptr) { 99 pcs[index - skipFrameNum] = pc;
|
H A D | unwinder.h | 86 void GetFramesByPcs(std::vector<DfxFrame>& frames, std::vector<uintptr_t> pcs); 95 static void GetLocalFramesByPcs(std::vector<DfxFrame>& frames, std::vector<uintptr_t> pcs);
|
H A D | thread_context.h | 50 uintptr_t pcs[DEFAULT_MAX_LOCAL_FRAME_NUM] {0};
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/benchmarktest/unwind/ |
H A D | unwind_local_benchmark.cpp | 66 std::vector<unw_word_t> pcs; in UnwindLocal() local 74 pcs.emplace_back(pc); in UnwindLocal() 78 LOGU("%s pcs.size: %zu", __func__, pcs.size()); in UnwindLocal() 79 return pcs.size(); in UnwindLocal()
|
H A D | unwind_remote_benchmark.cpp | 85 std::vector<unw_word_t> pcs; in UnwindRemote() local 93 pcs.emplace_back(pc); in UnwindRemote() 98 LOGU("%s pcs.size: %zu", __func__, pcs.size()); in UnwindRemote() 99 return pcs.size(); in UnwindRemote()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/ |
H A D | unwind_local_benchmark.cpp | 130 auto& pcs = dataPtr->unwinder->GetPcs(); in UnwinderLocalFp() local 135 frame.pc = static_cast<uint64_t>(pcs[i]); in UnwinderLocalFp() 148 uintptr_t pcs[maxSize] = {0}; in FpUnwinderLocal() local 149 auto unwSize = FpUnwinder::GetPtr()->Unwind(regs[0], regs[1], pcs, maxSize); in FpUnwinderLocal() 158 frame.pc = static_cast<uint64_t>(pcs[i]); in FpUnwinderLocal() 171 uintptr_t pcs[maxSize] = {0}; in FpUnwinderLocalSafe() local 172 auto unwSize = FpUnwinder::GetPtr()->UnwindSafe(regs[0], regs[1], pcs, maxSize); in FpUnwinderLocalSafe() 181 frame.pc = static_cast<uint64_t>(pcs[i]); in FpUnwinderLocalSafe()
|
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | sample_stack_printer.cpp | 82 void SampleStackPrinter::Insert(std::vector<uintptr_t>& pcs, int32_t count) in Insert() argument 94 for (auto iter = pcs.rbegin(); iter != pcs.rend(); ++iter) { in Insert() 150 std::vector<uintptr_t> pcs; in GetTreeStack() local 153 if (uniqueStackTable->GetPcsByStackId(stackId, pcs)) { in GetTreeStack() 154 Insert(pcs, it->count); in GetTreeStack()
|
H A D | thread_sampler.cpp | 388 auto pcs = unwinder_->GetPcs(); in ProcessStackBuffer() local 391 uniqueStackTable_->PutPcsInTable(stackIdPtr, pcs.data(), pcs.size()); in ProcessStackBuffer()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/async_stack/ |
H A D | async_stack_test.cpp | 111 uintptr_t pcs[maxSize] = {0}; variable 113 std::thread (FpUnwinder::Unwind, pcs, maxSize, skipFrameNum).join(); 114 int32_t ret = FpUnwinder::UnwindFallback(pcs, maxSize, skipFrameNum);
|
H A D | stack_table_test.cpp | 140 std::vector<uintptr_t> pcs; variable 141 bool ret = stackTable->GetPcsByStackId(stackId, pcs);
|
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_unwind_async_thread.cpp | 107 std::vector<uintptr_t> pcs; in GetSubmitterStack() local 110 if (table->GetPcsByStackId(id, pcs)) { in GetSubmitterStack() 111 unwinder_->GetFramesByPcs(submitterFrames, pcs); in GetSubmitterStack()
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/include/ |
H A D | unique_stack_table.h | 108 uint64_t PutPcsInTable(StackId *stackId, uintptr_t *pcs, size_t nr); 109 bool GetPcsByStackId(const StackId stackId, std::vector<uintptr_t>& pcs);
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | unwinder.cpp | 196 void GetFramesByPcs(std::vector<DfxFrame>& frames, std::vector<uintptr_t> pcs); 435 void Unwinder::GetFramesByPcs(std::vector<DfxFrame>& frames, std::vector<uintptr_t> pcs) in GetFramesByPcs() argument 437 impl_->GetFramesByPcs(frames, pcs); in GetFramesByPcs() 539 pcs_.emplace_back(threadContext->pcs[i]); in UnwindLocalWithTid() 1346 void Unwinder::Impl::GetFramesByPcs(std::vector<DfxFrame>& frames, std::vector<uintptr_t> pcs) in GetFramesByPcs() argument 1350 for (size_t i = 0; i < pcs.size(); ++i) { in GetFramesByPcs() 1353 frame.pc = static_cast<uint64_t>(StripPac(pcs[i], 0)); in GetFramesByPcs() 1357 if ((maps_ == nullptr) || !maps_->FindMapByAddr(pcs[i], map) || (map == nullptr)) { in GetFramesByPcs() 1367 void Unwinder::GetLocalFramesByPcs(std::vector<DfxFrame>& frames, std::vector<uintptr_t> pcs) in GetLocalFramesByPcs() argument 1370 for (size_t i = 0; i < pcs.size(); ++i) { in GetLocalFramesByPcs() [all …]
|
H A D | thread_context.cpp | 196 …ctxPtr->frameSz = FpUnwinder::GetPtr()->UnwindSafe(pc, fp, ctxPtr->pcs, DEFAULT_MAX_LOCAL_FRAME_NU… in CopyContextAndWaitTimeout()
|
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/ |
H A D | sample_stack_printer.h | 59 void Insert(std::vector<uintptr_t>& pcs, int32_t count);
|
/ohos5.0/docs/zh-cn/design/ |
H A D | OpenHarmony部件设计和开发指南.md | 39 > 说明:最小系统定义以及对应的部件集合请在[OpenHarmony产品兼容性规范](https://www.openharmony.cn/certification/document/pcs)PC…
|
/ohos5.0/docs/en/design/ |
H A D | OpenHarmony-part-design.md | 39 …rmony Product Compatibility Specifications](https://www.openharmony.cn/certification/document/pcs).
|
/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | uniform-data-type-list.md | 132 …al.text | .gcd | text/x-pcs-gcd …
|