Home
last modified time | relevance | path

Searched refs:cmds (Results 1 - 25 of 28) sorted by relevance

12

/base/startup/init/services/init/lite/
H A Dinit_jobs.c25 #define CMDS_ARR_NAME_IN_JSON "cmds"
41 CmdLine *cmd = &g_jobs[i].cmdLines->cmds[j]; in DumpAllJobs()
78 INIT_LOGE("ParseJob, failed to get cmds for job!"); in ParseJob()
141 DoCmdByIndex(cmdLines->cmds[j].cmdIndex, cmdLines->cmds[j].cmdContent, NULL); in DoJob()
/base/hiviewdfx/hiview/service/
H A Dhiview_service.cpp57 void HiviewService::DumpRequestDispatcher(int fd, const std::vector<std::string> &cmds) in DumpRequestDispatcher() argument
64 if (cmds.size() == 0) { in DumpRequestDispatcher()
70 if ((cmds.size() == MIN_SUPPORT_CMD_SIZE) && (cmds[0] == "-d")) { in DumpRequestDispatcher()
76 if ((cmds.size() >= MIN_SUPPORT_CMD_SIZE) && (cmds[0] == "-p")) { in DumpRequestDispatcher()
77 DumpPluginInfo(fd, cmds); in DumpRequestDispatcher()
85 void HiviewService::DumpPluginInfo(int fd, const std::vector<std::string> &cmds) const in DumpPluginInfo()
91 if (cmds.size() >= pluginNameSize) { in DumpPluginInfo()
92 pluginName = cmds[pluginNamePo in DumpPluginInfo()
[all...]
H A Dhiview_service.h39 void DumpRequestDispatcher(int fd, const std::vector<std::string>& cmds);
60 void DumpPluginInfo(int fd, const std::vector<std::string>& cmds) const;
/base/hiviewdfx/faultloggerd/test/utils/
H A Ddfx_test_util.cpp34 std::string ExecuteCommands(const std::string& cmds) in ExecuteCommands() argument
36 if (cmds.empty()) { in ExecuteCommands()
41 procFileInfo = popen(cmds.c_str(), "r"); in ExecuteCommands()
54 bool ExecuteCommands(const std::string& cmds, std::vector<std::string>& ress) in ExecuteCommands() argument
56 if (cmds.empty()) { in ExecuteCommands()
62 fp = popen(cmds.c_str(), "r"); in ExecuteCommands()
H A Ddfx_test_util.h75 std::string ExecuteCommands(const std::string& cmds);
76 bool ExecuteCommands(const std::string& cmds, std::vector<std::string>& ress);
/base/hiviewdfx/faultloggerd/test/performancetest/include/
H A Dfaultloggerd_performance_test.h29 static std::string ForkAndRootCommands(const std::vector<std::string>& cmds);
/base/startup/init/services/init/
H A Dinit_common_cmds.c638 const struct CmdTable *cmds = GetCmdTable(&number); in GetCmdByName() local
640 if (strncmp(startCmd, cmds[i].name, strlen(cmds[i].name)) == 0) { in GetCmdByName()
641 return &cmds[i]; in GetCmdByName()
662 const struct CmdTable *cmds = GetCmdTable(&number); in GetMatchCmd() local
664 if (strncmp(startCmd, cmds[i].name, strlen(cmds[i].name)) == 0) { in GetMatchCmd()
666 return cmds[i].name; in GetMatchCmd()
681 const struct CmdTable *cmds = GetCmdTable(&number); in GetCmdTableByIndex() local
683 cmdTable = &cmds[inde in GetCmdTableByIndex()
[all...]
H A Dinit_common_service.c739 INIT_LOGI("ExecRestartCmd cmdLine->cmdContent %s ", service->restartArg->cmds[i].cmdContent); in ExecRestartCmd()
740 DoCmdByIndex(service->restartArg->cmds[i].cmdIndex, service->restartArg->cmds[i].cmdContent, NULL); in ExecRestartCmd()
/base/hiviewdfx/hiview/plugins/sysevent_source/
H A Dsysevent_source.cpp270 static void ShowUsage(int fd, const std::vector<std::string>& cmds) in ShowUsage() argument
273 for (auto it = cmds.begin(); it != cmds.end(); it++) { in ShowUsage()
280 void SysEventSource::Dump(int fd, const std::vector<std::string>& cmds) in Dump() argument
282 if (cmds.size() >= 2) { // 2: args from the second item in Dump()
283 std::string arg1 = cmds[1]; in Dump()
293 ShowUsage(fd, cmds); in Dump()
/base/hiviewdfx/hiview/base/
H A Dplugin_proxy.cpp67 void PluginProxy::Dump(int fd, const std::vector<std::string>& cmds) in Dump() argument
71 return plugin_->Dump(fd, cmds); in Dump()
/base/hiviewdfx/hiview/base/include/
H A Dplugin_proxy.h36 void Dump(int fd __UNUSED, const std::vector<std::string>& cmds) override;
H A Dplugin.h82 virtual void Dump(int fd __UNUSED, const std::vector<std::string>& cmds __UNUSED) {}; in Dump()
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
H A Dfaultlogger_unittest.cpp237 * @tc.desc: dump with cmds, check the result
243 * @tc.steps: step1. add multiple cmds to faultlogger in HWTEST_F()
254 std::vector<std::string> cmds; in HWTEST_F() local
255 plugin->Dump(fd, cmds); in HWTEST_F()
256 cmds.push_back("Faultlogger"); in HWTEST_F()
257 plugin->Dump(fd, cmds); in HWTEST_F()
258 cmds.push_back("-l"); in HWTEST_F()
259 plugin->Dump(fd, cmds); in HWTEST_F()
260 cmds.push_back("-f"); in HWTEST_F()
261 plugin->Dump(fd, cmds); in HWTEST_F()
303 std::vector<std::vector<std::string>> cmds = { HWTEST_F() local
344 std::vector<std::vector<std::string>> cmds = { HWTEST_F() local
[all...]
/base/hiviewdfx/faultloggerd/test/performancetest/src/
H A Dfaultloggerd_performance_test.cpp69 std::string FaultPerformanceTest::ForkAndRootCommands(const std::vector<std::string>& cmds) in ForkAndRootCommands() argument
96 std::vector<std::string> cmds { "crasher", "thread-Loop" }; in StartRootCrasherLoop()
97 FaultPerformanceTest::ForkAndRootCommands(cmds); in StartRootCrasherLoop()
/base/hiviewdfx/hiview/plugins/unified_collector/include/
H A Dunified_collector.h35 void Dump(int fd, const std::vector<std::string>& cmds) override;
/base/sensors/medical_sensor/services/medical_sensor/src/
H A Dmedical_dump.cpp99 std::string cmds(""); in DumpSensorChannel()
102 cmds += (std::to_string(cmd) + " "); in DumpSensorChannel()
108 int32_t { channel.GetSamplingPeriodNs() }, channel.GetFifoCount(), cmds.c_str()); in DumpSensorChannel()
H A Dclient_info.cpp637 std::unordered_map<int32_t, std::vector<int32_t>> cmds; in UpdateCmd() local
640 cmds.insert(std::make_pair(uid, tmp)); in UpdateCmd()
641 cmdMap_.insert(std::make_pair(sensorId, cmds)); in UpdateCmd()
/base/hiviewdfx/hiview/plugins/sysevent_source/include/
H A Dsysevent_source.h58 void Dump(int fd, const std::vector<std::string>& cmds) override;
/base/startup/init/services/init/include/
H A Dinit_cmds.h60 CmdLine cmds[0]; member
/base/hiviewdfx/hidumper/test/scripts/testModule/
H A Dtest_permission.py73 cmds = ["iptables -L -nvx", "ip6tables -L -nvx", "iptables -t nat -L -nvx", "iptables -t mangle -L -nvx",
76 ret = all([item in output for item in cmds])
/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlogger.h58 void Dump(int fd, const std::vector<std::string> &cmds) override;
H A Dfaultlogger.cpp333 void Faultlogger::Dump(int fd, const std::vector<std::string> &cmds) in Dump() argument
341 for (auto it = cmds.begin(); it != cmds.end(); it++) { in Dump()
/base/hiviewdfx/hiview/adapter/service/server/src/
H A Dhiview_service_ability.cpp82 std::vector<std::string> cmds; in Dump() local
84 cmds.push_back(StringUtil::ConvertToUTF8(arg)); in Dump()
86 service->DumpRequestDispatcher(fd, cmds); in Dump()
/base/sensors/sensor/services/src/
H A Dclient_info.cpp635 std::unordered_map<int32_t, std::vector<int32_t>> cmds; in UpdateCmd() local
638 cmds.insert(std::make_pair(uid, tmp)); in UpdateCmd()
639 cmdMap_.insert(std::make_pair(sensorId, cmds)); in UpdateCmd()
/base/hiviewdfx/hiview/plugins/unified_collector/
H A Dunified_collector.cpp284 void UnifiedCollector::Dump(int fd, const std::vector<std::string>& cmds) in Dump() argument

Completed in 20 milliseconds

12