/base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/ |
H A D | unwind_local_benchmark.cpp | 40 unwindstack::Maps* maps;
member 77 unwindstack::Unwinder unwinder(MAX_FRAMES, dataPtr->maps, regs.get(), dataPtr->processMemory);
in UnwindLocal() 110 unwindstack::LocalMaps maps;
in BenchmarkUnwindStackLocal() local 111 if (!maps.Parse()) {
in BenchmarkUnwindStackLocal() 112 state.SkipWithError("Failed to parse local maps.");
in BenchmarkUnwindStackLocal() 115 UnwindData data = {.processMemory = processMemory, .maps = &maps, .isFillFrames = false};
in BenchmarkUnwindStackLocal() 128 unwindstack::LocalMaps maps;
in BenchmarkUnwindStackLocalCache() local 129 if (!maps.Parse()) {
in BenchmarkUnwindStackLocalCache() 130 state.SkipWithError("Failed to parse local maps in BenchmarkUnwindStackLocalCache() 146 unwindstack::LocalMaps maps; BenchmarkUnwindStackLocalFrames() local 164 unwindstack::LocalMaps maps; BenchmarkUnwindStackLocalFramesCache() local [all...] |
H A D | unwind_remote_benchmark.cpp | 146 unwindstack::RemoteMaps maps(pid);
147 if (!maps.Parse()) {
148 state.SkipWithError("Failed to parse maps.");
153 unwindstack::Unwinder unwinder(MAX_FRAMES, &maps, regs.get(), processMemory);
|
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/ |
H A D | elf_benchmark.cpp | 29 auto maps = dfxMaps->GetMaps();
in InitializeBuildId() local 30 if (maps.size() == 0) {
in InitializeBuildId() 31 state.SkipWithError("Failed to get local maps.");
in InitializeBuildId() 37 for (auto& map : maps) {
in InitializeBuildId()
|
H A D | maps_benchmark.cpp | 40 DFXLOGU("%{public}s:: maps.size: %{public}zu", __func__, dfxMaps->GetMapsSize());
in BenchmarkMapsCreateAll() 54 DFXLOGU("%{public}s:: maps.size: %{public}zu", __func__, dfxMaps->GetMapsSize());
in BenchmarkMapsCreateOnlyExec() 66 std::vector<std::shared_ptr<DfxMap>> maps {};
in BenchmarkMapsCreateMapIndex() 69 if (DfxMaps::Create(0, maps, mapIndex)) {
in BenchmarkMapsCreateMapIndex() 70 DFXLOGU("%{public}s:: maps.size: %{public}zu", __func__, maps.size());
in BenchmarkMapsCreateMapIndex()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_unwind_async_thread.cpp | 89 const std::shared_ptr<DfxMaps>& maps = unwinder_->GetMaps(); in GetSubmitterStack() local 90 if (maps == nullptr) { in GetSubmitterStack() 94 if (!maps->FindMapsByName("[anon:async_stack_table]", mapVec)) { in GetSubmitterStack() 137 std::shared_ptr<DfxMaps> maps = unwinder_->GetMaps(); in UnwindThreadFallback() local 138 if (maps == nullptr) { in UnwindThreadFallback() 144 auto createFrame = [maps, unwinder] (size_t index, uintptr_t pc, uintptr_t sp = 0) { in UnwindThreadFallback() 150 if (maps->FindMapByAddr(pc, map)) { in UnwindThreadFallback()
|
H A D | dfx_fault_stack.h | 45 void CollectRegistersBlock(std::shared_ptr<DfxRegs> regs, std::shared_ptr<DfxMaps> maps); 46 bool ParseUnwindStack(std::shared_ptr<DfxMaps> maps, std::vector<DfxFrame>& frames);
|
H A D | dfx_fault_stack.cpp | 211 void FaultStack::CollectRegistersBlock(std::shared_ptr<DfxRegs> regs, std::shared_ptr<DfxMaps> maps) in CollectRegistersBlock() argument 213 if (regs == nullptr || maps == nullptr) { in CollectRegistersBlock() 214 DFXLOGE("%{public}s : regs or maps is null.", __func__); in CollectRegistersBlock() 223 if (!maps->FindMapByAddr(data, map)) { in CollectRegistersBlock() 277 bool FaultStack::ParseUnwindStack(std::shared_ptr<DfxMaps> maps, std::vector<DfxFrame>& frames) in ParseUnwindStack() argument 279 if (maps == nullptr) { in ParseUnwindStack() 280 DFXLOGE("%{public}s : maps is null.", __func__); in ParseUnwindStack() 287 if (!maps->FindMapByAddr(block.content[i], map) || in ParseUnwindStack()
|
H A D | printer.cpp | 136 std::shared_ptr<DfxMaps> maps = unwinder->GetMaps(); in PrintReason() local 143 if (maps != nullptr && maps->FindMapsByName(elfName, map)) { in PrintReason() 158 void Printer::PrintProcessMapsByConfig(std::shared_ptr<DfxMaps> maps) in PrintProcessMapsByConfig() argument 161 if (maps == nullptr) { in PrintProcessMapsByConfig() 164 auto mapsVec = maps->GetMaps(); in PrintProcessMapsByConfig()
|
H A D | printer.h | 38 static void PrintProcessMapsByConfig(std::shared_ptr<DfxMaps> maps);
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | instr_statistic_test.cpp | 68 auto maps = DfxMaps::Create(pid); in HWTEST_F() local 72 context.maps = maps; in HWTEST_F()
|
H A D | unwinder_pac_test.cpp | 61 auto maps = DfxMaps::Create(pid); in HWTEST_F() local 66 context.maps = maps; in HWTEST_F()
|
H A D | unwinder_test.cpp | 299 auto maps = DfxMaps::Create(child); in HWTEST_F() local 303 context.maps = maps; in HWTEST_F() 338 auto maps = DfxMaps::Create(getpid()); in HWTEST_F() local 341 context.maps = maps; in HWTEST_F() 422 auto maps = DfxMaps::Create(child); in HWTEST_F() local 427 context.maps = maps; in HWTEST_F() 433 ASSERT_TRUE(maps in HWTEST_F() 453 auto maps = DfxMaps::Create(getpid()); HWTEST_F() local 911 std::shared_ptr<DfxMaps> maps = std::make_shared<DfxMaps>(); HWTEST_F() local [all...] |
H A D | maps_test.cpp | 170 * @tc.desc: test create maps by pid 178 auto maps = dfxMaps->GetMaps(); in HWTEST_F() local 179 for (auto map : maps) { in HWTEST_F()
|
H A D | memory_test.cpp | 491 auto maps = DfxMaps::Create(pid); in HWTEST_F() local 493 ASSERT_TRUE(maps->FindMapsByName("[shmm]", shmmMaps)); in HWTEST_F()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dfx_maps.h | 34 static bool Create(const pid_t pid, std::vector<std::shared_ptr<DfxMap>>& maps, std::vector<int>& mapIndex); 46 bool FindMapsByName(std::string name, std::vector<std::shared_ptr<DfxMap>>& maps) const; 53 uint32_t filePathId_ {0}; // for maps item filePath id
|
H A D | unwinder.h | 85 bool GetFrameByPc(uintptr_t pc, std::shared_ptr<DfxMaps> maps, DfxFrame& frame); 93 static bool GetSymbolByPc(uintptr_t pc, std::shared_ptr<DfxMaps> maps,
|
H A D | unwind_context.h | 70 std::shared_ptr<DfxMaps> maps = nullptr; member
|
/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() argument 48 maps_(maps)
in SampleStackPrinter()
|
H A D | thread_sampler.h | 53 DfxMaps* maps;
member
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_maps.cpp | 48 path = StringPrintf("/proc/%d/maps", (int)pid); in GetMapsFile() 62 DFXLOGU("Create maps(%{public}s) with not crash, will only parse exec map", path.c_str()); in Create() 80 bool DfxMaps::Create(const pid_t pid, std::vector<std::shared_ptr<DfxMap>>& maps, std::vector<int>& mapIndex) in Create() argument 91 maps = dfxMaps->GetMaps(); in Create() 139 DFXLOGE("Failed to get maps(%{public}s), err(%{public}d).", path.c_str(), errno); in Parse() 143 DFXLOGI("parse maps(%{public}s) completed, map size: (%{public}zu), count: (%{public}d)", in Parse() 244 bool DfxMaps::FindMapsByName(std::string name, std::vector<std::shared_ptr<DfxMap>>& maps) const in FindMapsByName() 251 maps.emplace_back(iter); in FindMapsByName() 254 return (maps.size() > 0); in FindMapsByName()
|
H A D | unwinder.cpp | 188 bool GetFrameByPc(uintptr_t pc, std::shared_ptr<DfxMaps> maps, DfxFrame& frame); 419 bool Unwinder::GetFrameByPc(uintptr_t pc, std::shared_ptr<DfxMaps> maps, DfxFrame& frame) in GetFrameByPc() argument 421 return impl_->GetFrameByPc(pc, maps, frame); in GetFrameByPc() 564 context.maps = maps_; in UnwindLocalWithTid() 620 context.maps = maps_; in UnwindLocal() 656 context.maps = maps_; in UnwindRemote() 1279 bool Unwinder::Impl::GetFrameByPc(uintptr_t pc, std::shared_ptr<DfxMaps> maps, DfxFrame &frame) in GetFrameByPc() argument 1283 if ((maps == nullptr) || !maps->FindMapByAddr(pc, map) || map == nullptr) { in GetFrameByPc() 1357 bool Unwinder::GetSymbolByPc(uintptr_t pc, std::shared_ptr<DfxMaps> maps, st argument [all...] |
H A D | dfx_accessors.cpp | 58 if (ctx->maps == nullptr || !ctx->maps->FindMapByAddr(pc, map) || (map == nullptr)) { in GetMapByPcAndCtx()
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | fault_stack_test.cpp | 106 auto maps = DfxMaps::Create(childPid); in HWTEST_F() local 110 stack->CollectRegistersBlock(reg, maps); in HWTEST_F()
|
/base/security/asset/interfaces/inner_kits/c/src/ |
H A D | lib.rs | 328 fn try_from(maps: &Vec<AssetMap>) -> Result<Self, Self::Error> { in try_from() 329 let mut result_set = AssetResultSet { count: maps.len() as u32, results: std::ptr::null_mut() }; in try_from() 338 for (i, map) in maps.iter().enumerate() { in try_from()
|
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | thread_sampler.cpp | 84 if (unwindInfo->maps->FindMapByAddr(pc, map)) {
in FindUnwindTable() 128 return unwindInfo->maps->FindMapByAddr(pc, map) ? 0 : -1;
in GetMapByPc() 215 XCOLLIE_LOGE("maps is nullptr\n");
in InitUnwinder() 413 .maps = maps_.get(),
in ProcessStackBuffer()
|