Home
last modified time | relevance | path

Searched refs:COMMON (Results 1 – 23 of 23) sorted by relevance

/developtools/profiler/device/base/test/unittest/
Dcommon_test.cpp25 using namespace COMMON;
75 EXPECT_TRUE(COMMON::IsProcessExist(procName, pid));
79 EXPECT_FALSE(COMMON::IsProcessExist(invalidProcName, pid));
95 EXPECT_FALSE(COMMON::IsProcessRunning(lockFileFd));
96 int procPid = COMMON::StartProcess(profilerProcName, argvVec);
99 EXPECT_NE(COMMON::KillProcess(procPid), -1);
/developtools/profiler/device/cmds/src/
Dmain.cpp90 return COMMON::GetServicePort(); in GetServicePort()
368 if (!COMMON::IsProcessExist(HIPROFILERD_NAME, g_hiprofilerdPid)) { in StartDependentProcess()
372 g_hiprofilerdPid = COMMON::StartProcess(HIPROFILERD_NAME, argvVec); in StartDependentProcess()
377 if (!COMMON::IsProcessExist(HIPROFILER_PLUGINS_NAME, g_hiprofilerPluginsPid)) { in StartDependentProcess()
381 g_hiprofilerPluginsPid = COMMON::StartProcess(HIPROFILER_PLUGINS_NAME, argvVec); in StartDependentProcess()
386 if (!COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid)) { in StartDependentProcess()
390 g_nativeDaemonPid = COMMON::StartProcess(NATIVE_DAEMON_NAME, argvVec); in StartDependentProcess()
422 COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid); in KillDependentProcess()
425 COMMON::IsProcessExist(HIPROFILER_PLUGINS_NAME, g_hiprofilerPluginsPid); in KillDependentProcess()
428 COMMON::IsProcessExist(HIPROFILERD_NAME, g_hiprofilerdPid); in KillDependentProcess()
[all …]
/developtools/profiler/device/services/profiler_service/src/
Dmain.cpp31 if (COMMON::IsProcessRunning(lockFileFd)) { // process is running in main()
41 std::string listenUri = DEFAULT_SERVICE_LISTEN_URI + std::to_string(COMMON::GetServicePort()); in main()
Dtrace_file_writer.cpp106 std::string timeStr = COMMON::GetTimeStr(); in WriteHeader()
267 std::string errorMsg = COMMON::GetErrorMsg(); in LogDiskUsage()
Dprofiler_service.cpp256 if (!COMMON::CheckApplicationPermission(hookConfig.pid(), hookConfig.process_name())) { in CreateSession()
/developtools/profiler/device/plugins/hisysevent_plugin/test/unittest/
Dhisysevent_plugin_unittest.cpp234 FILE* fpr = COMMON::CustomPopen(fullCmdTest, nullptr, pipeFds, childPid, true);
236 EXPECT_EQ(COMMON::CustomPclose(fpr, pipeFds, childPid, true), -1);
241 FILE* fpw = COMMON::CustomPopen(fullCmdTest, "w", pipeFds, childPid);
243 EXPECT_EQ(COMMON::CustomPclose(fpw, pipeFds, childPid, true), -1);
/developtools/profiler/device/plugins/hiperf_plugin/src/
Dhiperf_module.cpp87 COMMON::SplitString(cmd, " ", cmdArg); in RunCommand()
92 FILE* fp = COMMON::CustomPopen(cmdArg, "r", pipeFds, childPid); in RunCommand()
105 COMMON::CustomPclose(fp, pipeFds, childPid); in RunCommand()
/developtools/profiler/device/plugins/hisysevent_plugin/src/
Dhisysevent_plugin.cpp64 COMMON::CustomPopen(fullCmd_, "r", pipeFds_, childPid_, true), [this](FILE* fp) -> int { in Start()
65 return COMMON::CustomPclose(fp, pipeFds_, childPid_, true); in Start()
84 COMMON::CustomPUnblock(pipeFds_); in Stop()
/developtools/profiler/device/plugins/native_daemon/src/
Dhook_manager.cpp77 bool isExist = COMMON::IsProcessExist(processName, pidValue); in CheckProcessName()
172 clientConfig.clockId = COMMON::GetClockId(hookConfig_.clock()); in GetClientConfig()
192 …CHECK_TRUE(getuid() == 0 || COMMON::CheckApplicationPermission(hookConfig_.pid(), hookConfig_.proc… in CreatePluginSession()
264 clockid_t pluginDataClockId = COMMON::GetClockId(config[0].clock()); in CreatePluginSession()
Dhook_service.cpp75 CHECK_TRUE(getuid() == 0 || COMMON::CheckApplicationPermission(pid_, ""), false, in ProtocolProc()
Dmain.cpp187 bool isExist = COMMON::IsProcessExist(processName, pidValue); in GetHookedProceInfo()
217 if (COMMON::IsProcessRunning(lockFileFd)) { // process is running in main()
Dhook_standalone.cpp161 clockid_t pluginDataClockId = COMMON::GetClockId("realtime"); in StartHook()
Dvirtual_thread.cpp394 COMMON::AdaptSandboxPath(memMapItem.name_, pid_); in ParseMap()
Dstack_preprocess.cpp68 hookDataClockId_ = COMMON::GetClockId(hookConfig_.clock()); in StackPreprocess()
183 COMMON::AdaptSandboxPath(filePath, rawData->stackConext->pid); in TakeResults()
/developtools/profiler/device/base/include/
Dcommon.h23 namespace COMMON {
/developtools/profiler/device/plugins/api/src/
Dmain.cpp69 if (COMMON::IsProcessRunning(lockFileFd)) { // process is running in main()
Dplugin_manager.cpp258 pluginModules_[it->second]->SetClockId(COMMON::GetClockId(config[idx].clock())); in CreatePluginSession()
/developtools/profiler/device/plugins/hilog_plugin/src/
Dhilog_plugin.cpp79 COMMON::SplitString(fullCmd_, " ", cmdArg); in Start()
84 FILE* fp = COMMON::CustomPopen(cmdArg, "r", pipeFds, childPid); in Start()
86 COMMON::CustomPclose(fp, pipeFds, childPid); in Start()
497 COMMON::SplitString(std::string(command), " ", cmdArg); in CustomPopen()
/developtools/profiler/device/plugins/native_hook/src/
Dhook_socket_client.cpp79 COMMON::PrintMallinfoLog("stackWriter init(byte) => "); in ProtocolProc()
Dhook_client.cpp179 COMMON::PrintMallinfoLog("before hook(byte) => "); in ohos_malloc_hook_on_start()
222 COMMON::PrintMallinfoLog("after hook(byte) => "); in ohos_release_on_end()
/developtools/profiler/device/plugins/api/test/unittest/
Dplugin_module_test.cpp93 plugin->SetClockId(COMMON::GetClockId("realtime"));
/developtools/profiler/device/base/src/
Dcommon.cpp43 namespace COMMON { namespace
/developtools/profiler/device/services/profiler_service/test/unittest/
Dprofiler_service_test.cpp1368 std::string listenUri = std::string("0.0.0.0:") + std::to_string(COMMON::GetServicePort());