Home
last modified time | relevance | path

Searched refs:COMMON (Results 1 - 25 of 30) sorted by relevance

12

/developtools/profiler/device/services/profiler_service/src/
H A Dmain.cpp31 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 Dtrace_file_reader.cpp42 auto retFile = COMMON::CheckNotExistsFilePath(path); in Open()
H A Dtrace_file_writer.cpp199 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 Dprofiler_service.cpp395 auto retFile = COMMON::CheckNotExistsFilePath(outputFile); in MergeStandaloneFile()
406 auto targetFile = COMMON::CheckNotExistsFilePath(resultFile); in MergeStandaloneFile()
/developtools/profiler/device/base/test/unittest/
H A Dcommon_test.cpp24 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 Dmain.cpp100 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 Dhook_manager.cpp122 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 Dmain.cpp230 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 Dnetwork_profiler_manager.cpp65 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 Dhisysevent_plugin_unittest.cpp228 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 Dmain.cpp61 if ((!COMMON::GetDeveloperMode()) || COMMON::IsProcessRunning(lockFileFd)) { // process is running in main()
H A Dplugin_manager.cpp260 pluginModules_[it->second]->SetClockId(COMMON::GetClockId(config[idx].clock())); in CreatePluginSession()
/developtools/profiler/device/plugins/hiperf_plugin/src/
H A Dhiperf_module.cpp91 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 Dhisysevent_plugin.cpp67 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 Dhilog_plugin.cpp82 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 Dhidump_plugin.cpp73 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 Dxpower_plugin.cpp79 int32_t uid = COMMON::GetPackageUid(bundleName); in Start()
87 bool isExsit = COMMON::IsProcessExist(bundleName, processId); in Start()
/developtools/profiler/device/base/include/
H A Dcommon.h25 namespace COMMON { namespace
57 } // COMMON
/developtools/profiler/device/plugins/ffrt_profiler/service/src/
H A Dffrt_profiler_manager.cpp85 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 Dplugin_module_test.cpp92 plugin->SetClockId(COMMON::GetClockId("realtime")); in HWTEST_F()
/developtools/profiler/device/plugins/ftrace_plugin/src/
H A Dftrace_fs_ops.cpp115 if (COMMON::IsUserMode()) { in GetKernelSymbols()
H A Dftrace_parser.cpp508 pid = COMMON::IsNumeric(pidStr) ? std::stoi(pidStr) : 0; in ParseSavedCmdlines()
/developtools/profiler/device/plugins/memory_plugin/src/
H A Dmemory_data_plugin.cpp1031 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 Dnative_memory_profiler_sa_service.cpp190 auto retFile = COMMON::CheckNotExistsFilePath(config->filePath_); in StartHook()
/developtools/profiler/device/plugins/memory_plugin/include/
H A Dsmaps_stats.h334 if (!COMMON::IsUserMode()) { in ReadVmemareasFile()

Completed in 17 milliseconds

12