| /developtools/profiler/device/base/test/unittest/ |
| D | common_test.cpp | 25 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/ |
| D | main.cpp | 90 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/ |
| D | main.cpp | 31 if (COMMON::IsProcessRunning(lockFileFd)) { // process is running in main() 41 std::string listenUri = DEFAULT_SERVICE_LISTEN_URI + std::to_string(COMMON::GetServicePort()); in main()
|
| D | trace_file_writer.cpp | 106 std::string timeStr = COMMON::GetTimeStr(); in WriteHeader() 267 std::string errorMsg = COMMON::GetErrorMsg(); in LogDiskUsage()
|
| D | profiler_service.cpp | 256 if (!COMMON::CheckApplicationPermission(hookConfig.pid(), hookConfig.process_name())) { in CreateSession()
|
| /developtools/profiler/device/plugins/hisysevent_plugin/test/unittest/ |
| D | hisysevent_plugin_unittest.cpp | 234 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/ |
| D | hiperf_module.cpp | 87 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/ |
| D | hisysevent_plugin.cpp | 64 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/ |
| D | hook_manager.cpp | 77 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()
|
| D | hook_service.cpp | 75 CHECK_TRUE(getuid() == 0 || COMMON::CheckApplicationPermission(pid_, ""), false, in ProtocolProc()
|
| D | main.cpp | 187 bool isExist = COMMON::IsProcessExist(processName, pidValue); in GetHookedProceInfo() 217 if (COMMON::IsProcessRunning(lockFileFd)) { // process is running in main()
|
| D | hook_standalone.cpp | 161 clockid_t pluginDataClockId = COMMON::GetClockId("realtime"); in StartHook()
|
| D | virtual_thread.cpp | 394 COMMON::AdaptSandboxPath(memMapItem.name_, pid_); in ParseMap()
|
| D | stack_preprocess.cpp | 68 hookDataClockId_ = COMMON::GetClockId(hookConfig_.clock()); in StackPreprocess() 183 COMMON::AdaptSandboxPath(filePath, rawData->stackConext->pid); in TakeResults()
|
| /developtools/profiler/device/base/include/ |
| D | common.h | 23 namespace COMMON {
|
| /developtools/profiler/device/plugins/api/src/ |
| D | main.cpp | 69 if (COMMON::IsProcessRunning(lockFileFd)) { // process is running in main()
|
| D | plugin_manager.cpp | 258 pluginModules_[it->second]->SetClockId(COMMON::GetClockId(config[idx].clock())); in CreatePluginSession()
|
| /developtools/profiler/device/plugins/hilog_plugin/src/ |
| D | hilog_plugin.cpp | 79 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/ |
| D | hook_socket_client.cpp | 79 COMMON::PrintMallinfoLog("stackWriter init(byte) => "); in ProtocolProc()
|
| D | hook_client.cpp | 179 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/ |
| D | plugin_module_test.cpp | 93 plugin->SetClockId(COMMON::GetClockId("realtime"));
|
| /developtools/profiler/device/base/src/ |
| D | common.cpp | 43 namespace COMMON { namespace
|
| /developtools/profiler/device/services/profiler_service/test/unittest/ |
| D | profiler_service_test.cpp | 1368 std::string listenUri = std::string("0.0.0.0:") + std::to_string(COMMON::GetServicePort());
|