Home
last modified time | relevance | path

Searched refs:memory (Results 1 - 25 of 1095) sorted by relevance

12345678910>>...44

/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dmemory_test.cpp60 auto memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() local
61 memory->SetCtx(&ctx); in HWTEST_F()
63 bool ret = memory->ReadReg(0, &value); in HWTEST_F()
82 auto memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() local
83 bool ret = memory->ReadUptr(addr, &value, false); in HWTEST_F()
88 memory->Read(addr, &tmp, sizeof(uint8_t), false); in HWTEST_F()
91 memory->Read(addr, &tmp, sizeof(uint16_t), false); in HWTEST_F()
94 memory->Read(addr, &tmp, sizeof(uint32_t), false); in HWTEST_F()
97 memory->Read(addr, &tmp, sizeof(uint64_t), false); in HWTEST_F()
115 auto memory in HWTEST_F() local
154 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
184 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
211 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
233 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
259 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
302 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
352 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
394 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
430 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
455 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
[all...]
H A Ddwarf_test.cpp24 #include <memory>
67 explicit DwarfSectionTest(std::shared_ptr<DfxMemory> memory) : DwarfSection(memory) {}; in DwarfSectionTest() argument
139 bool Test04(std::shared_ptr<DfxMemoryTest> memory);
140 bool Test05(std::shared_ptr<DfxMemoryTest> memory);
144 bool Test09(std::shared_ptr<DfxMemoryTest> memory);
145 bool Test10(std::shared_ptr<DfxMemoryTest> memory);
179 bool DwarfOpTest::Test04(std::shared_ptr<DfxMemoryTest> memory) in Test04() argument
201 memory->SetBuffer(valuePtr, valueData); in Test04()
202 memory in Test04()
255 Test05(std::shared_ptr<DfxMemoryTest> memory) Test05() argument
409 Test09(std::shared_ptr<DfxMemoryTest> memory) Test09() argument
448 Test10(std::shared_ptr<DfxMemoryTest> memory) Test10() argument
531 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
762 auto memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
811 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
834 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
859 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
893 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
930 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
964 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
1000 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
1034 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
1067 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
1096 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
1129 auto memory = std::make_shared<DfxMemoryTest>(); HWTEST_F() local
1165 auto memory = std::make_shared<DfxMemory>(); HWTEST_F() local
1209 auto memory = std::make_shared<DfxMemory>(); HWTEST_F() local
[all...]
H A Darm_exidx_test.cpp65 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() local
66 ArmExidx exidx(memory); in HWTEST_F()
83 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() local
84 ArmExidx exidx(memory); in HWTEST_F()
106 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() local
107 ArmExidx exidx(memory); in HWTEST_F()
164 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() local
165 ArmExidx exidx(memory); in HWTEST_F()
184 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); in HWTEST_F() local
185 ArmExidx exidx(memory); in HWTEST_F()
204 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
225 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
248 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
271 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
294 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
319 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
346 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
368 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
393 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
414 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
435 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
457 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
483 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
538 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
572 std::shared_ptr<DfxMemory> memory = std::make_shared<DfxMemory>(acc); HWTEST_F() local
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_instructions.cpp38 bool DfxInstructions::Flush(DfxRegs& regs, std::shared_ptr<DfxMemory> memory, uintptr_t cfa, RegLoc loc, uintptr_t& val) in Flush() argument
40 if (memory == nullptr) { in Flush()
50 memory->ReadUptr(location, &val); in Flush()
61 DwarfOp<uintptr_t> dwarfOp(memory); in Flush()
63 memory->ReadUptr(location, &val); in Flush()
67 DwarfOp<uintptr_t> dwarfOp(memory); in Flush()
78 bool DfxInstructions::Apply(std::shared_ptr<DfxMemory> memory, DfxRegs& regs, RegLocState& rsState, uint16_t& errCode) in Apply() argument
87 if (!Flush(regs, memory, 0, cfaLoc, cfa)) { in Apply()
101 if (Flush(regs, memory, cfa, rsState.locs[i], regs[reg])) { in Apply()
H A Ddfx_regs_x86_64.cpp64 bool DfxRegsX86_64::SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) in SetPcFromReturnAddress() argument
67 if (!memory->ReadUptr(regsData_[REG_SP], &newPc, false) || in SetPcFromReturnAddress()
97 bool DfxRegsX86_64::StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) in StepIfSignalFrame() argument
100 if (!memory->ReadU64(pc, &data, false)) { in StepIfSignalFrame()
115 if (!memory->ReadU16(pc, &data2, false) || (data2 != 0x0f05)) { in StepIfSignalFrame()
125 memory->Read(scAddr, &ucontext.uc_mcontext, sizeof(ucontext.uc_mcontext), false); in StepIfSignalFrame()
H A Ddfx_regs_arm.cpp95 bool DfxRegsArm::SetPcFromReturnAddress(MAYBE_UNUSED std::shared_ptr<DfxMemory> memory) in SetPcFromReturnAddress() argument
126 bool DfxRegsArm::StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) in StepIfSignalFrame() argument
132 if (!memory->ReadU32(pc, &data, false)) { in StepIfSignalFrame()
154 if (!memory->ReadU32(spAddr, &data, false)) { in StepIfSignalFrame()
180 if (!memory->ReadU32(spAddr, &data, false)) { in StepIfSignalFrame()
195 memory->Read(scAddr, regsData_.data(), sizeof(uint32_t) * REG_LAST, false); in StepIfSignalFrame()
/base/security/device_security_level/test/dslm_unit_test/
H A Ddslm_memory_mock.cpp30 void MockFree::Free(void *memory) in Free() argument
32 return free(memory); in Free()
45 IMPLEMENT_FUNCTION_WITH_INVOKER(MockFree, void, UtilsFree, (void *memory), MockFree::Free);
H A Ddslm_memory_mock.h35 DECLARE_METHOD(void, UtilsFree, (void *memory));
37 static void Free(void *memory);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_regs.h20 #include <memory>
45 virtual bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) = 0;
46 virtual bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) = 0;
82 bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) override;
83 bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) override;
96 bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) override;
97 bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) override;
110 bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) override;
111 bool StepIfSignalFrame(uintptr_t pc, std::shared_ptr<DfxMemory> memory) override;
124 bool SetPcFromReturnAddress(std::shared_ptr<DfxMemory> memory) overrid
[all...]
H A Ddwarf_cfa_instructions.h20 #include <memory>
31 DwarfCfaInstructions(std::shared_ptr<DfxMemory> memory) : memory_(memory) {}; in DwarfCfaInstructions() argument
H A Ddfx_instructions.h33 static bool Apply(std::shared_ptr<DfxMemory> memory, DfxRegs& regs, RegLocState& rsState, uint16_t& errCode);
36 static bool Flush(DfxRegs& dfxRegs, std::shared_ptr<DfxMemory> memory, uintptr_t cfa, RegLoc loc, uintptr_t& val);
H A Ddwarf_section.h19 #include <memory>
31 explicit DwarfSection(std::shared_ptr<DfxMemory> memory);
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
H A Dmemory_collector_impl.cpp248 {"Rss", [] (ProcessMemory& memory, int32_t value) { in SetValueOfProcessMemory()
249 memory.rss = value; in SetValueOfProcessMemory()
251 {"Pss", [] (ProcessMemory& memory, int32_t value) { in SetValueOfProcessMemory()
252 memory.pss = value; in SetValueOfProcessMemory()
254 {"Shared_Dirty", [] (ProcessMemory& memory, int32_t value) { in SetValueOfProcessMemory()
255 memory.sharedDirty = value; in SetValueOfProcessMemory()
257 {"Private_Dirty", [] (ProcessMemory& memory, int32_t value) { in SetValueOfProcessMemory()
258 memory.privateDirty = value; in SetValueOfProcessMemory()
260 {"SwapPss", [] (ProcessMemory& memory, int32_t value) { in SetValueOfProcessMemory()
261 memory in SetValueOfProcessMemory()
278 InitSmapsOfProcessMemory(const std::string& procDir, ProcessMemory& memory) InitSmapsOfProcessMemory() argument
297 InitAdjOfProcessMemory(const std::string& procDir, ProcessMemory& memory) InitAdjOfProcessMemory() argument
310 InitProcessMemory(int32_t pid, ProcessMemory& memory) InitProcessMemory() argument
[all...]
/base/update/updater/test/unittest/diffpatch/
H A Dimage_patch_unittest.cpp45 PkgManager::StreamPtr &stream, bool memory, size_t expandedLen) in TestDecompressData()
47 return DecompressData(pkgManager, buffer, stream, memory, expandedLen); in TestDecompressData()
97 bool memory = false; in HWTEST_F() local
99 int32_t ret = test.TestDecompressData(pkgManager, buffer, stream, memory, expandedLen); in HWTEST_F()
102 ret = test.TestDecompressData(pkgManager, buffer, stream, memory, expandedLen); in HWTEST_F()
105 ret = test.TestDecompressData(pkgManager, buffer, stream, memory, expandedLen); in HWTEST_F()
44 TestDecompressData(PkgManager::PkgManagerPtr &pkgManager, PkgBuffer buffer, PkgManager::StreamPtr &stream, bool memory, size_t expandedLen) TestDecompressData() argument
/base/security/device_security_level/baselib/utils/src/
H A Dutils_mem.c35 void UtilsFree(void *memory) in UtilsFree() argument
37 return free(memory); in UtilsFree()
/base/update/updater/services/diffpatch/
H A Ddiffpatch.h151 uint8_t *memory {};
156 if (memory != nullptr) { in ~MemMapInfo()
157 munmap(memory, length); in ~MemMapInfo()
159 memory = nullptr; in ~MemMapInfo()
/base/customization/enterprise_device_management/framework/extension/include/
H A Djs_enterprise_admin_extension_context.h19 #include <memory>
/base/global/resource_management/interfaces/cj/src/
H A Dutils.h20 #include <memory>
/base/powermgr/power_manager/frameworks/napi/utils/
H A Drunninglock_entity.h19 #include <memory>
/base/notification/common_event_service/frameworks/extension/include/
H A Djs_static_subscriber_extension_context.h19 #include <memory>
/base/security/device_security_level/baselib/utils/include/
H A Dutils_mem.h30 void UtilsFree(void *memory);
/base/hiviewdfx/hidumper/frameworks/native/include/factory/
H A Dexecutor_factory.h18 #include <memory>
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/include/
H A Dhiappevent_write.h18 #include <memory>
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Dlock_parser.h20 #include <memory>
/base/request/request/pre_download/native/include/
H A Dpre_download.h19 #include <memory>

Completed in 11 milliseconds

12345678910>>...44