/base/telephony/state_registry/test/fuzztest/telephonystateregistry_fuzzer/ |
D | telephonystateregistry_fuzzer.cpp | 183 void CreateGsmSignalInfo(std::unique_ptr<GsmSignalInformation> &signal, const uint8_t *data, size_t… in CreateGsmSignalInfo() argument 185 if (signal == nullptr) { in CreateGsmSignalInfo() 188 signal->signalBar_ = static_cast<int32_t>(size); in CreateGsmSignalInfo() 189 signal->gsmRxlev_ = static_cast<int32_t>(size); in CreateGsmSignalInfo() 190 signal->gsmBer_ = static_cast<int32_t>(size); in CreateGsmSignalInfo() 193 void CreateCDMASignalInfo(std::unique_ptr<CdmaSignalInformation> &signal, const uint8_t *data, size… in CreateCDMASignalInfo() argument 195 if (signal == nullptr) { in CreateCDMASignalInfo() 198 signal->signalBar_ = static_cast<int32_t>(size); in CreateCDMASignalInfo() 199 signal->cdmaRssi_ = static_cast<int32_t>(size); in CreateCDMASignalInfo() 200 signal->cdmaEcno_ = static_cast<int32_t>(size); in CreateCDMASignalInfo() [all …]
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/ |
D | signal_info.cpp | 38 bool SignalInfo::IsSignalInfoAvaliable(int32_t signal) in IsSignalInfoAvaliable() argument 41 if (sigaction(signal, nullptr, &previousAction) < 0) { in IsSignalInfoAvaliable() 47 bool SignalInfo::IsSignalAddrAvaliable(int32_t signal) in IsSignalAddrAvaliable() argument 49 return ((signal == SIGABRT) || (signal == SIGBUS) || (signal == SIGILL) in IsSignalAddrAvaliable() 50 || (signal == SIGSEGV) || (signal == SIGTRAP)); in IsSignalAddrAvaliable() 67 std::string SignalInfo::FormatSignalName(int32_t signal) in FormatSignalName() argument 69 switch (signal) { in FormatSignalName() 262 std::string SignalInfo::FormatCodeName(int32_t signal, int32_t signalCode) in FormatCodeName() argument 264 switch (signal) { in FormatCodeName()
|
D | signal_info.h | 27 static bool IsSignalInfoAvaliable(int32_t signal); 28 static bool IsSignalAddrAvaliable(int32_t signal); 30 static std::string FormatSignalName(int32_t signal); 31 static std::string FormatCodeName(int32_t signal, int32_t signalCode);
|
/base/telephony/state_registry/frameworks/native/observer/src/ |
D | telephony_observer.cpp | 191 … std::unique_ptr<GsmSignalInformation> signal = std::make_unique<GsmSignalInformation>(); in ConvertSignalInfoList() local 192 if (signal != nullptr) { in ConvertSignalInfoList() 193 signal->ReadFromParcel(data); in ConvertSignalInfoList() 194 result.emplace_back(signal.release()); in ConvertSignalInfoList() 199 … std::unique_ptr<CdmaSignalInformation> signal = std::make_unique<CdmaSignalInformation>(); in ConvertSignalInfoList() local 200 if (signal != nullptr) { in ConvertSignalInfoList() 201 signal->ReadFromParcel(data); in ConvertSignalInfoList() 202 result.emplace_back(signal.release()); in ConvertSignalInfoList() 213 … std::unique_ptr<WcdmaSignalInformation> signal = std::make_unique<WcdmaSignalInformation>(); in ConvertSignalInfoList() local 214 if (signal != nullptr) { in ConvertSignalInfoList() [all …]
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
D | signal_test.cpp | 86 std::shared_ptr<DfxSignal> signal = std::make_shared<DfxSignal>(input); variable 87 bool ret = signal->IsAvailable(); 115 std::shared_ptr<DfxSignal> signal = std::make_shared<DfxSignal>(input); variable 116 bool ret = signal->IsAvailable(); 136 std::shared_ptr<DfxSignal> signal = std::make_shared<DfxSignal>(input); variable 137 bool ret = signal->IsAddrAvailable(); 151 std::shared_ptr<DfxSignal> signal = std::make_shared<DfxSignal>(input); variable 152 bool ret = signal->IsAddrAvailable(); 166 std::shared_ptr<DfxSignal> signal = std::make_shared<DfxSignal>(input); variable 167 bool ret = signal->IsPidAvailable(); [all …]
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
D | dfx_signal.h | 27 explicit DfxSignal(const int32_t signal) : signal_(signal) {} in DfxSignal() argument 43 static std::string FormatSignalName(const int32_t signal); 44 static std::string FormatCodeName(const int32_t signal, const int32_t signalCode);
|
/base/telephony/core_service/frameworks/native/src/ |
D | signal_information.cpp | 180 std::unique_ptr<GsmSignalInformation> signal = std::make_unique<GsmSignalInformation>(); in Unmarshalling() local 181 if (signal && !signal->ReadFromParcel(parcel)) { in Unmarshalling() 182 signal = nullptr; in Unmarshalling() 184 return signal; in Unmarshalling() 306 std::unique_ptr<CdmaSignalInformation> signal = std::make_unique<CdmaSignalInformation>(); in Unmarshalling() local 307 if (signal && !signal->ReadFromParcel(parcel)) { in Unmarshalling() 308 signal = nullptr; in Unmarshalling() 310 return signal; in Unmarshalling() 460 std::unique_ptr<LteSignalInformation> signal = std::make_unique<LteSignalInformation>(); in Unmarshalling() local 461 if (signal && !signal->ReadFromParcel(parcel)) { in Unmarshalling() [all …]
|
/base/telephony/state_registry/services/src/ |
D | telephony_state_registry_stub.cpp | 166 … std::unique_ptr<GsmSignalInformation> signal = std::make_unique<GsmSignalInformation>(); in parseSignalInfos() local 167 if (signal != nullptr) { in parseSignalInfos() 168 signal->ReadFromParcel(data); in parseSignalInfos() 169 result.emplace_back(signal.release()); in parseSignalInfos() 175 … std::unique_ptr<CdmaSignalInformation> signal = std::make_unique<CdmaSignalInformation>(); in parseSignalInfos() local 176 if (signal != nullptr) { in parseSignalInfos() 177 signal->ReadFromParcel(data); in parseSignalInfos() 178 result.emplace_back(signal.release()); in parseSignalInfos() 190 … std::unique_ptr<WcdmaSignalInformation> signal = std::make_unique<WcdmaSignalInformation>(); in parseSignalInfos() local 191 if (signal != nullptr) { in parseSignalInfos() [all …]
|
/base/startup/init/services/loopevent/signal/ |
D | le_signal.c | 98 LE_STATUS LE_AddSignal(const LoopHandle loopHandle, const SignalHandle signalHandle, int signal) in LE_AddSignal() argument 103 LE_LOGI("LE_AddSignal %d %d", signal, task->sigNumber); in LE_AddSignal() 104 if (sigismember(&task->mask, signal)) { in LE_AddSignal() 107 sigaddset(&task->mask, signal); in LE_AddSignal() 120 LE_STATUS LE_RemoveSignal(const LoopHandle loopHandle, const SignalHandle signalHandle, int signal) in LE_RemoveSignal() argument 125 LE_LOGI("LE_RemoveSignal %d %d", signal, task->sigNumber); in LE_RemoveSignal() 126 if (!sigismember(&task->mask, signal)) { in LE_RemoveSignal() 129 sigdelset(&task->mask, signal); in LE_RemoveSignal()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
D | dfx_signal.cpp | 76 DfxSignal signal(info.si_signo); in PrintSignal() local 77 if (signal.IsAddrAvailable()) { in PrintSignal() 92 std::string DfxSignal::FormatSignalName(const int32_t signal) in FormatSignalName() argument 107 if (sigMaps.find(signal) != sigMaps.end()) { in FormatSignalName() 108 return sigMaps[signal]; in FormatSignalName() 113 std::string DfxSignal::FormatCodeName(const int32_t signal, const int32_t signalCode) in FormatCodeName() argument 115 switch (signal) { in FormatCodeName()
|
/base/hiviewdfx/faultloggerd/test/funchook/ |
D | dfx_func_hook_unittest.cpp | 98 int signal = WTERMSIG(status); variable 99 printf("Exit signal was %d\n", signal); 100 EXPECT_EQ(signal, SIGKILL);
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | network_search_test.h | 207 void PrintGsmSignalInformation(sptr<SignalInformation> signal); 208 void PrintCdmaSignalInformation(sptr<SignalInformation> signal); 209 void PrintWcdmaSignalInformation(sptr<SignalInformation> signal); 210 void PrintTdScdmaSignalInformation(sptr<SignalInformation> signal); 211 void PrintLteSignalInformation(sptr<SignalInformation> signal); 212 void PrintNrSignalInformation(sptr<SignalInformation> signal);
|
/base/startup/init/services/begetctl/shell/ |
D | shell_main.c | 26 static void signalHandler(int signal) in signalHandler() argument 53 (void)signal(SIGINT, signalHandler); in main() 54 (void)signal(SIGKILL, signalHandler); in main()
|
/base/hiviewdfx/faultloggerd/docs/ |
D | usage.md | 114 2)查看崩溃地址,signal会携带崩溃访问的地址,如load 非法地址会触发 sigsegv,branch 到合法地址但地址指向的不是代码段会触发sigill \ 137 93 93 W 0a011/APPSPAWN: [appspawn_service.c:141]com.ohos.launcher with pid 1368 exit with signal:11 138 … W 0a011/APPSPAWN: [appspawn_service.c:141]ohos.samples.flashlight with pid 1260 exit with signal:6 145 status可以直接使用WIFSIGNALED/WIFEXITED处理,获得实际的exit code 或者signal。 167 如果进程使用了signal/sigaction/sigprocmask等函数屏蔽/拦截了信号的分发,也会导致进程由于信号退出时没有日志。 \ 183 [dfx_func_hook.c:67]2361 send signal(9) to 1461 // 进程 1261 给 进程 1461 发送 SIGKILL 186 也可使用strace来排查,strace -p pid 操作后查看是否有signal/sigaction/sigprocmask/sigblock等函数,导致block信号或替换掉了原handler。
|
D | design.md | 12 2)异常时调用限制,例如signal handler里建议只执行async-safe的调用,这样就需要预留一些资源。
|
/base/startup/init/services/begetctl/ |
D | main.c | 33 static void signalHandler(int signal) in signalHandler() argument 41 (void)signal(SIGINT, signalHandler); in main()
|
/base/msdp/device_status/rust/modules/scheduler/test/src/ |
D | lib.rs | 42 fn signal(&self, data: i32) in signal() method 117 fn signal(&self, data: i32) in signal() method 120 guard.signal(data); in signal() 167 epoll.signal(data); in test_add_epoll_handler() 217 cloned_epoll.signal(ID_RADIX.fetch_add(1, Ordering::Relaxed)); in test_post_perioric_task() 236 cloned_epoll.signal(data); in test_post_delayed_task()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_stack_info_formatter.cpp | 89 Json::Value signal; in GetNativeCrashInfo() local 90 signal["signo"] = request_->siginfo.si_signo; in GetNativeCrashInfo() 91 signal["code"] = request_->siginfo.si_code; in GetNativeCrashInfo() 93 exception["signal"] = signal; in GetNativeCrashInfo()
|
D | main.cpp | 60 if (signal(SIGCHLD, SIG_IGN) == SIG_ERR) { in main()
|
/base/startup/appspawn/standard/ |
D | pid_ns_init.c | 21 signal(SIGCHLD, SIG_IGN); in main()
|
/base/security/selinux_adapter/sepolicy/base/te/ |
D | faultloggerd.te | 37 allow faultloggerd foundation:process { signal }; 51 allow faultloggerd powermgr:process { signal }; 55 allow faultloggerd system_basic_hap_attr:process { signal }; 57 allow faultloggerd system_core_hap_attr:process { signal };
|
/base/startup/init/services/init/ |
D | main.c | 28 (void)signal(SIGPIPE, SIG_IGN); in main()
|
/base/startup/init/services/loopevent/ |
D | BUILD.gn | 18 "signal/le_signal.c", 37 "signal",
|
/base/security/selinux_adapter/sepolicy/ohos_policy/developtools/lldb/system/ |
D | lldb.te | 46 allow lldb_server debug_hap:process { ptrace sigkill signal sigstop }; 56 ptrace sigkill signal sigstop }; 57 neverallow lldb_server self:process { ptrace sigkill signal sigstop };
|
/base/startup/init/ |
D | README_zh.md | 35 │ │ ├── signal # 信号处理接口封装。提供信号的添加,handler注册等功能 37 │ │ ├── task # 事件的抽象任务,如signal, timer等事件都要创建对应task
|