Home
last modified time | relevance | path

Searched refs:sp (Results 1 - 25 of 73) sorted by relevance

123

/base/hiviewdfx/faultloggerd/interfaces/common/
H A Ddfx_frame.h43 uint64_t sp {0};
64 DfxFrame(uint64_t pc, uint64_t sp = 0) : pc(pc), sp(sp) {} in DfxFrame()
71 return (pc == b.pc) && (sp == b.sp); in operator ==()
75 return (pc != b.pc) || (sp != b.sp); in operator !=()
82 return StringPrintf("pc: 0x%016lx, sp: 0x%016lx", pc, sp); in ToString()
[all...]
/base/notification/eventhandler/frameworks/eventhandler/src/
H A Devent_runner.cpp550 std::shared_ptr<EventRunner> sp(new (std::nothrow) EventRunner(false, Mode::DEFAULT)); in Create()
551 if (sp == nullptr) { in Create()
555 auto innerRunner = std::make_shared<EventRunnerImpl>(sp); in Create()
557 sp->innerRunner_ = innerRunner; in Create()
558 sp->queue_ = innerRunner->GetEventQueue(); in Create()
559 sp->threadMode_ = ThreadMode::NEW_THREAD; in Create()
560 sp->queue_->SetIoWaiter(false); in Create()
561 return sp; in Create()
573 std::shared_ptr<EventRunner> sp(new (std::nothrow) EventRunner(false, Mode::DEFAULT)); in Create()
574 if (sp in Create()
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_regs.cpp155 void DfxRegs::GetSpecialRegs(uintptr_t& fp, uintptr_t& lr, uintptr_t& sp, uintptr_t& pc) const in GetSpecialRegs() argument
161 sp = regsData_[REG_SP]; in GetSpecialRegs()
165 void DfxRegs::SetSpecialRegs(uintptr_t fp, uintptr_t lr, uintptr_t sp, uintptr_t pc) in SetSpecialRegs() argument
171 regsData_[REG_SP] = sp; in SetSpecialRegs()
180 void DfxRegs::SetSp(uintptr_t sp) in SetSp() argument
182 regsData_[REG_SP] = sp; in SetSp()
213 uintptr_t fp = 0, lr = 0, sp = 0, pc = 0; in GetSpecialRegsName() local
214 GetSpecialRegs(fp, lr, sp, pc); in GetSpecialRegsName()
219 } else if (val == sp) { in GetSpecialRegsName()
220 return "sp"; in GetSpecialRegsName()
248 uintptr_t fp = 0, lr = 0, sp = 0, pc = 0; PrintSpecialRegs() local
[all...]
H A Ddfx_ark.cpp209 uintptr_t *fp, uintptr_t *sp, uintptr_t *pc, uintptr_t* methodid, bool *isJsFrame) in StepArkFrame()
212 return g_stepArkFn(obj, readMemFn, fp, sp, pc, methodid, isJsFrame); in StepArkFrame()
219 return g_stepArkFn(obj, readMemFn, fp, sp, pc, methodid, isJsFrame); in StepArkFrame()
255 int DfxArk::GetArkNativeFrameInfo(int pid, uintptr_t& pc, uintptr_t& fp, uintptr_t& sp, JsFrame* frames, size_t& size) in GetArkNativeFrameInfo() argument
258 return g_getArkNativeFrameInfoFn(pid, &pc, &fp, &sp, frames, size); in GetArkNativeFrameInfo()
265 return g_getArkNativeFrameInfoFn(pid, &pc, &fp, &sp, frames, size); in GetArkNativeFrameInfo()
208 StepArkFrame(void *obj, OHOS::HiviewDFX::ReadMemFunc readMemFn, uintptr_t *fp, uintptr_t *sp, uintptr_t *pc, uintptr_t* methodid, bool *isJsFrame) StepArkFrame() argument
H A Dunwinder.cpp176 bool Step(uintptr_t& pc, uintptr_t& sp, void *ctx);
209 uintptr_t sp = 0; member
379 bool Unwinder::Step(uintptr_t& pc, uintptr_t& sp, void *ctx) in Step() argument
381 return impl_->Step(pc, sp, ctx); in Step()
674 ", fp:" + std::to_string(frame.fp) + ", sp:" + std::to_string(frame.sp) + in StepArkJsFrame()
678 DFXLOGD("+++ark pc: %{public}p, fp: %{public}p, sp: %{public}p, isJsFrame: %{public}d.", in StepArkJsFrame()
680 reinterpret_cast<void *>(frame.fp), reinterpret_cast<void *>(frame.sp), frame.isJsFrame); in StepArkJsFrame()
694 if (DfxArk::GetArkNativeFrameInfo(pid, frame.pc, frame.fp, frame.sp, jsFrames, size) < 0) { in StepArkJsFrame()
716 ArkUnwindParam arkParam(memory_.get(), &(Unwinder::AccessMem), &frame.fp, &frame.sp, in StepArkJsFrame()
872 Step(uintptr_t& pc, uintptr_t& sp, void *ctx) Step() argument
1090 uintptr_t sp = regs->GetSp(); Apply() local
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_ark.h65 uintptr_t *sp; member
70 ArkUnwindParam(void *ctx, ReadMemFunc readMem, uintptr_t *fp, uintptr_t *sp, uintptr_t *pc, in ArkUnwindParam()
72 : ctx(ctx), readMem(readMem), fp(fp), sp(sp), pc(pc), in ArkUnwindParam()
87 static int GetArkNativeFrameInfo(int pid, uintptr_t& pc, uintptr_t& fp, uintptr_t& sp,
91 uintptr_t *fp, uintptr_t *sp, uintptr_t *pc, uintptr_t* methodid, bool *isJsFrame);
H A Dfp_unwinder.h66 MAYBE_UNUSED uintptr_t sp = 0; in Unwind() local
95 MAYBE_UNUSED uintptr_t sp = 0; in UnwindSafe() local
/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerdunwinder_fuzzer/
H A Dfaultloggerdunwinder_fuzzer.cpp45 uintptr_t sp; in TestGetArkNativeFrameInfo() local
46 int offsetTotalLength = sizeof(pid) + sizeof(pc) + sizeof(fp) + sizeof(sp); in TestGetArkNativeFrameInfo()
54 STREAM_TO_VALUEINFO(data, sp); in TestGetArkNativeFrameInfo()
59 DfxArk::GetArkNativeFrameInfo(pid, pc, fp, sp, jsFrames, size); in TestGetArkNativeFrameInfo()
66 uintptr_t sp; in TestStepArkFrame() local
68 int offsetTotalLength = sizeof(pc) + sizeof(fp) + sizeof(sp) + sizeof(methodid); in TestStepArkFrame()
75 STREAM_TO_VALUEINFO(data, sp); in TestStepArkFrame()
80 DfxArk::StepArkFrame(&dfxMemory, &(Unwinder::AccessMem), &fp, &sp, &pc, &methodid, &isJsFrame); in TestStepArkFrame()
87 uintptr_t sp; in TestStepArkFrameWithJit() local
89 int offsetTotalLength = sizeof(pc) + sizeof(fp) + sizeof(sp) in TestStepArkFrameWithJit()
[all...]
/base/usb/usb_manager/test/tool/
H A Dusb_function_test.cpp66 explicit UsbSubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) {} in UsbSubscriberTest() argument
182 static void DeviceSpeed(UsbSrvClient &g_usbClient, int32_t &sp) in DeviceSpeed() argument
191 sp = speed; in DeviceSpeed()
209 static void ResetProxy(UsbSrvClient &g_usbClient, int32_t &sp) in ResetProxy() argument
225 sp = speed; in ResetProxy()
233 int32_t sp; in DeviceStatus() local
234 DeviceSpeed(g_usbClient, sp); in DeviceStatus()
235 printf("%s:%d device speed=%d\n", __func__, __LINE__, sp); in DeviceStatus()
252 int32_t sp; in SetProxy() local
[all...]
/base/telephony/core_service/services/network_search/test/
H A Dtest_broadcast.h26 explicit TestBroadCast(const EventFwk::CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) {} in TestBroadCast() argument
/base/telephony/core_service/test/unittest/core_service_gtest/
H A Dsim_operator_brocast_test.h30 explicit SimOperatorBrocastTest(const EventFwk::CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) {} in SimOperatorBrocastTest() argument
/base/telephony/core_service/test/unittest/esim_gtest/
H A Desim_manager_test.cpp69 EventFwk::CommonEventSubscribeInfo sp; in HWTEST_F() local
73 std::make_shared<SimFileManager>(sp, iTelRilManager, state); in HWTEST_F()
94 EventFwk::CommonEventSubscribeInfo sp; in HWTEST_F() local
98 std::make_shared<SimFileManager>(sp, iTelRilManager, state); in HWTEST_F()
119 EventFwk::CommonEventSubscribeInfo sp; in HWTEST_F() local
123 std::make_shared<SimFileManager>(sp, iTelRilManager, state); in HWTEST_F()
149 EventFwk::CommonEventSubscribeInfo sp; in HWTEST_F() local
153 std::make_shared<SimFileManager>(sp, iTelRilManager, state); in HWTEST_F()
177 EventFwk::CommonEventSubscribeInfo sp; in HWTEST_F() local
181 std::make_shared<SimFileManager>(sp, iTelRilManage in HWTEST_F()
205 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
233 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
258 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
286 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
315 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
341 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
367 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
402 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
430 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
457 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
484 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
513 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
542 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
571 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
599 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
629 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
658 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
684 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
711 EventFwk::CommonEventSubscribeInfo sp; HWTEST_F() local
[all...]
/base/notification/common_event_service/frameworks/native/test/unittest/
H A Dcommon_event_unsubscribe_test.cpp59 explicit DreivedSubscriber(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in DreivedSubscriber() argument
109 explicit SubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest() argument
258 sptr<IRemoteObject> sp(nullptr); in HWTEST_F()
259 EXPECT_EQ(false, innerCommonEventManager->UnsubscribeCommonEvent(sp)); in HWTEST_F()
/base/notification/common_event_service/services/src/
H A Dcommon_event_control_manager.cpp563 std::shared_ptr<OrderedEventRecord> sp = nullptr; in ProcessNextOrderedEvent() local
573 sp = orderedEventQueue_.front(); in ProcessNextOrderedEvent()
575 size_t numReceivers = sp->receivers.size(); in ProcessNextOrderedEvent()
578 if (sp->dispatchTime > 0) { in ProcessNextOrderedEvent()
579 if ((numReceivers > 0) && (nowSysTime > static_cast<uint64_t>(sp->dispatchTime) + in ProcessNextOrderedEvent()
583 sp->state = OrderedEventRecord::IDLE; in ProcessNextOrderedEvent()
587 if (sp->state != OrderedEventRecord::IDLE) { in ProcessNextOrderedEvent()
591 if ((sp->receivers.empty()) || (sp->nextReceiver >= numReceivers) || sp in ProcessNextOrderedEvent()
626 SetTime(size_t recIdx, std::shared_ptr<OrderedEventRecord> &sp, bool timeoutMessage) SetTime() argument
689 std::shared_ptr<OrderedEventRecord> sp = orderedEventQueue_.front(); CurrentOrderedEventTimeout() local
[all...]
H A Dinner_common_event_manager.cpp335 std::shared_ptr<CommonEventSubscribeInfo> sp = std::make_shared<CommonEventSubscribeInfo>(subscribeInfo_); in SubscribeCommonEvent() local
360 sp, commonEventListener, recordTime, eventRecordInfo); in SubscribeCommonEvent()
362 PublishStickyEvent(sp, record); in SubscribeCommonEvent()
383 std::shared_ptr<OrderedEventRecord> sp = controlPtr_->GetMatchingOrderedReceiver(commonEventListener); in UnsubscribeCommonEvent() local
384 if (sp) { in UnsubscribeCommonEvent()
386 int32_t code = sp->commonEventData->GetCode(); in UnsubscribeCommonEvent()
387 std::string data = sp->commonEventData->GetData(); in UnsubscribeCommonEvent()
388 controlPtr_->FinishReceiverAction(sp, code, data, sp->resultAbort); in UnsubscribeCommonEvent()
456 std::shared_ptr<OrderedEventRecord> sp in FinishReceiver() local
577 PublishStickyEvent( const std::shared_ptr<CommonEventSubscribeInfo> &sp, const std::shared_ptr<EventSubscriberRecord> &subscriberRecord) PublishStickyEvent() argument
[all...]
/base/notification/common_event_service/test/fuzztest/unsubscribecommonevent_fuzzer/
H A Dunsubscribecommonevent_fuzzer.cpp24 explicit TestSubscriber(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in TestSubscriber() argument
/base/notification/common_event_service/services/test/unittest/
H A Dcommon_event_unsubscribe_unit_test.cpp59 explicit SubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in SubscriberTest() argument
118 OHOS::sptr<OHOS::IRemoteObject> sp(nullptr); in HWTEST_F()
119 EXPECT_FALSE(innerCommonEventManager->UnsubscribeCommonEvent(sp)); in HWTEST_F()
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/
H A Dthread_sampler.cpp106 if (addr < unwindInfo->context->sp || in AccessMem()
107 addr + sizeof(uintptr_t) >= unwindInfo->context->sp + STACK_BUFFER_SIZE) { in AccessMem()
110 size_t stackOffset = addr - unwindInfo->context->sp; in AccessMem()
347 contextArray[index].sp = static_cast<ucontext_t*>(context)->uc_mcontext.sp; in WriteContext()
349 if (contextArray[index].sp < stackBegin_ || in WriteContext()
350 contextArray[index].sp >= stackEnd_) { in WriteContext()
354 uintptr_t curStackSz = stackEnd_ - contextArray[index].sp; in WriteContext()
359 reinterpret_cast<const char*>(contextArray[index].sp)[pos]; in WriteContext()
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dark_test.cpp197 uintptr_t *sp = &zero; in HWTEST_F() local
204 g_stepArkFn(obj, readMemFn, fp, sp, pc, methodid, isJsFrame); in HWTEST_F()
244 uintptr_t *sp = &zero; in HWTEST_F() local
250 OHOS::HiviewDFX::ArkUnwindParam ark(ctx, readMem, fp, sp, pc, methodId, isJsFrame, jitCache); in HWTEST_F()
293 uintptr_t& sp = zero; in HWTEST_F() local
299 g_getArkNativeFrameInfoFn(pid, &pc, &fp, &sp, frames, size); in HWTEST_F()
/base/hiviewdfx/hisysevent/frameworks/native/util/
H A Dstring_util.cpp47 int ConvertCString(const std::string& str, char** sp, size_t len) in ConvertCString() argument
60 *sp = data; in ConvertCString()
/base/notification/common_event_service/test/fuzztest/subscribecommonevent_fuzzer/
H A Dsubscribecommonevent_fuzzer.cpp30 explicit TestSubscriber(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in TestSubscriber() argument
/base/notification/common_event_service/frameworks/core/test/unittest/
H A Dcommon_event_listener_test.cpp40 explicit ListenerSubscriberTest(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in ListenerSubscriberTest() argument
/base/hiviewdfx/hiview/base/
H A Dpipeline.cpp172 std::shared_ptr<Plugin> sp = wp.lock(); in RemoveProcessor()
173 if (cur != nullptr && sp != nullptr) { in RemoveProcessor()
174 return cur == sp; in RemoveProcessor()
/base/notification/common_event_service/test/fuzztest/commonevent_fuzzer/
H A Dcommonevent_fuzzer.cpp25 explicit TestSubscriber(const CommonEventSubscribeInfo &sp) : CommonEventSubscriber(sp) in TestSubscriber() argument
/base/notification/common_event_service/interfaces/kits/cj/src/
H A Dsubscriber.cpp24 SubscriberImpl::SubscriberImpl(std::shared_ptr<CommonEventSubscribeInfo> sp, int64_t infoId) in SubscriberImpl() argument
25 : CommonEventSubscriber(*sp) in SubscriberImpl()

Completed in 14 milliseconds

123