/developtools/profiler/device/services/profiler_service/src/ |
H A D | main.cpp | 31 if ((!COMMON::GetDeveloperMode()) || COMMON::IsProcessRunning(lockFileFd)) { // process is running in main() 40 std::string listenUri = DEFAULT_SERVICE_LISTEN_URI + std::to_string(COMMON::GetServicePort()); in main()
|
H A D | trace_file_reader.cpp | 42 auto retFile = COMMON::CheckNotExistsFilePath(path); in Open()
|
H A D | trace_file_writer.cpp | 199 std::string timeStr = COMMON::GetTimeStr(); in WriteHeader() 274 auto retFile = COMMON::CheckNotExistsFilePath(file); in WriteStandalonePluginFile() 441 std::string errorMsg = COMMON::GetErrorMsg(); in LogDiskUsage()
|
H A D | profiler_service.cpp | 395 auto retFile = COMMON::CheckNotExistsFilePath(outputFile); in MergeStandaloneFile() 406 auto targetFile = COMMON::CheckNotExistsFilePath(resultFile); in MergeStandaloneFile()
|
/developtools/profiler/device/base/test/unittest/ |
H A D | common_test.cpp | 24 using namespace COMMON;
74 EXPECT_TRUE(COMMON::IsProcessExist(procName, pid));
in HWTEST_F() 78 EXPECT_FALSE(COMMON::IsProcessExist(invalidProcName, pid));
in HWTEST_F() 94 EXPECT_FALSE(COMMON::IsProcessRunning(lockFileFd));
in HWTEST_F() 95 int procPid = COMMON::StartProcess("/system/bin/hiprofilerd", argvVec);
in HWTEST_F() 98 EXPECT_NE(COMMON::KillProcess(procPid), -1);
in HWTEST_F()
|
/developtools/profiler/device/cmds/src/ |
H A D | main.cpp | 100 return COMMON::GetServicePort(); in GetServicePort() 126 int ks = COMMON::IsNumeric(keepSecond) ? std::stoi(keepSecond) : 0; in MakeCreateRequest() 301 if (!COMMON::IsNumeric(keepSecond)) { in DoCapture() 400 if (!COMMON::IsProcessExist(HIPROFILERD_NAME, g_hiprofilerdPid)) { in StartDependentProcess() 404 g_hiprofilerdPid = COMMON::StartProcess("/system/bin/hiprofilerd", argvVec); in StartDependentProcess() 409 if (!COMMON::IsProcessExist(HIPROFILER_PLUGINS_NAME, g_hiprofilerPluginsPid)) { in StartDependentProcess() 413 g_hiprofilerPluginsPid = COMMON::StartProcess("/system/bin/hiprofiler_plugins", argvVec); in StartDependentProcess() 418 if (!COMMON::IsProcessExist(NATIVE_DAEMON_NAME, g_nativeDaemonPid)) { in StartDependentProcess() 422 g_nativeDaemonPid = COMMON::StartProcess("/system/bin/native_daemon", argvVec); in StartDependentProcess() 454 if (COMMON in CheckProcessExit() [all...] |
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | hook_manager.cpp | 122 bool isExist = COMMON::IsProcessExist(processName, pidValue); in CheckProcessName() 220 clientConfig.clockId = COMMON::GetClockId(hookConfig_.clock()); in GetClientConfig() 286 clockid_t pluginDataClockId = COMMON::GetClockId(hookConfig_.clock()); in HandleHookContext() 317 if (pid > 0 && COMMON::CheckApplicationEncryped(pid, "")) { in CheckHapEncryped() 324 if (!processName.empty() && COMMON::CheckApplicationEncryped(0, processName)) { in CheckHapEncryped() 342 if ((!saMode_) && (!COMMON::IsBetaVersion())) { in CreatePluginSession() 343 if (!COMMON::CheckApplicationPermission(hookConfig_.pid(), hookConfig_.process_name())) { in CreatePluginSession() 401 auto retFile = COMMON::CheckNotExistsFilePath(hookConfig_.file_name()); in CreatePluginSession() 556 if ((!saMode_) && (!COMMON::IsBetaVersion())) { in DestroyPluginSession() 557 if (!COMMON in DestroyPluginSession() [all...] |
H A D | main.cpp | 230 bool isExist = COMMON::IsProcessExist(processName, pidValue); in GetHookedProceInfo() 259 if (COMMON::IsProcessRunning(lockFileFd)) { // process is running in main() 276 if (!COMMON::IsBetaVersion()) { in main()
|
/developtools/profiler/device/plugins/network_profiler/service/src/ |
H A D | network_profiler_manager.cpp | 65 if (COMMON::IsUserMode() && (!COMMON::CheckApplicationPermission(pid, ""))) { in CheckConfig() 88 if (COMMON::IsUserMode() && (!COMMON::CheckApplicationPermission(0, name))) { in CheckConfig() 92 bool isExist = COMMON::IsProcessExist(name, pidValue); in CheckConfig() 106 if (COMMON::IsUserMode() && (!COMMON::CheckApplicationPermission(0, name))) { in CheckConfig() 110 bool isExist = COMMON::IsProcessExist(name, pidValue); in CheckConfig()
|
/developtools/profiler/device/plugins/hisysevent_plugin/test/unittest/ |
H A D | hisysevent_plugin_unittest.cpp | 228 FILE* fpr = COMMON::CustomPopen(fullCmdTest, nullptr, pipeFds, childPid, true); in HWTEST_F() 230 EXPECT_EQ(COMMON::CustomPclose(fpr, pipeFds, childPid, true), -1); in HWTEST_F() 235 FILE* fpw = COMMON::CustomPopen(fullCmdTest, "w", pipeFds, childPid); in HWTEST_F() 237 EXPECT_EQ(COMMON::CustomPclose(fpw, pipeFds, childPid, true), -1); in HWTEST_F()
|
/developtools/profiler/device/plugins/api/src/ |
H A D | main.cpp | 61 if ((!COMMON::GetDeveloperMode()) || COMMON::IsProcessRunning(lockFileFd)) { // process is running in main()
|
H A D | plugin_manager.cpp | 260 pluginModules_[it->second]->SetClockId(COMMON::GetClockId(config[idx].clock())); in CreatePluginSession()
|
/developtools/profiler/device/plugins/hiperf_plugin/src/ |
H A D | hiperf_module.cpp | 91 COMMON::SplitString(cmd, " ", cmdArg); in RunCommand() 96 FILE* fp = COMMON::CustomPopen(cmdArg, "r", pipeFds, childPid); in RunCommand() 109 COMMON::CustomPclose(fp, pipeFds, childPid); in RunCommand()
|
/developtools/profiler/device/plugins/hisysevent_plugin/src/ |
H A D | hisysevent_plugin.cpp | 67 COMMON::CustomPopen(fullCmd_, "r", pipeFds_, childPid_, true), [this](FILE* fp) -> int { in Start() 68 return COMMON::CustomPclose(fp, pipeFds_, childPid_, true); in Start() 87 COMMON::CustomPUnblock(pipeFds_); in Stop()
|
/developtools/profiler/device/plugins/hilog_plugin/src/ |
H A D | hilog_plugin.cpp | 82 FILE* fp = COMMON::CustomPopen(cmdArg, "r", pipeFds, childPid); in Start() 84 COMMON::CustomPclose(fp, pipeFds, childPid); in Start() 89 COMMON::CustomPopen(fullCmd_, "r", pipeFds_, childPid_, true), [this](FILE* fp) -> int { in Start() 90 return COMMON::CustomPclose(fp, pipeFds_, childPid_, true); in Start() 119 COMMON::CustomPUnblock(pipeFds_); in Stop()
|
/developtools/profiler/device/plugins/hidump_plugin/src/ |
H A D | hidump_plugin.cpp | 73 COMMON::CustomPopen(fullCmd, "r", pipeFds_, childPid_, true), [this](FILE* fp) -> int { in Start() 74 return COMMON::CustomPclose(fp, pipeFds_, childPid_, true); in Start()
|
/developtools/profiler/device/plugins/xpower_plugin/src/ |
H A D | xpower_plugin.cpp | 79 int32_t uid = COMMON::GetPackageUid(bundleName); in Start() 87 bool isExsit = COMMON::IsProcessExist(bundleName, processId); in Start()
|
/developtools/profiler/device/base/include/ |
H A D | common.h | 25 namespace COMMON { namespace 57 } // COMMON
|
/developtools/profiler/device/plugins/ffrt_profiler/service/src/ |
H A D | ffrt_profiler_manager.cpp | 85 bool isExist = COMMON::IsProcessExist(name, pidValue); in CheckConfig() 101 bool isExist = COMMON::IsProcessExist(name, pidValue); in CheckConfig()
|
/developtools/profiler/device/plugins/api/test/unittest/ |
H A D | plugin_module_test.cpp | 92 plugin->SetClockId(COMMON::GetClockId("realtime")); in HWTEST_F()
|
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
H A D | ftrace_fs_ops.cpp | 115 if (COMMON::IsUserMode()) { in GetKernelSymbols()
|
H A D | ftrace_parser.cpp | 508 pid = COMMON::IsNumeric(pidStr) ? std::stoi(pidStr) : 0; in ParseSavedCmdlines()
|
/developtools/profiler/device/plugins/memory_plugin/src/ |
H A D | memory_data_plugin.cpp | 1031 if (!COMMON::CheckCmdLineArgValid(cmd)) { in RunCommand() 1036 COMMON::SplitString(cmd, " ", cmdArg); in RunCommand() 1041 FILE* fp = COMMON::CustomPopen(cmdArg, "r", pipeFds, childPid); in RunCommand() 1048 COMMON::CustomPclose(fp, pipeFds, childPid); in RunCommand()
|
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/ |
H A D | native_memory_profiler_sa_service.cpp | 190 auto retFile = COMMON::CheckNotExistsFilePath(config->filePath_); in StartHook()
|
/developtools/profiler/device/plugins/memory_plugin/include/ |
H A D | smaps_stats.h | 334 if (!COMMON::IsUserMode()) { in ReadVmemareasFile()
|