/base/hiviewdfx/faultloggerd/frameworks/unwinder/ |
D | dfx_symbols.cpp | 68 SymbolInfo symbol; in GetNameAndOffsetByPc() local 69 if (unw_get_symbol_info_by_pc(as, pc, LOG_BUF_LEN, buf, &symbol.start, &symbol.end) != 0) { in GetNameAndOffsetByPc() 73 Demangle(buf, strlen(buf), symbol.funcName); in GetNameAndOffsetByPc() 75 offset = pc - symbol.start; in GetNameAndOffsetByPc() 76 name = symbol.funcName; in GetNameAndOffsetByPc() 77 symbols_.push_back(symbol); in GetNameAndOffsetByPc() 92 SymbolInfo symbol; in GetNameAndOffsetByPc() local 94 if (!elf->GetFuncNameAndOffset(pc, &funcName, &symbol.start, &symbol.end)) { in GetNameAndOffsetByPc() 98 Demangle(funcName.c_str(), funcName.length(), symbol.funcName); in GetNameAndOffsetByPc() 100 offset = pc - symbol.start; in GetNameAndOffsetByPc() [all …]
|
D | dfx_elf.cpp | 222 SymbolInfo& symbol = *it; in GetFuncNameAndOffset() local 223 if (symbol.ndx == SHN_UNDEF || ELF32_ST_TYPE(symbol.type) != STT_FUNC) { in GetFuncNameAndOffset() 227 if ((addr >= symbol.start) && (addr < symbol.end)) { in GetFuncNameAndOffset() 228 *start = symbol.start; in GetFuncNameAndOffset() 229 *end = symbol.end; in GetFuncNameAndOffset() 230 uint64_t nameAddr = symbol.start + symbol.name; in GetFuncNameAndOffset() 231 if (nameAddr < symbol.end) { in GetFuncNameAndOffset() 232 memory_->ReadString(nameAddr, funcName, static_cast<size_t>(symbol.end - nameAddr)); in GetFuncNameAndOffset() 248 SymbolInfo& symbol = *it; in GetFuncNameAndOffset() local 249 if (symbol.ndx == SHN_UNDEF || ELF32_ST_TYPE(symbol.type) != STT_FUNC) { in GetFuncNameAndOffset() [all …]
|
D | dwarf_unwinder.cpp | 50 std::shared_ptr<DfxSymbols> symbol, DfxFrame& frame) in UpdateFrameFuncName() argument 52 if (symbol != nullptr) { in UpdateFrameFuncName() 53 symbol->GetNameAndOffsetByPc(as, frame.pc, frame.funcName, frame.funcOffset); in UpdateFrameFuncName() 64 auto symbol = std::make_shared<DfxSymbols>(); in Unwind() local 70 bool ret = UnwindWithContext(as, context, symbol, skipFrameNum + 1); in Unwind() 76 std::shared_ptr<DfxSymbols> symbol, size_t skipFrameNum) in UnwindWithContext() argument 123 UpdateFrameFuncName(as, symbol, frame); in UnwindWithContext()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/ |
D | backtrace_local_thread.cpp | 58 … BacktraceLocalThread::UnwindCurrentThread(unw_addr_space_t as, std::shared_ptr<DfxSymbols> symbol, in UnwindCurrentThread() argument 76 ret = unwinder.UnwindWithContext(as, context, symbol, skipFrameNum + 1); in UnwindCurrentThread() 82 bool BacktraceLocalThread::Unwind(unw_addr_space_t as, std::shared_ptr<DfxSymbols> symbol, in Unwind() argument 90 return UnwindCurrentThread(as, symbol, skipFrameNum + 1, fast); in Unwind() 108 ret = unwinder.UnwindWithContext(as, *(threadContext->ctx), symbol, skipFrameNum); in Unwind()
|
D | backtrace_local_thread.h | 36 bool Unwind(unw_addr_space_t as, std::shared_ptr<DfxSymbols> symbol, size_t skipFrameNum, 43 bool UnwindCurrentThread(unw_addr_space_t as, std::shared_ptr<DfxSymbols> symbol,
|
D | backtrace_local.cpp | 60 auto symbol = std::make_shared<DfxSymbols>(); in GetBacktraceFramesByTid() local 62 ret = thread.Unwind(as, symbol, skipFrameNum, fast); in GetBacktraceFramesByTid() 146 auto symbol = std::make_shared<DfxSymbols>(); in GetProcessStacktrace() local 155 if (thread.Unwind(as, symbol, 0)) { in GetProcessStacktrace()
|
/base/hiviewdfx/faultloggerd/frameworks/unwinder/include/ |
D | dwarf_unwinder.h | 30 … UnwindWithContext(unw_addr_space_t as, unw_context_t& context, std::shared_ptr<DfxSymbols> symbol, 35 …void UpdateFrameFuncName(unw_addr_space_t as, std::shared_ptr<DfxSymbols> symbol, DfxFrame& frame);
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/ |
D | dfx_crash_local_handler.c | 137 char symbol[BUF_SZ] = {0}; in UnwindWithContext() local 138 (void)memset_s(&symbol, sizeof(symbol), 0, sizeof(symbol)); in UnwindWithContext() 139 if (unw_get_proc_name(cursor, symbol, sizeof(symbol), (unw_word_t*)(&offset)) == 0) { in UnwindWithContext() 142 symbol, offset); in UnwindWithContext()
|
/base/hiviewdfx/faultloggerd/test/unittest/backtrace/ |
D | backtrace_local_test.cpp | 129 auto symbol = std::make_shared<DfxSymbols>(); variable 132 ASSERT_EQ(true, thread.Unwind(as, symbol, 0)); 182 auto symbol = std::make_shared<DfxSymbols>(); variable 185 ASSERT_EQ(true, thread.Unwind(as, symbol, 0));
|
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/ |
D | feature_analysis.cpp | 235 string symbol = ""; in CheckVariableParam() local 243 symbol = L3_DESCRIPTOR_LEFT + param.first + L3_DESCRIPTOR_RIGHT; in CheckVariableParam() 245 ReplaceVariable(rule, symbol, value); in CheckVariableParam() 265 void FeatureAnalysis::ReplaceVariable(FeatureRule& rule, const string& symbol, const string& value)… in ReplaceVariable() argument 267 ReplaceVariable(rule.source, symbol, value, rule.source); in ReplaceVariable() 268 ReplaceVariable(rule.depend, symbol, value, rule.depend); in ReplaceVariable() 270 if (ReplaceVariable(subParam.second, symbol, value, subParam.second)) { in ReplaceVariable()
|
/base/hiviewdfx/faultloggerd/test/unittest/unwinder/ |
D | unwinder_test.cpp | 107 auto symbol = std::make_shared<DfxSymbols>(); variable 110 ASSERT_EQ(true, unwinder.UnwindWithContext(as, context, symbol, 0));
|
/base/startup/appspawn/test/unittest/ |
D | app_spawn_stub.cpp | 71 void *DlsymStub(void *handle, const char *symbol) in DlsymStub() argument 74 if (strcmp(symbol, "InitEnvironmentParam") == 0) { in DlsymStub()
|
/base/hiviewdfx/hiview/ |
D | CMakeLists.txt | 23 set(CMAKE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "PDB MSVC debug symbol outp…
|
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/include/ |
D | feature_analysis.h | 65 …void ReplaceVariable(FeatureRule& rule, const std::string& symbol, const std::string& value) const;
|