Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 1163) sorted by relevance

12345678910>>...47

/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
Ddfx_frame_formatter.cpp35 std::string DfxFrameFormatter::GetFrameStr(const DfxFrame& frame) in GetFrameStr() argument
37 return GetFrameStr(std::make_shared<DfxFrame>(frame)); in GetFrameStr()
40 std::string DfxFrameFormatter::GetFrameStr(const std::shared_ptr<DfxFrame>& frame) in GetFrameStr() argument
42 if (frame == nullptr) { in GetFrameStr()
46 if (frame->isJsFrame) { in GetFrameStr()
48 if (frame->funcName.empty()) { in GetFrameStr()
49 std::string mapName = frame->map == nullptr ? "" : frame->map->name; in GetFrameStr()
50 data = StringPrintf("#%02zu at %s", frame->index, mapName.c_str()); in GetFrameStr()
52 data = StringPrintf("#%02zu at %s (%s:%d:%d)", frame->index, frame->funcName.c_str(), in GetFrameStr()
53 frame->mapName.c_str(), frame->line, frame->column); in GetFrameStr()
[all …]
Dunwinder.cpp307 bool Unwinder::StepArkJsFrame(StepFrame& frame) in StepArkJsFrame() argument
310 LOGI("+++ark pc: %p, fp: %p, sp: %p, isJsFrame: %d.", reinterpret_cast<void *>(frame.pc), in StepArkJsFrame()
311 … reinterpret_cast<void *>(frame.fp), reinterpret_cast<void *>(frame.sp), frame.isJsFrame); in StepArkJsFrame()
325 if (DfxArk::GetArkNativeFrameInfo(pid, frame.pc, frame.fp, frame.sp, jsFrames, size) < 0) { in StepArkJsFrame()
346 … ret = DfxArk::StepArkFrame(memory_.get(), &(Unwinder::AccessMem), &frame.fp, &frame.sp, &frame.pc, in StepArkJsFrame()
347 &frame.methodid, &frame.isJsFrame); in StepArkJsFrame()
349 … ret = DfxArk::StepArkFrame(memory_.get(), &(Unwinder::AccessMem), &frame.fp, &frame.sp, &frame.pc, in StepArkJsFrame()
350 nullptr, &frame.isJsFrame); in StepArkJsFrame()
357 LOGI("---ark js frame methodid: %" PRIx64 "", (uint64_t)frame.methodid); in StepArkJsFrame()
361 LOGI("---ark pc: %p, fp: %p, sp: %p, isJsFrame: %d.", reinterpret_cast<void *>(frame.pc), in StepArkJsFrame()
[all …]
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_stack_info_formatter.cpp38 void FillJsFrame(const DfxFrame& frame, Json::Value& jsonInfo) in FillJsFrame() argument
41 frameJson["file"] = frame.mapName; in FillJsFrame()
42 frameJson["symbol"] = frame.funcName; in FillJsFrame()
43 frameJson["line"] = frame.line; in FillJsFrame()
44 frameJson["column"] = frame.column; in FillJsFrame()
140 for (const auto& frame : threadFrames) { in FillFrames() local
141 if (frame.isJsFrame) { in FillFrames()
142 FillJsFrame(frame, jsonInfo); in FillFrames()
145 FillNativeFrame(frame, jsonInfo); in FillFrames()
147 if (Printer::IsLastValidFrame(frame)) { in FillFrames()
[all …]
Ddfx_fault_stack.cpp103 auto frame = frames.at(index); in CollectStackInfo() local
104 uintptr_t curSp = static_cast<uintptr_t>(frame.sp); in CollectStackInfo()
130 const auto& frame = frames.back(); in CreateBlockForCorruptedStack() local
132 if (frame.mapName.find("ld-musl") != std::string::npos || in CreateBlockForCorruptedStack()
133 frame.mapName.find("ffrt") != std::string::npos || in CreateBlockForCorruptedStack()
134 frame.mapName.find("bin") != std::string::npos) { in CreateBlockForCorruptedStack()
138 AdjustAndCreateMemoryBlock(frame.index, frame.sp, prevEndAddr, size); in CreateBlockForCorruptedStack()
286 DfxFrame frame; in ParseUnwindStack() local
287 frame.index = index; in ParseUnwindStack()
288 frame.pc = block.content[i]; in ParseUnwindStack()
[all …]
Ddfx_unwind_async_thread.cpp129 DfxFrame frame; in UnwindThreadFallback() local
130 frame.pc = pc; in UnwindThreadFallback()
131 frame.sp = sp; in UnwindThreadFallback()
132 frame.index = index; in UnwindThreadFallback()
134 frame.relPc = map->GetRelPc(pc); in UnwindThreadFallback()
135 frame.mapName = map->name; in UnwindThreadFallback()
137 frame.relPc = pc; in UnwindThreadFallback()
138 frame.mapName = (index == 0 ? "Not mapped pc" : "Not mapped lr"); in UnwindThreadFallback()
140 unwinder->AddFrame(frame); in UnwindThreadFallback()
Dprinter.cpp171 bool Printer::IsLastValidFrame(const DfxFrame& frame) in IsLastValidFrame() argument
175 if (((libcStartPc != 0) && (frame.pc == libcStartPc)) || in IsLastValidFrame()
176 ((libffrtStartEntry != 0) && (frame.pc == libffrtStartEntry))) { in IsLastValidFrame()
180 if (frame.mapName.find("ld-musl-aarch64.so.1") != std::string::npos && in IsLastValidFrame()
181 frame.funcName.find("start") != std::string::npos) { in IsLastValidFrame()
182 libcStartPc = frame.pc; in IsLastValidFrame()
186 if (frame.mapName.find("libffrt") != std::string::npos && in IsLastValidFrame()
187 frame.funcName.find("CoStartEntry") != std::string::npos) { in IsLastValidFrame()
188 libffrtStartEntry = frame.pc; in IsLastValidFrame()
204 for (const auto& frame : frames) { in PrintThreadBacktraceByConfig() local
[all …]
Ddfx_thread.cpp73 void DfxThread::AddFrame(DfxFrame& frame) in AddFrame() argument
75 frames_.emplace_back(frame); in AddFrame()
93 for (const auto& frame : frames_) { in ToString() local
94 if (frame.index == 0) { in ToString()
105 ss << DfxFrameFormatter::GetFrameStr(frame); in ToString()
107 if (Printer::IsLastValidFrame(frame)) { in ToString()
Dcppcrash_reporter.h47 void AppendCrashStack(const std::string& frame) in AppendCrashStack() argument
49 stack_.append(frame).append("\n"); in AppendCrashStack()
Ddfx_stack_info_formatter.h48 void FillNativeFrame(const DfxFrame& frame, Json::Value& jsonInfo) const;
Dprinter.h47 static bool IsLastValidFrame(const DfxFrame& frame);
Ddfx_thread.h48 void AddFrame(DfxFrame& frame);
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
Dfp_unwinder_test.cpp58 DfxFrame frame; variable
59 frame.index = i;
60 frame.pc = static_cast<uint64_t>(pcs[i]);
61 frames.emplace_back(frame);
90 DfxFrame frame; variable
91 frame.index = i;
92 frame.pc = static_cast<uint64_t>(pcs[i]);
93 frames.emplace_back(frame);
Dunwinder_test.cpp668 DfxFrame frame; variable
669 unwinder->FillFrame(frame);
671 ASSERT_EQ(frame.buildId.size(), 0);
674 frame.map = map;
675 unwinder->FillFrame(frame);
677 ASSERT_EQ(frame.buildId.size(), 0);
684 frame.map = map;
685 unwinder->FillFrame(frame);
687 ASSERT_EQ(frame.buildId.size() == 0, false);
701 DfxFrame frame; variable
[all …]
/base/hiviewdfx/faultloggerd/tools/crasher_cpp/
DBUILD.gn20 "-Wno-frame-larger-than",
50 "-Wno-frame-larger-than",
51 "-Wno-frame-address",
53 cflags_c = [ "-Wno-frame-larger-than" ]
55 "-Wno-frame-larger-than",
58 ldflags = [ "-Wno-frame-larger-than" ]
/base/hiviewdfx/faultloggerd/tools/crasher_c/
DBUILD.gn20 "-Wno-frame-larger-than",
44 cflags = [ "-Wno-frame-larger-than" ]
45 cflags_c = [ "-Wno-frame-larger-than" ]
46 cflags_cc = [ "-Wno-frame-larger-than" ]
47 ldflags = [ "-Wno-frame-larger-than" ]
/base/startup/init/test/fuzztest/
DBUILD.gn47 "-fno-omit-frame-pointer",
69 "-fno-omit-frame-pointer",
91 "-fno-omit-frame-pointer",
115 "-fno-omit-frame-pointer",
143 "-fno-omit-frame-pointer",
169 "-fno-omit-frame-pointer",
191 "-fno-omit-frame-pointer",
213 "-fno-omit-frame-pointer",
241 "-fno-omit-frame-pointer",
264 "-fno-omit-frame-pointer",
[all …]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
Dunwinder.h86 void AddFrame(DfxFrame& frame);
90 void FillFrame(DfxFrame& frame);
91 void FillJsFrame(DfxFrame& frame);
92 bool GetFrameByPc(uintptr_t pc, std::shared_ptr<DfxMaps> maps, DfxFrame& frame);
126 void AddFrame(const StepFrame& frame, std::shared_ptr<DfxMap> map);
127 bool StepInner(const bool isSigFrame, StepFrame& frame, void *ctx);
130 bool StepArkJsFrame(StepFrame& frame);
Ddfx_frame_formatter.h36 static std::string GetFrameStr(const DfxFrame& frame);
44 static std::string GetFrameStr(const std::shared_ptr<DfxFrame>& frame);
/base/hiviewdfx/hicollie/frameworks/native/
Dsample_stack_printer.cpp105 for (auto& frame : frames) { in GetFullStack() local
106 unwinder_->FillFrame(frame); in GetFullStack()
107 auto frameStr = DfxFrameFormatter::GetFrameStr(frame); in GetFullStack()
/base/hiviewdfx/faultloggerd/test/unittest/backtrace/
Dbacktrace_local_test.cpp106 for (const auto& frame : frames) { variable
107 GTEST_LOG_(INFO) << DfxFrameFormatter::GetFrameStr(frame);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/
Dbacktrace_local.cpp86 for (auto const& frame : frames) { in PrintBacktrace() local
87 auto line = DfxFrameFormatter::GetFrameStr(frame); in PrintBacktrace()
/base/notification/distributed_notification_service/test/fuzztest/fuzz_common_base/
DBUILD.gn22 "-fno-omit-frame-pointer",
/base/hiviewdfx/hidumper/test/fuzztest/sadump_fuzzer/
DBUILD.gn26 "-fno-omit-frame-pointer",
/base/hiviewdfx/hisysevent/test/fuzztest/common/hisysevent_fuzzer/
DBUILD.gn27 "-fno-omit-frame-pointer",
/base/global/resource_management/test/fuzztest/resmgr_fuzzer/
DBUILD.gn31 "-fno-omit-frame-pointer",

12345678910>>...47