/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/test/unittest/phone/ |
H A D | medical_proxy_test.cpp | 98 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()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/ |
H A D | faultlog_formatter_unittest.cpp | 55 std::string pidStr; variable 58 FaultLogger::WriteStackTraceFromLog(fd, pidStr, path); 61 FaultLogger::WriteStackTraceFromLog(fd, pidStr, path);
|
/ohos5.0/base/hiviewdfx/hiview/test/moduletest/common/ |
H A D | hiview_plugin_platform_module_test.cpp | 49 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()
|
/ohos5.0/drivers/peripheral/display/buffer/hdi_service/src/ |
H A D | allocator_service.cpp | 120 char pidStr[BUFF_SIZE] = { 0 }; in WriteAllocPidToDma() local 121 if (sprintf_s(pidStr, BUFF_SIZE, "%d", remotePid) >= 0) { in WriteAllocPidToDma() 122 ioctl(fd, DMA_BUF_SET_NAME_A, pidStr); in WriteAllocPidToDma()
|
/ohos5.0/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
H A D | hitrace_meter.cpp | 172 std::string pidStr = std::to_string(getprocpid()); in InitPid() local 173 int ret = strcpy_s(g_pid, PID_BUF_SIZE, pidStr.c_str()); in InitPid() 184 HILOG_ERROR(LOG_CORE, "pid[%{public}s] first get g_tagsProperty: %{public}s", pidStr.c_str(), in InitPid() 190 std::string pidStr = std::to_string(getprocpid()); in ReloadPid() local 191 int ret = strcpy_s(g_pid, PID_BUF_SIZE, pidStr.c_str()); in ReloadPid() 448 std::string pidStr = std::string(g_pid); in SetMainThreadInfo() local 449 std::string pidFixStr = std::string(PID_STR_MAX - pidStr.length(), ' '); in SetMainThreadInfo() 450 g_appTracePrefix += "-" + pidStr + pidFixStr + " (" + pidFixStr + pidStr + ")"; in SetMainThreadInfo() 469 std::string pidStr = std::string(g_pid); in SetAllThreadInfo() local 471 std::string pidFixStr = std::string(PID_STR_MAX - pidStr.length(), ' '); in SetAllThreadInfo() [all …]
|
H A D | hitrace_dump.cpp | 1405 std::string pidStr = item.substr(pos + 1); in ParseArgs() local 1406 if (!IsNumber(pidStr)) { in ParseArgs() 1407 … HILOG_ERROR(LOG_CORE, "Illegal input, appPid(%{public}s) must be number.", pidStr.c_str()); in ParseArgs() 1410 int appPid = std::stoi(pidStr); in ParseArgs() 1415 OHOS::system::SetParameter("debug.hitrace.app_pid", pidStr); in ParseArgs()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/hidumper_adapter/ |
H A D | softbus_hidumper_trans.c | 69 char pidStr[MAX_ID_LEN] = {0}; in SoftBusTransDumpRegisterSession() local 76 DataMasking(pidArr, MAX_ID_LEN, ID_DELIMITER, pidStr); in SoftBusTransDumpRegisterSession() 85 SOFTBUS_DPRINTF(fd, "UID : %s\n", pidStr); in SoftBusTransDumpRegisterSession()
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | memory_collector_impl.cpp | 516 std::string pidStr = std::to_string(pid); in CollectRawSmaps() local 517 std::string fileName = PROC + pidStr + "/smaps"; in CollectRawSmaps() 518 std::string preFix = "proc_smaps_" + pidStr + "_"; in CollectRawSmaps() 552 static std::string GetSnapshotPath(const std::string& dirPath, const std::string& pidStr) in GetSnapshotPath() argument 566 if (pidStr.compare(parsePidStr) != 0) { in GetSnapshotPath() 576 std::string pidStr = std::to_string(pid); in CollectHprof() local 584 std::string preFix = "jsheap_" + pidStr + "_"; in CollectHprof() 591 std::string srcFilePath = GetSnapshotPath("/data/log/faultlog/temp", pidStr); in CollectHprof() 593 srcFilePath = GetSnapshotPath("/data/log/reliability/resource_leak/memory_leak", pidStr); in CollectHprof()
|
H A D | mem_profiler_collector_impl.cpp | 54 std::string pidStr = std::to_string(pid); in GetUid() local 55 std::ifstream statusFile("/proc/" + pidStr + "/status"); in GetUid()
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/ |
H A D | system_ability_manager_dumper_test.cpp | 845 std::string pidStr = "123"; variable 846 bool ret = SystemAbilityManagerDumper::FfrtDumpParser(processIds, pidStr); 860 std::string pidStr = "123|234"; variable 861 bool ret = SystemAbilityManagerDumper::FfrtDumpParser(processIds, pidStr); 876 std::string pidStr = "12k|234"; variable 877 bool ret = SystemAbilityManagerDumper::FfrtDumpParser(processIds, pidStr); 892 std::string pidStr = "12k"; variable 893 bool ret = SystemAbilityManagerDumper::FfrtDumpParser(processIds, pidStr);
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/utils/ |
H A D | dfx_test_util.cpp | 79 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()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
H A D | faultlog_formatter.cpp | 180 void WriteStackTraceFromLog(int32_t fd, const std::string& pidStr, const std::string& path) in WriteStackTraceFromLog() argument 201 (line.find(pidStr) != std::string::npos)) { in WriteStackTraceFromLog() 206 (line.find(pidStr) != std::string::npos)) { in WriteStackTraceFromLog()
|
H A D | faultlog_formatter.h | 27 void WriteStackTraceFromLog(int32_t fd, const std::string& pidStr, const std::string& path);
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/ |
H A D | system_ability_manager_dumper.cpp | 71 std::string pidStr = args[FFRT_DUMP_PIDS_INDEX]; in GetFfrtDumpInfoProc() local 73 SystemAbilityManagerDumper::FfrtDumpParser(processIds, pidStr); in GetFfrtDumpInfoProc() 75 … HILOGE("FfrtDumpParser parse failed, illegal input processIdsStr %{public}s ", pidStr.c_str()); in GetFfrtDumpInfoProc()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/ |
H A D | event_logger.cpp | 449 std::string pidStr = strList[2].substr(0, strList[2].find(":")); in ParsePeerBinder() local 450 if (pidStr == "") { in ParsePeerBinder() 453 if (processNameMap.find(pidStr) == processNameMap.end()) { in ParsePeerBinder() 454 std::string filePath = "/proc/" + pidStr + "/cmdline"; in ParsePeerBinder() 465 processNameMap[pidStr] = processName; in ParsePeerBinder() 467 HIVIEW_LOGE("Fail to open /proc/%{public}s/cmdline", pidStr.c_str()); in ParsePeerBinder() 470 …std::string lineStr = line + " " + pidStr + FreezeJsonUtil::WrapByParenthesis(processNameMap[pi… in ParsePeerBinder()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
H A D | peer_binder_catcher.cpp | 97 std::string pidStr = ""; in Catch() local 106 pidStr += "," + std::to_string(pidTemp); in Catch() 120 event_->SetValue(LOGGER_EVENT_PEERBINDER, StringUtil::TrimStr(pidStr, ',')); in Catch()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/ |
H A D | hgm_multi_app_strategy.cpp | 389 auto pidStr = pidAppType.substr(0, index); in AnalyzePkgParam() local 390 if (XMLParser::IsNumber(pidStr)) { in AnalyzePkgParam() 391 pid = static_cast<pid_t>(std::stoi(pidStr)); in AnalyzePkgParam()
|
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/ |
H A D | xcollie_utils.cpp | 132 std::string pidStr = pid > 0 ? std::to_string(pid) : "self"; in GetProcessNameFromProcCmdline() local 133 std::string procCmdlinePath = "/proc/" + pidStr + "/cmdline"; in GetProcessNameFromProcCmdline()
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/ |
H A D | dfx_dump_catcher.cpp | 617 std::string pidStr; in DumpCatchMultiPid() local 618 if (DoDumpRemoteLocked(pid, 0, pidStr)) { in DumpCatchMultiPid() 619 msg.append(pidStr + "\n"); in DumpCatchMultiPid()
|
/ohos5.0/docs/zh-cn/device-dev/subsystems/ |
H A D | subsys-boot-init-seccomp.md | 453 + char pidStr[9] = {0}; 454 + sprintf_s(pidStr, 6, "%d", pid); 455 …+ if (execl("/system/bin/strace", "/system/bin/strace", "-p", (const char *)pidStr, "-f…
|
/ohos5.0/foundation/multimodalinput/input/frameworks/proxy/events/test/ |
H A D | input_manager_filter_manual_test.cpp | 201 std::string pidStr = match[3].str(); in GetSelfHidumperFilter() local 202 if (pidStr != strPid) { in GetSelfHidumperFilter()
|
/ohos5.0/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | app_mgr_service.cpp | 803 for (const auto& pidStr : pidsStr) { in DumpFfrtInner() local 806 pid = static_cast<int32_t>(std::strtol(pidStr.c_str(), &end, BASE_TEN)); in DumpFfrtInner() 808 TAG_LOGE(AAFwkTag::APPMGR, "invalid pid:%{public}s", pidStr.c_str()); in DumpFfrtInner() 812 TAG_LOGE(AAFwkTag::APPMGR, "invalid pid: %{public}s", pidStr.c_str()); in DumpFfrtInner()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | event_report.cpp | 322 std::string pidStr = std::to_string(pid); in ANRShowDialog() local 326 EVENT_KEY_PID, pidStr, in ANRShowDialog()
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-boot-init-seccomp.md | 479 + char pidStr[9] = {0}; 480 + sprintf_s(pidStr, 6, "%d", pid); 481 …+ if (execl("/system/bin/strace", "/system/bin/strace", "-p", (const char *)pidStr, "-f…
|