Home
last modified time | relevance | path

Searched refs:frames (Results 1 - 25 of 195) sorted by relevance

12345678

/base/hiviewdfx/faultloggerd/interfaces/innerkits/formatter/
H A Ddfx_json_formatter.cpp30 static bool FormatJsFrame(const Json::Value& frames, const uint32_t& frameIdx, std::string& outStr) in FormatJsFrame() argument
39 std::string symbol = frames[frameIdx]["symbol"].asString(); in FormatJsFrame()
40 std::string file = frames[frameIdx]["file"].asString(); in FormatJsFrame()
41 std::string line = frames[frameIdx]["line"].asString(); in FormatJsFrame()
42 std::string column = frames[frameIdx]["column"].asString(); in FormatJsFrame()
47 static bool FormatNativeFrame(const Json::Value& frames, const uint32_t& frameIdx, std::string& outStr) in FormatNativeFrame() argument
51 std::string buildId = frames[frameIdx]["buildId"].asString(); in FormatNativeFrame()
52 std::string file = frames[frameIdx]["file"].asString(); in FormatNativeFrame()
53 std::string offset = frames[frameIdx]["offset"].asString(); in FormatNativeFrame()
54 std::string pc = frames[frameId in FormatNativeFrame()
87 const Json::Value frames = thread["frames"]; FormatJsonStack() local
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dfp_unwinder_test.cpp56 std::vector<DfxFrame> frames; in HWTEST_F() local
61 frames.emplace_back(frame); in HWTEST_F()
63 ASSERT_GT(frames.size(), 1); in HWTEST_F()
64 Unwinder::FillLocalFrames(frames); in HWTEST_F()
65 GTEST_LOG_(INFO) << "FpUnwinderTest001: frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F()
88 std::vector<DfxFrame> frames; in HWTEST_F() local
93 frames.emplace_back(frame); in HWTEST_F()
95 ASSERT_GT(frames.size(), 1); in HWTEST_F()
96 Unwinder::FillLocalFrames(frames); in HWTEST_F()
[all...]
H A Dunwinder_test.cpp117 auto frames = unwinder->GetFrames(); in HWTEST_F() local
118 ASSERT_GT(frames.size(), 1); in HWTEST_F()
121 GTEST_LOG_(INFO) << "UnwinderLocalTest001: frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F()
125 ASSERT_GT(frames.size(), frames2.size()); in HWTEST_F()
153 auto frames = unwinder->GetFrames(); in HWTEST_F() local
154 ASSERT_GT(frames.size(), 1); in HWTEST_F()
157 GTEST_LOG_(INFO) << "UnwinderLocalTest002: frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F()
206 auto frames in HWTEST_F() local
250 auto frames = unwinder->GetFrames(); HWTEST_F() local
308 auto frames = unwinder->GetFrames(); HWTEST_F() local
344 auto frames = unwinder->GetFrames(); HWTEST_F() local
365 const auto& frames = unwinder->GetFrames(); HWTEST_F() local
389 auto frames = unwinder->GetFrames(); HWTEST_F() local
505 std::vector<DfxFrame> frames; HWTEST_F() local
729 std::vector<DfxFrame> frames; HWTEST_F() local
779 auto frames = unwinder->GetFrames(); HWTEST_F() local
821 std::vector<DfxFrame> frames; HWTEST_F() local
824 auto frames = unwinder->GetFrames(); HWTEST_F() local
861 auto frames = unwinder->GetFrames(); HWTEST_F() local
884 auto frames = unwinder->GetFrames(); HWTEST_F() local
907 auto frames = unwinder->GetFrames(); HWTEST_F() local
975 std::vector<std::shared_ptr<DfxFrame>> frames; HWTEST_F() local
[all...]
H A Dinstr_statistic_test.cpp75 auto frames = unwinder->GetFrames(); in HWTEST_F() local
76 ASSERT_GT(frames.size(), 1); in HWTEST_F()
77 GTEST_LOG_(INFO) << "frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F()
H A Dunwinder_pac_test.cpp69 auto frames = unwinder->GetFrames(); in HWTEST_F() local
70 ASSERT_GT(frames.size(), 1); in HWTEST_F()
71 GTEST_LOG_(INFO) << "frames:\n" << Unwinder::GetFramesStr(frames); in HWTEST_F()
/foundation/graphic/graphic_3d/lume/metaobject/test/src/
H A Danimation_test_base.cpp64 void AnimationTestBase::RunFrames(uint32_t frames, std::function<void(uint32_t frame)> updateFn) in RunFrames() argument
67 for (uint32_t i = 0; i < frames; i++) { in RunFrames()
70 if (i < frames - 1) in RunFrames()
82 const std::vector<IAnimation::Ptr> animations, uint32_t frames, std::function<void(uint32_t frame)> updateFn) in StepAnimations()
84 StepAnimations(animations, frames, STEPMS, updateFn); in StepAnimations()
87 void AnimationTestBase::StepAnimations(const std::vector<IAnimation::Ptr> animations, uint32_t frames, in StepAnimations() argument
91 for (uint32_t i = 0; i < frames; i++) { in StepAnimations()
98 if (i < frames - 1) in StepAnimations()
81 StepAnimations( const std::vector<IAnimation::Ptr> animations, uint32_t frames, std::function<void(uint32_t frame)> updateFn) StepAnimations() argument
H A Danimation_test_base.h39 void RunFrames(uint32_t frames, std::function<void(uint32_t frame)> updateFn);
41 void StepAnimations(const std::vector<IAnimation::Ptr> animations, uint32_t frames, int64_t frameStepMs,
45 const std::vector<IAnimation::Ptr> animations, uint32_t frames, std::function<void(uint32_t frame)> updateFn);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/
H A Dbacktrace_local.cpp54 bool GetBacktraceFramesByTid(std::vector<DfxFrame>& frames, int32_t tid, size_t skipFrameNum, bool fast, in GetBacktraceFramesByTid() argument
68 frames = thread.GetFrames(); in GetBacktraceFramesByTid()
75 std::vector<DfxFrame> frames; in GetBacktraceStringByTid() local
76 bool ret = GetBacktraceFramesByTid(frames, tid, skipFrameNum + 1, fast, maxFrameNums); in GetBacktraceStringByTid()
81 frames = threadStack.frames; in GetBacktraceStringByTid()
89 out = threadHead + Unwinder::GetFramesStr(frames); in GetBacktraceStringByTid()
97 std::vector<DfxFrame> frames; in PrintBacktrace() local
98 bool ret = GetBacktraceFramesByTid(frames, in PrintBacktrace()
104 for (auto const& frame : frames) { in PrintBacktrace()
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/
H A Dlock_parser_test.cpp128 std::vector<DfxFrame> frames; in HWTEST_F() local
129 (void)unwinder->GetFramesByPcs(frames, pcs); in HWTEST_F()
130 ASSERT_FALSE(frames.empty()); in HWTEST_F()
131 unwinder->SetFrames(frames); in HWTEST_F()
182 std::vector<DfxFrame> frames; in HWTEST_F() local
183 (void)unwinder->GetFramesByPcs(frames, pcs); in HWTEST_F()
184 ASSERT_FALSE(frames.empty()); in HWTEST_F()
185 unwinder->SetFrames(frames); in HWTEST_F()
232 std::vector<DfxFrame> frames; in HWTEST_F() local
233 (void)unwinder->GetFramesByPcs(frames, pc in HWTEST_F()
271 std::vector<DfxFrame> frames; HWTEST_F() local
312 std::vector<DfxFrame> frames; HWTEST_F() local
[all...]
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_stack_info_formatter.cpp103 Json::Value frames(Json::arrayValue); in GetNativeCrashInfo()
105 FillFrames(process_->vmThread_, frames); in GetNativeCrashInfo()
107 FillFrames(process_->keyThread_, frames); in GetNativeCrashInfo()
109 exception["frames"] = frames; in GetNativeCrashInfo()
126 Json::Value frames(Json::arrayValue); in GetDumpInfo()
127 FillFrames(process_->keyThread_, frames); in GetDumpInfo()
128 thread["frames"] = frames; in GetDumpInfo()
190 Json::Value frames(Jso in AppendThreads()
[all...]
H A Ddfx_unwind_async_thread.cpp119 auto frames = thread_->GetFrames(); in MergeStack() local
120 frames.insert(frames.end(), submitterFrames.begin(), submitterFrames.end()); in MergeStack()
121 thread_->SetFrames(frames); in MergeStack()
130 // As we failed to init libunwind, just print pc and lr for first two frames in UnwindThreadFallback()
170 auto frames = thread_->GetFrames(); in UnwindThreadByParseStackIfNeed() local
172 size_t initSize = frames.size(); in UnwindThreadByParseStackIfNeed()
173 if (initSize < minFramesNum || frames[minFramesNum - 1].mapName.find("Not mapped") != std::string::npos || in UnwindThreadByParseStackIfNeed()
174 frames[minFramesNum - 1].mapName.find("[Unknown]") != std::string::npos) { in UnwindThreadByParseStackIfNeed()
178 if (faultStack == nullptr || !faultStack->ParseUnwindStack(unwinder_->GetMaps(), frames)) { in UnwindThreadByParseStackIfNeed()
[all...]
H A Ddfx_fault_stack.cpp82 bool FaultStack::CollectStackInfo(const std::vector<DfxFrame>& frames, bool needParseStack) in CollectStackInfo() argument
84 if (frames.empty()) { in CollectStackInfo()
85 DFXLOGW("null frames."); in CollectStackInfo()
99 auto firstFrame = frames.at(0); in CollectStackInfo()
102 for (index = 1; index < frames.size(); index++) { in CollectStackInfo()
107 auto frame = frames.at(index); in CollectStackInfo()
127 CreateBlockForCorruptedStack(frames, prevEndAddr, minCorruptedStackSz); in CollectStackInfo()
131 bool FaultStack::CreateBlockForCorruptedStack(const std::vector<DfxFrame>& frames, uintptr_t prevEndAddr, in CreateBlockForCorruptedStack() argument
134 const auto& frame = frames.back(); in CreateBlockForCorruptedStack()
277 bool FaultStack::ParseUnwindStack(std::shared_ptr<DfxMaps> maps, std::vector<DfxFrame>& frames) in ParseUnwindStack() argument
[all...]
H A Ddfx_fault_stack.h43 bool CollectStackInfo(const std::vector<DfxFrame>& frames, bool needParseStack = false);
44 bool CreateBlockForCorruptedStack(const std::vector<DfxFrame>& frames, uintptr_t prevEndAddr, uintptr_t size);
46 bool ParseUnwindStack(std::shared_ptr<DfxMaps> maps, std::vector<DfxFrame>& frames);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_frame_formatter.cpp83 std::string DfxFrameFormatter::GetFramesStr(const std::vector<DfxFrame>& frames) in GetFramesStr() argument
85 if (frames.size() == 0) { in GetFramesStr()
89 for (const auto& f : frames) { in GetFramesStr()
95 std::string DfxFrameFormatter::GetFramesStr(const std::vector<std::shared_ptr<DfxFrame>>& frames) in GetFramesStr() argument
97 if (frames.size() == 0) { in GetFramesStr()
101 for (const auto& pf : frames) { in GetFramesStr()
107 std::vector<std::shared_ptr<DfxFrame>> DfxFrameFormatter::ConvertFrames(const std::vector<DfxFrame>& frames) in ConvertFrames() argument
110 for (const auto& frame : frames) { in ConvertFrames()
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/
H A Daudio_idl_hdicapture_test.cpp248 uint64_t frames = 0; in HWTEST_F() local
261 ret = audiopara.capture->GetCapturePosition(audiopara.capture, &frames, &time); in HWTEST_F()
264 EXPECT_GT(frames, INITIAL_VALUE); in HWTEST_F()
280 uint64_t frames = 0; in HWTEST_F() local
294 ret = audiopara.capture->GetCapturePosition(audiopara.capture, &frames, &timeCount); in HWTEST_F()
298 EXPECT_GT(frames, INITIAL_VALUE); in HWTEST_F()
303 ret = audiopara.capture->GetCapturePosition(audiopara.capture, &frames, &timeCount); in HWTEST_F()
307 EXPECT_GT(frames, INITIAL_VALUE); in HWTEST_F()
322 uint64_t frames = 0; in HWTEST_F() local
330 ret = capture->GetCapturePosition(capture, &frames, in HWTEST_F()
344 uint64_t frames = 0; HWTEST_F() local
361 uint64_t frames = 0; HWTEST_F() local
395 uint64_t frames = 0; HWTEST_F() local
412 uint64_t frames = 0; HWTEST_F() local
465 uint64_t *frames = nullptr; HWTEST_F() local
483 uint64_t frames = 0; HWTEST_F() local
502 uint64_t frames = 0; HWTEST_F() local
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_frame_formatter.h49 * @param frames native frame object list
50 * @return std::string native frames string
52 static std::string GetFramesStr(const std::vector<DfxFrame>& frames);
57 * @param frames native frame pointer list
58 * @return std::string native frames string
60 static std::string GetFramesStr(const std::vector<std::shared_ptr<DfxFrame>>& frames);
65 * @param frames native frame object list
68 static std::vector<std::shared_ptr<DfxFrame>> ConvertFrames(const std::vector<DfxFrame>& frames);
H A Dunwinder.h82 void FillFrames(std::vector<DfxFrame>& frames);
86 void GetFramesByPcs(std::vector<DfxFrame>& frames, std::vector<uintptr_t> pcs);
91 void SetFrames(std::vector<DfxFrame>& frames);
95 static void GetLocalFramesByPcs(std::vector<DfxFrame>& frames, std::vector<uintptr_t> pcs);
96 static std::string GetFramesStr(const std::vector<DfxFrame>& frames);
97 static void FillLocalFrames(std::vector<DfxFrame>& frames);
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A Daudio_render.cpp183 *count = hwRender->renderParam.frameRenderMode.frames; in AudioRenderGetFrameCount()
345 hwRender->renderParam.frameRenderMode.frames += hwRender->renderParam.frameRenderMode.bufferFrameSize; in AudioRenderRenderFrame()
363 int32_t AudioRenderGetRenderPosition(struct AudioRender *render, uint64_t *frames, struct AudioTimeStamp *time) in AudioRenderGetRenderPosition() argument
366 if (impl == NULL || frames == NULL || time == NULL) { in AudioRenderGetRenderPosition()
369 *frames = impl->renderParam.frameRenderMode.frames; in AudioRenderGetRenderPosition()
424 render->renderParam.frameRenderMode.frames = mExtraParams.frames; in SetValue()
485 &render->renderParam.frameRenderMode.frames); in AudioRenderGetExtraParams()
504 int32_t AudioRenderGetMmapPosition(AudioHandle handle, uint64_t *frames, struc argument
[all...]
/drivers/peripheral/audio/test/systemtest/hdi_service/common/render/src/
H A Daudio_idl_hdirender_test.cpp255 uint64_t frames = 0; in HWTEST_F() local
267 ret = audiopara.render->GetRenderPosition(audiopara.render, &frames, &time); in HWTEST_F()
270 EXPECT_GT(frames, INITIAL_VALUE); in HWTEST_F()
285 uint64_t frames = 0; in HWTEST_F() local
300 ret = audiopara.render->GetRenderPosition(audiopara.render, &frames, &time); in HWTEST_F()
303 EXPECT_GT(frames, INITIAL_VALUE); in HWTEST_F()
308 ret = audiopara.render->GetRenderPosition(audiopara.render, &frames, &time); in HWTEST_F()
311 EXPECT_GT(frames, INITIAL_VALUE); in HWTEST_F()
326 uint64_t frames = 0; in HWTEST_F() local
334 ret = render->GetRenderPosition(render, &frames, in HWTEST_F()
348 uint64_t frames = 0; HWTEST_F() local
365 uint64_t frames = 0; HWTEST_F() local
396 uint64_t frames = 0; HWTEST_F() local
412 uint64_t frames = 0; HWTEST_F() local
[all...]
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/
H A Dunwind_local_benchmark.cpp98 DFXLOGU("%{public}s frames.size: %{public}zu", __func__, unwSize); in UnwinderLocal()
127 DFXLOGU("%{public}s frames.size: %{public}zu", __func__, unwSize); in UnwinderLocalFp()
131 std::vector<DfxFrame> frames; in UnwinderLocalFp() local
136 frames.emplace_back(frame); in UnwinderLocalFp()
138 Unwinder::FillLocalFrames(frames); in UnwinderLocalFp()
139 DFXLOGU(Unwinder::GetFramesStr(frames).c_str()); in UnwinderLocalFp()
150 DFXLOGU("%{public}s frames.size: %{public}zu", __func__, unwSize); in FpUnwinderLocal()
154 std::vector<DfxFrame> frames; in FpUnwinderLocal() local
159 frames.emplace_back(frame); in FpUnwinderLocal()
161 Unwinder::FillLocalFrames(frames); in FpUnwinderLocal()
177 std::vector<DfxFrame> frames; FpUnwinderLocalSafe() local
[all...]
H A Dunwind_remote_benchmark.cpp80 auto frames = unwinder->GetFrames(); in UnwinderRemote() local
81 DFXLOGU("%{public}s frames.size: %{public}zu", __func__, frames.size()); in UnwinderRemote()
82 return frames.size(); in UnwinderRemote()
96 auto frames = unwinder->GetPcs(); in UnwinderRemoteFp() local
97 DFXLOGU("%{public}s frames.size: %{public}zu", __func__, frames.size()); in UnwinderRemoteFp()
98 return frames.size(); in UnwinderRemoteFp()
212 * @tc.desc: Unwind remote qut frames
227 * @tc.desc: Unwind remote qut frames cach
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/backtrace/
H A Dbacktrace_local_test.cpp109 const auto& frames = thread.GetFrames(); in HWTEST_F() local
110 ASSERT_GT(frames.size(), 0); in HWTEST_F()
151 const auto& frames = thread.GetFrames(); in HWTEST_F() local
152 ASSERT_GT(frames.size(), 0); in HWTEST_F()
254 * @tc.desc: test skip two stack frames and verify stack frame
283 * @tc.desc: test skip all stack frames
310 * @tc.desc: test skip stack frames exceeding the length
369 ASSERT_GT(threadStack.frames.size(), 0); in HWTEST_F()
370 for (auto const& frame : threadStack.frames) { in HWTEST_F()
416 const auto& frames in HWTEST_F() local
451 const auto& frames = thread.GetFrames(); HWTEST_F() local
[all...]
/drivers/peripheral/audio/test/unittest/common/render/
H A Daudio_render_mmap_test.cpp184 uint64_t frames = 0; in HWTEST_F() local
188 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, render_->GetMmapPosition(nullptr, &frames, &time)); in HWTEST_F()
193 uint64_t frames = 0; in HWTEST_F() local
198 int32_t ret = render_->GetMmapPosition(render_, &frames, &time); in HWTEST_F()
204 uint64_t frames = 0; in HWTEST_F() local
217 ret = render_->GetMmapPosition(render_, &frames, &time); in HWTEST_F()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/a2dp_codec/sbccodecctrl/src/
H A Da2dp_encoder_sbc.cpp536 Packet *pkt, size_t frames, const uint32_t bytes, uint32_t timeStamp, const uint16_t frameSize) const in EnqueuePacket()
539 frameSize, frames, a2dpSbcEncoderCb_.mtuSize, PacketSize(pkt)); in EnqueuePacket()
543 *p = frames; in EnqueuePacket()
545 profile->EnqueuePacket(pkt, frames, bytes, timeStamp); // Enqueue Packet. in EnqueuePacket()
547 EnqueuePacketFragment(pkt, frames, bytes, timeStamp, frameSize); in EnqueuePacket()
552 Packet *pkt, size_t frames, const uint32_t bytes, uint32_t timeStamp, const uint16_t frameSize) const in EnqueuePacketFragment()
562 if ((static_cast<uint16_t>(frames) / FRAGMENT_SIZE_TWO + 1) * frameSize < (a2dpSbcEncoderCb_.mtuSize)) { in EnqueuePacketFragment()
564 pktLen = (frames / count) * frameSize; in EnqueuePacketFragment()
567 pktLen = (frames / count) * frameSize; in EnqueuePacketFragment()
569 (frames in EnqueuePacketFragment()
535 EnqueuePacket( Packet *pkt, size_t frames, const uint32_t bytes, uint32_t timeStamp, const uint16_t frameSize) const EnqueuePacket() argument
551 EnqueuePacketFragment( Packet *pkt, size_t frames, const uint32_t bytes, uint32_t timeStamp, const uint16_t frameSize) const EnqueuePacketFragment() argument
[all...]
/drivers/peripheral/audio/test/unittest/common/capture/
H A Daudio_capture_mmap_test.cpp221 uint64_t frames = 0; in HWTEST_F() local
233 ret = mmapCapture_->GetMmapPosition(mmapCapture_, &frames, &time); in HWTEST_F()
243 uint64_t frames = 0; in HWTEST_F() local
255 ret = mmapCapture_->GetMmapPosition(nullptr, &frames, &time); in HWTEST_F()
267 uint64_t frames = 0; in HWTEST_F() local
270 int32_t ret = mmapCapture_->GetMmapPosition(mmapCapture_, &frames, &time); in HWTEST_F()

Completed in 14 milliseconds

12345678