Home
last modified time | relevance | path

Searched refs:pidStr (Results 1 – 8 of 8) sorted by relevance

/base/hiviewdfx/hiview/test/moduletest/common/
Dhiview_plugin_platform_module_test.cpp49 std::string pidStr = GetCmdResultFromPopen(cmd); in GetServicePid() local
51 OHOS::HiviewDFX::StringUtil::ConvertStringTo<int32_t>(pidStr, pid); in GetServicePid()
52 printf("the pid of service(%s) is %s \n", serviceName.c_str(), pidStr.c_str()); in GetServicePid()
/base/sensors/medical_sensor/services/medical_sensor/test/unittest/phone/
Dmedical_proxy_test.cpp98 std::string pidStr(buf); in GetSensorServicePid() local
99 pidStr = TrimStr(pidStr, '\n'); in GetSensorServicePid()
100 HiLog::Info(LABEL, "pidStr is : %{public}s", pidStr.c_str()); in GetSensorServicePid()
101 if (pidStr.empty()) { in GetSensorServicePid()
105 if (IsNumericStr(pidStr)) { in GetSensorServicePid()
106 pid = std::stoi(pidStr); in GetSensorServicePid()
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlog_formatter.h27 void WriteStackTraceFromLog(int32_t fd, const std::string& pidStr, const std::string& path);
Dfaultlog_formatter.cpp150 void WriteStackTraceFromLog(int32_t fd, const std::string& pidStr, const std::string& path) in WriteStackTraceFromLog() argument
171 (line.find(pidStr) != std::string::npos)) { in WriteStackTraceFromLog()
176 (line.find(pidStr) != std::string::npos)) { in WriteStackTraceFromLog()
/base/hiviewdfx/faultloggerd/test/utils/
Ddfx_test_util.cpp79 std::string pidStr = ExecuteCommands(cmd); in GetProcessPid() local
81 std::stringstream pidStream(pidStr); in GetProcessPid()
83 printf("the pid of process(%s) is %s \n", processName.c_str(), pidStr.c_str()); in GetProcessPid()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Dpeer_binder_catcher.cpp88 std::string pidStr = ""; in Catch() local
92 pidStr += "," + std::to_string(pidTemp); in Catch()
97 event_->SetValue(LOGGER_EVENT_PEERBINDER, StringUtil::TrimStr(pidStr, ',')); in Catch()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_meter.cpp128 std::string pidStr = std::to_string(getpid()); in OpenTraceMarkerFile() local
129 errno_t ret = strcpy_s(g_pid, PID_BUF_SIZE, pidStr.c_str()); in OpenTraceMarkerFile()
131 strcpy_s(g_pid, PID_BUF_SIZE, pidStr.c_str()); in OpenTraceMarkerFile()
133 HiLog::Error(LABEL, "pid[%{public}s] first get g_tagsProperty: %{public}s", pidStr.c_str(), in OpenTraceMarkerFile()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/
Ddfx_dump_catcher.cpp374 std::string pidStr; in DumpCatchMultiPid() local
375 if (DoDumpRemoteLocked(pid, 0, pidStr)) { in DumpCatchMultiPid()
376 msg.append(pidStr + "\n"); in DumpCatchMultiPid()