/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | unwinder.h | 29 class Unwinder { class 32 Unwinder(bool needMaps = true); 34 Unwinder(int pid, bool crash = true); 35 Unwinder(int pid, int nspid, bool crash); 37 Unwinder(std::shared_ptr<UnwindAccessors> accessors, bool local = false); 38 ~Unwinder() = default; 41 Unwinder(const Unwinder&) = delete; 42 Unwinder& operator=(const Unwinder [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | unwinder.cpp | 52 class Unwinder::Impl { 277 Unwinder::Unwinder(bool needMaps) : impl_(std::make_shared<Impl>(needMaps)) in Unwinder() function in OHOS::HiviewDFX::Unwinder 282 Unwinder::Unwinder(int pid, bool crash) : impl_(std::make_shared<Impl>(pid, crash)) in Unwinder() function in OHOS::HiviewDFX::Unwinder 286 Unwinder::Unwinder(int pid, int nspid, bool crash) : impl_(std::make_shared<Impl>(pid, nspid, crash)) in Unwinder() function in OHOS::HiviewDFX::Unwinder 291 Unwinder::Unwinder(std::shared_ptr<UnwindAccessors> accessors, bool local) in Unwinder() function in OHOS::HiviewDFX::Unwinder 296 void Unwinder [all...] |
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/ |
H A D | unwind_local_benchmark.cpp | 39 std::shared_ptr<Unwinder> unwinder = nullptr;
70 static bool GetUnwinder(void* data, std::shared_ptr<Unwinder>& unwinder, bool& isFp)
in GetUnwinder() 86 std::shared_ptr<Unwinder> unwinder = nullptr;
in UnwinderLocal() 138 Unwinder::FillLocalFrames(frames);
in UnwinderLocalFp() 139 DFXLOGU(Unwinder::GetFramesStr(frames).c_str());
in UnwinderLocalFp() 161 Unwinder::FillLocalFrames(frames);
in FpUnwinderLocal() 162 DFXLOGU(Unwinder::GetFramesStr(frames).c_str());
in FpUnwinderLocal() 184 Unwinder::FillLocalFrames(frames);
in FpUnwinderLocalSafe() 185 DFXLOGU(Unwinder::GetFramesStr(frames).c_str());
in FpUnwinderLocalSafe() 215 data.unwinder = std::make_shared<Unwinder>();
in BenchmarkUnwinderLocalFull() [all...] |
H A D | unwind_remote_benchmark.cpp | 74 static size_t UnwinderRemote(std::shared_ptr<Unwinder> unwinder, const pid_t tid)
in UnwinderRemote() 85 static size_t UnwinderRemoteFp(std::shared_ptr<Unwinder> unwinder, const pid_t tid)
in UnwinderRemoteFp() 101 static bool GetUnwinder(pid_t pid, void* data, std::shared_ptr<Unwinder>& unwinder, bool& isFp)
in GetUnwinder() 103 static std::unordered_map<pid_t, std::shared_ptr<Unwinder>> unwinders_;
in GetUnwinder() 108 unwinder = std::make_shared<Unwinder>(pid);
in GetUnwinder() 138 std::shared_ptr<Unwinder> unwinder = nullptr;
in Run()
|
H A D | unwind_local_tid_benchmark.cpp | 97 auto unwinder = std::make_shared<Unwinder>(false);
in BenchmarkUnwinderLocalWithTid() 99 auto unwinder = std::make_shared<Unwinder>();
in BenchmarkUnwinderLocalWithTid()
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | unwinder_test.cpp | 55 std::map<int, std::shared_ptr<Unwinder>> unwinders_; 67 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 72 // When the param is less than -1, maps_ = null when method Unwinder is constructed in HWTEST_F() 73 auto unwinderNegative = std::make_shared<Unwinder>(-2); in HWTEST_F() 87 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 111 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 121 GTEST_LOG_(INFO) << "UnwinderLocalTest001: frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F() 126 GTEST_LOG_(INFO) << "UnwinderLocalTest001: frames2:\n" << Unwinder::GetFramesStr(frames2); in HWTEST_F() 139 std::shared_ptr<Unwinder> unwinder = nullptr; in HWTEST_F() 147 unwinder = std::make_shared<Unwinder>(); in HWTEST_F() [all...] |
H A D | fp_unwinder_test.cpp | 64 Unwinder::FillLocalFrames(frames); in HWTEST_F() 65 GTEST_LOG_(INFO) << "FpUnwinderTest001: frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F() 96 Unwinder::FillLocalFrames(frames); in HWTEST_F() 97 GTEST_LOG_(INFO) << "FpUnwinderTest002: frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F()
|
H A D | unwinder_pac_test.cpp | 57 auto unwinder = std::make_shared<Unwinder>(pid); in HWTEST_F() 71 GTEST_LOG_(INFO) << "frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F() 96 auto unwinder = std::make_shared<Unwinder>(pid); in HWTEST_F()
|
H A D | instr_statistic_test.cpp | 63 auto unwinder = std::make_shared<Unwinder>(pid); in HWTEST_F() 77 GTEST_LOG_(INFO) << "frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/ |
H A D | backtrace_local_thread.cpp | 33 BacktraceLocalThread::BacktraceLocalThread(int32_t tid, std::shared_ptr<Unwinder> unwinder) in BacktraceLocalThread() 58 Unwinder::GetLocalFramesByPcs(frames_, unwinder_->GetPcs()); in Unwind() 69 Unwinder::GetLocalFramesByPcs(frames_, unwinder_->GetPcs()); in Unwind() 99 ss += Unwinder::GetFramesStr(frames_); in GetFormattedStr()
|
H A D | backtrace_local_thread.h | 32 explicit BacktraceLocalThread(int32_t tid, std::shared_ptr<Unwinder> unwinder); 44 std::shared_ptr<Unwinder> unwinder_;
|
H A D | backtrace_local.cpp | 57 std::shared_ptr<Unwinder> unwinder = nullptr; in GetBacktraceFramesByTid() 60 unwinder = std::make_shared<Unwinder>(false); in GetBacktraceFramesByTid() 64 unwinder = std::make_shared<Unwinder>(); in GetBacktraceFramesByTid() 89 out = threadHead + Unwinder::GetFramesStr(frames); in GetBacktraceStringByTid() 148 auto unwinder = std::make_shared<Unwinder>(); in GetProcessStacktrace()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_unwind_remote.h | 40 std::shared_ptr<Unwinder> unwinder, pid_t vmPid = 0); 46 std::shared_ptr<Unwinder> unwinder, pid_t vmPid = 0); 47 int UnwindOtherThread(std::shared_ptr<DfxProcess> process, std::shared_ptr<Unwinder> unwinder,
|
H A D | printer.h | 37 std::shared_ptr<Unwinder> unwinder); 45 std::shared_ptr<Unwinder> unwinder); 50 std::shared_ptr<Unwinder> unwinder, std::string& reasonInfo);
|
H A D | dfx_unwind_async_thread.h | 31 DfxUnwindAsyncThread(std::shared_ptr<DfxThread> thread, std::shared_ptr<Unwinder> unwinder, uint64_t stackId) in DfxUnwindAsyncThread() 41 std::shared_ptr<Unwinder> unwinder_ = nullptr;
|
H A D | lock_parser.h | 25 static bool ParseLockInfo(std::shared_ptr<Unwinder> unwinder, int32_t vmPid, int32_t tid);
|
H A D | lock_parser.cpp | 36 bool LockParser::ParseLockInfo(std::shared_ptr<Unwinder> unwinder, int32_t vmPid, int32_t tid)
in ParseLockInfo()
|
/base/hiviewdfx/faultloggerd/test/unittest/backtrace/ |
H A D | backtrace_local_test.cpp | 105 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 147 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 261 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 290 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 317 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 386 std::shared_ptr<Unwinder> unwinder1 = nullptr; in HWTEST_F() 391 std::shared_ptr<Unwinder> unwinder2 = std::make_shared<Unwinder>(); in HWTEST_F() 411 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() 443 auto unwinder = std::make_shared<Unwinder>(); in HWTEST_F() [all...] |
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/ |
H A D | sample_stack_printer.h | 47 SampleStackPrinter(std::shared_ptr<Unwinder> unwinder, std::shared_ptr<DfxMaps> maps) : unwinder_(unwinder),
in SampleStackPrinter() 71 std::shared_ptr<Unwinder> unwinder_;
|
H A D | thread_sampler_utils.h | 43 void DoUnwind(const std::shared_ptr<Unwinder>& unwinder, UnwindInfo& unwindInfo);
|
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/ |
H A D | unwind_remote_benchmark.cpp | 24 #include <unwindstack/Unwinder.h>
107 static size_t UnwindRemote(unwindstack::Unwinder unwinder, MAYBE_UNUSED UnwindData* dataPtr)
153 unwindstack::Unwinder unwinder(MAX_FRAMES, &maps, regs.get(), processMemory);
|
H A D | unwind_local_benchmark.cpp | 28 #include <unwindstack/Unwinder.h>
77 unwindstack::Unwinder unwinder(MAX_FRAMES, dataPtr->maps, regs.get(), dataPtr->processMemory);
in UnwindLocal()
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | lock_parser_test.cpp | 122 auto unwinder = std::make_shared<Unwinder>(true); in HWTEST_F() 176 auto unwinder = std::make_shared<Unwinder>(true); in HWTEST_F() 228 auto unwinder = std::make_shared<Unwinder>(true); in HWTEST_F() 267 auto unwinder = std::make_shared<Unwinder>(true); in HWTEST_F() 306 auto unwinder = std::make_shared<Unwinder>(true); in HWTEST_F()
|
H A D | process_dump_test.cpp | 201 auto unwinder = std::make_shared<Unwinder>(pid); in HWTEST_F() 224 auto unwinder = std::make_shared<Unwinder>(pid); in HWTEST_F() 291 auto unwinder = std::make_shared<Unwinder>(pid); in HWTEST_F() 316 auto unwinder = std::make_shared<Unwinder>(pid); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerdunwinder_fuzzer/ |
H A D | faultloggerdunwinder_fuzzer.cpp | 80 DfxArk::StepArkFrame(&dfxMemory, &(Unwinder::AccessMem), &fp, &sp, &pc, &methodid, &isJsFrame); in TestStepArkFrame() 102 ArkUnwindParam arkParam(&dfxMemory, &(Unwinder::AccessMem), &fp, &sp, &pc, &methodid, &isJsFrame, jitCache_); in TestStepArkFrameWithJit() 121 DfxArk::JitCodeWriteFile(&dfxMemory, &(Unwinder::AccessMem), fd, jitCache.data(), jitCache.size()); in TestJitCodeWriteFile()
|